summaryrefslogtreecommitdiff
path: root/src/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl')
-rw-r--r--src/sdl/sdl_input.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c
index 0ea5d52d..349d3677 100644
--- a/src/sdl/sdl_input.c
+++ b/src/sdl/sdl_input.c
@@ -972,20 +972,6 @@ void IN_Frame( void )
/*
===============
-IN_InitKeyLockStates
-===============
-*/
-void IN_InitKeyLockStates( void )
-{
- const unsigned char *keystate = SDL_GetKeyboardState(NULL);
-
- keys[K_SCROLLOCK].down = keystate[SDL_SCANCODE_SCROLLLOCK];
- keys[K_KP_NUMLOCK].down = keystate[SDL_SCANCODE_NUMLOCKCLEAR];
- keys[K_CAPSLOCK].down = keystate[SDL_SCANCODE_CAPSLOCK];
-}
-
-/*
-===============
IN_Init
===============
*/
@@ -1021,8 +1007,6 @@ void IN_Init( void *windowData )
Cvar_SetValue( "com_unfocused", !( appState & SDL_WINDOW_INPUT_FOCUS ) );
Cvar_SetValue( "com_minimized", appState & SDL_WINDOW_MINIMIZED );
- IN_InitKeyLockStates( );
-
IN_InitJoystick( );
Com_DPrintf( "------------------------------------\n" );
}