Date:2011-06-16 21:01:55 (12 years 9 months ago)
Author:David Kühling
Commit:0244a530f5bae982fe38bc852bdc3f4886ec0bac
Message:liballegro: yet another keyboard fix for 'Fn' key. Keep Fn key (i.e. LCONTROL) from appearing in the key_shifts mask. Else allegro applications will think that ctrl+<number> was pressed.

Files: liballegro/patches/060-fix-keyboard-drv.patch (1 diff)

Change Details

liballegro/patches/060-fix-keyboard-drv.patch
11Index: allegro-4.4.2/src/linux/lkeybd.c
22===================================================================
33--- allegro-4.4.2.orig/src/linux/lkeybd.c 2011-06-16 13:35:57.000000000 +0200
4+++ allegro-4.4.2/src/linux/lkeybd.c 2011-06-16 13:46:23.000000000 +0200
5@@ -204,9 +204,13 @@
4@@ -143,7 +143,10 @@
5 /* convert Allegro format scancodes into key_shifts flag bits */
6 static unsigned short modifier_table[__allegro_KEY_MAX - __allegro_KEY_MODIFIERS] =
7 {
8- __allegro_KB_SHIFT_FLAG, __allegro_KB_SHIFT_FLAG, __allegro_KB_CTRL_FLAG,
9+ __allegro_KB_SHIFT_FLAG, __allegro_KB_SHIFT_FLAG,
10+ /* note: we drop LCONTROL here, as the NanoNote uses it as modifier key
11+ 'Fn', passing it as CTRL causes problems with ASE's key bindings */
12+ /*__allegro_KB_CTRL_FLAG*/ 0,
13    __allegro_KB_CTRL_FLAG, __allegro_KB_ALT_FLAG, __allegro_KB_ALT_FLAG,
14    __allegro_KB_LWIN_FLAG, __allegro_KB_RWIN_FLAG, __allegro_KB_MENU_FLAG,
15    __allegro_KB_SCROLOCK_FLAG, __allegro_KB_NUMLOCK_FLAG, __allegro_KB_CAPSLOCK_FLAG
16@@ -204,9 +207,13 @@
617                 map = 0;
718                 if (key[__allegro_KEY_LSHIFT] || key[__allegro_KEY_RSHIFT]) map |= 1;
819                 if (key[__allegro_KEY_ALTGR]) map |= 2;

Archive Download the corresponding diff file



interactive