You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods
This commit is contained in:
@@ -61,8 +61,8 @@ static _XTranslatePair _xkeysym_to_keycode[] = {
|
||||
{ XK_Shift_L, KEY_SHIFT },
|
||||
{ XK_Shift_R, KEY_SHIFT },
|
||||
{ XK_Shift_Lock, KEY_SHIFT },
|
||||
{ XK_Control_L, KEY_CONTROL },
|
||||
{ XK_Control_R, KEY_CONTROL },
|
||||
{ XK_Control_L, KEY_CTRL },
|
||||
{ XK_Control_R, KEY_CTRL },
|
||||
{ XK_Meta_L, KEY_META },
|
||||
{ XK_Meta_R, KEY_META },
|
||||
{ XK_Alt_L, KEY_ALT },
|
||||
@@ -213,7 +213,7 @@ static _TranslatePair _scancode_to_keycode[] = {
|
||||
{ KEY_BRACELEFT, 0x22 },
|
||||
{ KEY_BRACERIGHT, 0x23 },
|
||||
{ KEY_ENTER, 0x24 },
|
||||
{ KEY_CONTROL, 0x25 },
|
||||
{ KEY_CTRL, 0x25 },
|
||||
{ KEY_A, 0x26 },
|
||||
{ KEY_S, 0x27 },
|
||||
{ KEY_D, 0x28 },
|
||||
@@ -272,7 +272,7 @@ static _TranslatePair _scancode_to_keycode[] = {
|
||||
{ KEY_F11, 0x5F },
|
||||
{ KEY_F12, 0x60 },
|
||||
{ KEY_KP_ENTER, 0x68 },
|
||||
{ KEY_CONTROL, 0x69 },
|
||||
{ KEY_CTRL, 0x69 },
|
||||
{ KEY_KP_DIVIDE, 0x6A },
|
||||
{ KEY_PRINT, 0x6B },
|
||||
{ KEY_ALT, 0x6C },
|
||||
|
||||
Reference in New Issue
Block a user