mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Comment m_InpuIgnoredModifiers a bit
This commit is contained in:
parent
f6d4e0ce81
commit
a8ce73dffa
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue