Comment m_InpuIgnoredModifiers a bit

This commit is contained in:
def 2016-05-02 18:21:54 +02:00
parent f6d4e0ce81
commit a8ce73dffa

View file

@ -171,7 +171,20 @@ int CInput::Update()
break;
// handle keys
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))
{
Key = KeycodeToKey(Event.key.keysym.sym);