From fa8e948e3e977fad001faba63f70873e9ea1ce19 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 4 May 2011 22:10:17 +0200 Subject: [PATCH] Some additional keybinds. --- settings.c | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/settings.c b/settings.c index 5b1cd160c5..df7b1896fb 100644 --- a/settings.c +++ b/settings.c @@ -569,6 +569,7 @@ static const struct key_map sdlk_map[] = { { "up", SDLK_UP }, { "down", SDLK_DOWN }, { "enter", SDLK_RETURN }, + { "kp_enter", SDLK_KP_ENTER }, { "tab", SDLK_TAB }, { "insert", SDLK_INSERT }, { "del", SDLK_DELETE }, @@ -578,8 +579,8 @@ static const struct key_map sdlk_map[] = { { "alt", SDLK_LALT }, { "space", SDLK_SPACE }, { "escape", SDLK_ESCAPE }, - { "kp_plus", SDLK_KP_PLUS }, - { "kp_minus", SDLK_KP_MINUS }, + { "add", SDLK_KP_PLUS }, + { "subtract", SDLK_KP_MINUS }, { "f1", SDLK_F1 }, { "f2", SDLK_F2 }, { "f3", SDLK_F3 }, @@ -592,6 +593,36 @@ static const struct key_map sdlk_map[] = { { "f10", SDLK_F10 }, { "f11", SDLK_F11 }, { "f12", SDLK_F12 }, + { "num0", SDLK_0 }, + { "num1", SDLK_1 }, + { "num2", SDLK_2 }, + { "num3", SDLK_3 }, + { "num4", SDLK_4 }, + { "num5", SDLK_5 }, + { "num6", SDLK_6 }, + { "num7", SDLK_7 }, + { "num8", SDLK_8 }, + { "num9", SDLK_9 }, + { "pageup", SDLK_PAGEUP }, + { "pagedown", SDLK_PAGEDOWN }, + { "keypad0", SDLK_KP0 }, + { "keypad1", SDLK_KP1 }, + { "keypad2", SDLK_KP2 }, + { "keypad3", SDLK_KP3 }, + { "keypad4", SDLK_KP4 }, + { "keypad5", SDLK_KP5 }, + { "keypad6", SDLK_KP6 }, + { "keypad7", SDLK_KP7 }, + { "keypad8", SDLK_KP8 }, + { "keypad9", SDLK_KP9 }, + { "period", SDLK_PERIOD }, + { "capslock", SDLK_CAPSLOCK }, + { "numlock", SDLK_NUMLOCK }, + { "backspace", SDLK_BACKSPACE }, + { "multiply", SDLK_KP_MULTIPLY }, + { "divide", SDLK_KP_DIVIDE }, + { "print_screen", SDLK_PRINT }, + { "scroll_lock", SDLK_SCROLLOCK }, { "nul", SDLK_UNKNOWN }, };