add numpad key and escape abbreviation support

This commit is contained in:
vcaesar 2018-12-12 09:37:56 -04:00
parent ee173ebb47
commit ad709d6151
2 changed files with 28 additions and 2 deletions

View File

@ -5,6 +5,7 @@
"delete"
"enter"
"tab"
"esc"
"escape"
"up" Up arrow key
"down" Down arrow key
@ -63,6 +64,19 @@
"audio_repeat" Linux only
"audio_random" Linux only
"num0"
"num1"
"num2"
"num3"
"num4"
"num5"
"num6"
"num7"
"num8"
"num9"
"num_lock"
// "numpad_0" No Linux support
"numpad_0"
"numpad_1"
@ -74,7 +88,6 @@
"numpad_7"
"numpad_8"
"numpad_9"
"num_lock"
"numpad_lock"
"lights_mon_up" Turn up monitor brightness No Windows support

View File

@ -25,6 +25,7 @@ struct KeyNames{
{ "delete", K_DELETE },
{ "enter", K_RETURN },
{ "tab", K_TAB },
{ "esc", K_ESCAPE },
{ "escape", K_ESCAPE },
{ "up", K_UP },
{ "down", K_DOWN },
@ -85,6 +86,19 @@ struct KeyNames{
{ "audio_repeat", K_AUDIO_REPEAT },
{ "audio_random", K_AUDIO_RANDOM },
{ "num0", K_NUMPAD_0 },
{ "num1", K_NUMPAD_1 },
{ "num2", K_NUMPAD_2 },
{ "num3", K_NUMPAD_3 },
{ "num4", K_NUMPAD_4 },
{ "num5", K_NUMPAD_5 },
{ "num6", K_NUMPAD_6 },
{ "num7", K_NUMPAD_7 },
{ "num8", K_NUMPAD_8 },
{ "num9", K_NUMPAD_9 },
{ "num_lock", K_NUMPAD_LOCK },
{ "numpad_0", K_NUMPAD_0 },
{ "numpad_1", K_NUMPAD_1 },
{ "numpad_2", K_NUMPAD_2 },
@ -95,7 +109,6 @@ struct KeyNames{
{ "numpad_7", K_NUMPAD_7 },
{ "numpad_8", K_NUMPAD_8 },
{ "numpad_9", K_NUMPAD_9 },
{ "num_lock", K_NUMPAD_LOCK },
{ "numpad_lock", K_NUMPAD_LOCK },
{ "lights_mon_up", K_LIGHTS_MON_UP },