Use scroll lock instead of control. Control's a nice, useful key; we

might want to use it for eg. jumping to a song title by initial in the
music wheel.  Scroll lock is out of the way.

Don't send the operator button to windows.
This commit is contained in:
Glenn Maynard
2003-02-12 08:05:23 +00:00
parent 3a13724a70
commit 97dd3b2cb3
+6 -5
View File
@@ -412,13 +412,14 @@ static void HandleInputEvents(float fDeltaTime)
or in the step editor. This will save the hassle of an "accidental
keystroke, and your edit is gone". -- Miryokuteki
*/
if( DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == SDLK_LCTRL && type == IET_FIRST_PRESS )
if( DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == SDLK_SCROLLOCK )
{
if( !GAMESTATE->m_bIsOnSystemMenu )
{
if( type != IET_FIRST_PRESS ) continue;
if( GAMESTATE->m_bIsOnSystemMenu ) continue;
SCREENMAN->SystemMessage("OPERATOR");
SCREENMAN->SetNewScreen("ScreenOptionsMenu");
}
continue;
}
// Global credit key.. accepts a credit anywhere, like the arcade -- Mirykouteki
@@ -436,10 +437,10 @@ static void HandleInputEvents(float fDeltaTime)
default:
ASSERT(0);
}
/* Fall through, so screens will receive MenuCoin. */
}
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F4))
{
if(type != IET_FIRST_PRESS) continue;