Date: Sun, 7 May 2006 19:22:33 -0400
authorSam Lantinga <slouken@libsdl.org>
Mon, 08 May 2006 02:09:34 +0000
changeset 1775 5572e4204f36
parent 1774 92354d20a3ce
child 1776 ed39aa7383ea
Date: Sun, 7 May 2006 19:22:33 -0400 From: Mike Frysinger Subject: [SDL] [patch] fix building with DirectFB-0.9.25.1 another DirectFB release, another small bit of API breakage :) this time around, DIKI_ALTGR has been removed and DIKI_ALT_R is supposed to be used ... DIKI_ALT_R is not a new define, so there shouldnt be any need for checking the DirectFB version ... it should work with older DirectFB's as well thanks to Sascha Schwarz for pointing this out on the Gentoo bugzilla: http://bugs.gentoo.org/132571 -mike
src/video/directfb/SDL_DirectFB_events.c
--- a/src/video/directfb/SDL_DirectFB_events.c	Sun May 07 19:02:07 2006 +0000
+++ b/src/video/directfb/SDL_DirectFB_events.c	Mon May 08 02:09:34 2006 +0000
@@ -155,7 +155,7 @@
   keymap[DIKI_SHIFT_L - DIKI_UNKNOWN] = SDLK_LSHIFT;
   keymap[DIKI_SHIFT_R - DIKI_UNKNOWN] = SDLK_RSHIFT;
   keymap[DIKI_ALT_L - DIKI_UNKNOWN] = SDLK_LALT;
-  keymap[DIKI_ALTGR - DIKI_UNKNOWN] = SDLK_RALT;
+  keymap[DIKI_ALT_R - DIKI_UNKNOWN] = SDLK_RALT;
   keymap[DIKI_TAB - DIKI_UNKNOWN] = SDLK_TAB;
   keymap[DIKI_ENTER - DIKI_UNKNOWN] = SDLK_RETURN;
   keymap[DIKI_SPACE - DIKI_UNKNOWN] = SDLK_SPACE;