Comment m_InpuIgnoredModifiers a bit

This commit is contained in:
def 2016-05-02 18:21:54 +02:00 committed by Ryozuki
parent 50f9e37282
commit 43479e3768

View file

@ -171,7 +171,20 @@ int CInput::Update()
break; break;
// handle keys // handle keys
case SDL_KEYDOWN: case SDL_KEYDOWN:
// See SDL_Keymod for possible modifiers // See SDL_Keymod for possible modifiers:
// NONE = 0
// LSHIFT = 1
// RSHIFT = 2
// LCTRL = 64
// RCTRL = 128
// LALT = 256
// RALT = 512
// LGUI = 1024
// RGUI = 2048
// NUM = 4096
// CAPS = 8192
// MODE = 16384
// Sum if you want to ignore multiple modifiers.
if(!(Event.key.keysym.mod & g_Config.m_InpIgnoredModifiers)) if(!(Event.key.keysym.mod & g_Config.m_InpIgnoredModifiers))
{ {
Key = KeycodeToKey(Event.key.keysym.sym); Key = KeycodeToKey(Event.key.keysym.sym);