semi-experimental: When a GameButton is pressed, stop repeating other keys on the same controller.

This commit is contained in:
Glenn Maynard
2007-03-16 22:28:55 +00:00
parent 324a84b9c7
commit 506d6d91aa
+10
View File
@@ -1381,6 +1381,16 @@ void HandleInputEvents(float fDeltaTime)
INPUTQUEUE->RememberInput( input );
/* When a GameButton is pressed, stop repeating other keys on the same controller. */
if( input.type == IET_FIRST_PRESS && input.MenuI != GameButton_Invalid )
{
FOREACH_GameButton( m )
{
if( input.MenuI != m )
INPUTMAPPER->RepeatStopKey( m, input.pn );
}
}
if( HandleGlobalInputs(input) )
continue; // skip