mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Comment m_InpuIgnoredModifiers a bit
This commit is contained in:
parent
50f9e37282
commit
43479e3768
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue