changeset 395:276d0d7ba96c

Date: Wed, 5 Jun 2002 12:57:56 +0200 From: Denis Oliver Kropp <dok@directfb.org> Subject: [PATCH] DirectFB 0.9.11 released Hi, DirectFB 0.9.11 is released now. We added support for left/right differentation of shift and control keys (which is important for games) just before the release, so here is another patch for the final version.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jun 2002 20:23:26 +0000
parents d15bef937f00
children 11d6eed68dba
files src/video/directfb/SDL_DirectFB_events.c
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_events.c	Mon Jun 10 20:21:55 2002 +0000
+++ b/src/video/directfb/SDL_DirectFB_events.c	Mon Jun 10 20:23:26 2002 +0000
@@ -156,9 +156,11 @@
   keymap[DIKI_RIGHT] = SDLK_RIGHT;
   keymap[DIKI_UP] = SDLK_UP;
   keymap[DIKI_DOWN] = SDLK_DOWN;
-  keymap[DIKI_CTRL] = SDLK_LCTRL;
-  keymap[DIKI_SHIFT] = SDLK_LSHIFT;
-  keymap[DIKI_ALT] = SDLK_LALT;
+  keymap[DIKI_CONTROL_L] = SDLK_LCTRL;
+  keymap[DIKI_CONTROL_R] = SDLK_RCTRL;
+  keymap[DIKI_SHIFT_L] = SDLK_LSHIFT;
+  keymap[DIKI_SHIFT_R] = SDLK_RSHIFT;
+  keymap[DIKI_ALT_L] = SDLK_LALT;
   keymap[DIKI_ALTGR] = SDLK_RALT;
   keymap[DIKI_TAB] = SDLK_TAB;
   keymap[DIKI_ENTER] = SDLK_RETURN;
@@ -170,9 +172,9 @@
   keymap[DIKI_END] = SDLK_END;
   keymap[DIKI_PAGE_UP] = SDLK_PAGEUP;
   keymap[DIKI_PAGE_DOWN] = SDLK_PAGEDOWN;
-  keymap[DIKI_CAPSLOCK] = SDLK_CAPSLOCK;
-  keymap[DIKI_NUMLOCK] = SDLK_NUMLOCK;
-  keymap[DIKI_SCRLOCK] = SDLK_SCROLLOCK;
+  keymap[DIKI_CAPS_LOCK] = SDLK_CAPSLOCK;
+  keymap[DIKI_NUM_LOCK] = SDLK_NUMLOCK;
+  keymap[DIKI_SCROLL_LOCK] = SDLK_SCROLLOCK;
   keymap[DIKI_PRINT] = SDLK_PRINT;
   keymap[DIKI_PAUSE] = SDLK_PAUSE;
   keymap[DIKI_KP_DIV] = SDLK_KP_DIVIDE;