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

Method GetN64ButtonsState

Source/SysPSP/Input/InputManagerPSP.cpp:237–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237u32 CControllerConfig::GetN64ButtonsState( u32 psp_button_mask ) const
238{
239 u32 state = 0;
240
241 for( u32 i = 0; i < NUM_N64_BUTTONS; ++i )
242 {
243 if( mButtonMappings[ i ] != NULL )
244 {
245 if( mButtonMappings[ i ]->Evaluate( psp_button_mask ) )
246 {
247 state |= gN64ButtonMasks[ i ];
248 }
249 }
250 }
251
252 return state;
253}
254
255}
256

Callers 1

GetStateMethod · 0.80

Calls 1

EvaluateMethod · 0.45

Tested by

no test coverage detected