VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtInputConfigViewer Class Reference

#include <inputConfigViewer.h>

Public Member Functions

 DtInputConfigViewer ()
 
virtual ~DtInputConfigViewer ()
 
virtual bool initialize (DtVreInputManager *inputManager)
 
virtual void shutdown ()
 
virtual void tick (double dt)
 
virtual void renderImGui ()
 

Private Member Functions

void refreshInputData ()
 
void parseInputMappings ()
 
void parseRealInputDevices ()
 
void parseInputMappingLayers ()
 
void buildActionMap ()
 
void sortConfigurations ()
 
void renderActionSearch ()
 
void renderDeviceTabs ()
 
void renderDeviceConfig (const DtDeviceConfigDisplay &deviceConfig)
 
void updateInputValues ()
 
bool hasActionHandlers () const
 
bool passesFilter (const DtInputActionDisplay &action)
 
size_t findDeviceIndexByKey (const std::string &deviceKey) const
 
void extractActionsFromDeviceMapping (const DtDeviceMapping &mapping, DtDeviceConfigDisplay &deviceConfig, const std::string &layerInfo) const
 
void addActionToCompatibleDevices (const std::string &actionGroup, const std::string &actionName)
 
std::string inputTypeToString (int inputType) const
 

Private Attributes

DtVreInputManagermyInputManager
 
std::vector< DtDeviceConfigDisplaymyDeviceConfigs
 
std::unordered_map< std::string, std::vector< DtInputActionDisplay * > > myActionMap
 
char mySearchFilter [256]
 
bool myShowInactiveInputs
 
double myLastRefreshTime
 
int mySelectedDeviceTab
 

Static Private Attributes

static constexpr double REFRESH_INTERVAL = 1.0
 

Constructor & Destructor Documentation

◆ DtInputConfigViewer()

makVre::DtInputConfigViewer::DtInputConfigViewer ( )

◆ ~DtInputConfigViewer()

virtual makVre::DtInputConfigViewer::~DtInputConfigViewer ( )
virtual

Member Function Documentation

◆ initialize()

virtual bool makVre::DtInputConfigViewer::initialize ( DtVreInputManager * inputManager)
virtual

◆ shutdown()

virtual void makVre::DtInputConfigViewer::shutdown ( )
virtual

◆ tick()

virtual void makVre::DtInputConfigViewer::tick ( double dt)
virtual

◆ renderImGui()

virtual void makVre::DtInputConfigViewer::renderImGui ( )
virtual

◆ refreshInputData()

void makVre::DtInputConfigViewer::refreshInputData ( )
private

◆ parseInputMappings()

void makVre::DtInputConfigViewer::parseInputMappings ( )
private

◆ parseRealInputDevices()

void makVre::DtInputConfigViewer::parseRealInputDevices ( )
private

◆ parseInputMappingLayers()

void makVre::DtInputConfigViewer::parseInputMappingLayers ( )
private

◆ buildActionMap()

void makVre::DtInputConfigViewer::buildActionMap ( )
private

◆ sortConfigurations()

void makVre::DtInputConfigViewer::sortConfigurations ( )
private

◆ renderActionSearch()

void makVre::DtInputConfigViewer::renderActionSearch ( )
private

◆ renderDeviceTabs()

void makVre::DtInputConfigViewer::renderDeviceTabs ( )
private

◆ renderDeviceConfig()

void makVre::DtInputConfigViewer::renderDeviceConfig ( const DtDeviceConfigDisplay & deviceConfig)
private

◆ updateInputValues()

void makVre::DtInputConfigViewer::updateInputValues ( )
private

◆ hasActionHandlers()

bool makVre::DtInputConfigViewer::hasActionHandlers ( ) const
private

◆ passesFilter()

bool makVre::DtInputConfigViewer::passesFilter ( const DtInputActionDisplay & action)
private

◆ findDeviceIndexByKey()

size_t makVre::DtInputConfigViewer::findDeviceIndexByKey ( const std::string & deviceKey) const
private

◆ extractActionsFromDeviceMapping()

void makVre::DtInputConfigViewer::extractActionsFromDeviceMapping ( const DtDeviceMapping & mapping,
DtDeviceConfigDisplay & deviceConfig,
const std::string & layerInfo ) const
private

◆ addActionToCompatibleDevices()

void makVre::DtInputConfigViewer::addActionToCompatibleDevices ( const std::string & actionGroup,
const std::string & actionName )
private

◆ inputTypeToString()

std::string makVre::DtInputConfigViewer::inputTypeToString ( int inputType) const
private

Member Data Documentation

◆ myInputManager

DtVreInputManager* makVre::DtInputConfigViewer::myInputManager
private

◆ myDeviceConfigs

std::vector<DtDeviceConfigDisplay> makVre::DtInputConfigViewer::myDeviceConfigs
private

◆ myActionMap

std::unordered_map<std::string, std::vector<DtInputActionDisplay*> > makVre::DtInputConfigViewer::myActionMap
private

◆ mySearchFilter

char makVre::DtInputConfigViewer::mySearchFilter[256]
private

◆ myShowInactiveInputs

bool makVre::DtInputConfigViewer::myShowInactiveInputs
private

◆ myLastRefreshTime

double makVre::DtInputConfigViewer::myLastRefreshTime
private

◆ REFRESH_INTERVAL

double makVre::DtInputConfigViewer::REFRESH_INTERVAL = 1.0
staticconstexprprivate

◆ mySelectedDeviceTab

int makVre::DtInputConfigViewer::mySelectedDeviceTab
private

The documentation for this class was generated from the following file: