This commit is contained in:
Glenn Maynard
2006-09-13 03:20:59 +00:00
parent e206261b80
commit 8277bdf5dd
+2 -2
View File
@@ -755,9 +755,9 @@ bool InputMapper::DeviceToGame( const DeviceInput &DeviceI, GameInput& GameI ) /
return GameI.controller != GAME_CONTROLLER_INVALID; return GameI.controller != GAME_CONTROLLER_INVALID;
} }
bool InputMapper::GameToDevice( const GameInput &GameI, int iSoltNum, DeviceInput& DeviceI ) // return true if there is a mapping from pad to device bool InputMapper::GameToDevice( const GameInput &GameI, int iSlotNum, DeviceInput& DeviceI ) // return true if there is a mapping from pad to device
{ {
DeviceI = m_GItoDI[GameI.controller][GameI.button][iSoltNum]; DeviceI = m_GItoDI[GameI.controller][GameI.button][iSlotNum];
return DeviceI.device != DEVICE_NONE; return DeviceI.device != DEVICE_NONE;
} }