add checkpoints to catch input assert

This commit is contained in:
Chris Danford
2005-10-15 16:52:01 +00:00
parent ae7300b3be
commit 349c19cb09
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -611,6 +611,7 @@ void InputMapper::GameToMenu( const GameInput &GameI, MenuInput &MenuI )
void InputMapper::StyleToGame( const StyleInput &StyleI, GameInput &GameI )
{
CHECKPOINT_M( ssprintf("%i %i", StyleI.player, StyleI.col) );
const Style* pStyle = GAMESTATE->GetCurrentStyle();
GameI = pStyle->StyleInputToGameInput( StyleI );
}
@@ -650,6 +651,7 @@ bool InputMapper::IsButtonDown( const MenuInput &MenuI )
bool InputMapper::IsButtonDown( const StyleInput &StyleI )
{
CHECKPOINT_M( ssprintf("%i %i", StyleI.player, StyleI.col) );
GameInput GameI;
StyleToGame( StyleI, GameI );
return IsButtonDown( GameI );