Don't allow any function keys.

No need to check for the operator key; it won't reach this.
This commit is contained in:
Glenn Maynard
2003-02-12 08:10:58 +00:00
parent 97dd3b2cb3
commit 5d6c8e0b64
+3 -3
View File
@@ -144,10 +144,10 @@ void ScreenMapControllers::Input( const DeviceInput& DeviceI, const InputEventTy
if( m_bWaitingForPress ) // we're going to map an input
{
//MAKE SURE F1 AND LCTRL CANNOT BE USED! THESE ARE PREDEFINED IN STEPMANIA.CPP
if ( DeviceI.button == SDLK_LCTRL || DeviceI.button == SDLK_F1 )
/* Don't allow function keys to be mapped. */
if ( DeviceI.device == DEVICE_KEYBOARD && (DeviceI.button >= SDLK_F1 && DeviceI.button <= SDLK_F12) )
{
m_textError.SetText( "F1 & Left-Control are system keys, and cannot be mapped." );
m_textError.SetText( "That key can not be mapped." );
SOUNDMAN->PlayOnce( THEME->GetPathTo( "sounds","menu invalid" ) );
m_textError.StopTweening();
m_textError.SetDiffuse( RageColor(0,1,0,1) );