MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetMaskFromIdentifier

Function GetMaskFromIdentifier

Source/SysPSP/Input/InputManagerPSP.cpp:509–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509u32 GetMaskFromIdentifier( const char * identifier )
510{
511 for( u32 i = 0; i < ARRAYSIZE( gButtonNameMappings ); ++i )
512 {
513 if( strcmp( gButtonNameMappings[ i ].ButtonName, identifier ) == 0 )
514 {
515 return gButtonNameMappings[ i ].ButtonMask;
516 }
517 }
518
519 // Error - unknown button name!
520 // This is handled by the parser below
521 return 0;
522}
523
524class CButtonMappingExpressionEvaluator
525{

Callers 1

ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected