[AD] Fix keyboard tables problem (1/n) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
This patch simply adjusts the size of the initializers in src/misc/pckeys.c
to the size of the tables (which is KEY_MAX), without taking into account
Angelo's recent changes. It's actually a no-op.
Applied to mainline and branch (that pckeys.c was not updated for 4.0 after
the addition of a few Japanese keys, without causing any harm, makes me
think that adding new keys before KEY_MODIFIERS is transparent for the
library code; the only other hot spot is src/linux/lkeybd.c, which appears to
be immune too).
--
Eric Botcazou
Index: src/misc/pckeys.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/misc/pckeys.c,v
retrieving revision 1.13
diff -u -r1.13 pckeys.c
--- src/misc/pckeys.c 18 May 2003 09:24:55 -0000 1.13
+++ src/misc/pckeys.c 29 Oct 2003 08:49:32 -0000
@@ -173,7 +173,8 @@
/* misc chars */ 27, '`', '-', '=', 8, 9, '[', ']', 13, ';', '\'', '\\', '\\', ',', '.', '/', ' ',
/* controls */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
/* numpad */ '/', '*', '-', '+', '.', 13,
- /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ /* others */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
@@ -189,7 +190,8 @@
/* misc chars */ 27, '`', '-', '=', 8, 9, '[', ']', 13, ';', '\'', '\\', '\\', ',', '.', '/', ' ',
/* controls */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
/* numpad */ '/', '*', '-', '+', '.', 13,
- /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ /* others */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
@@ -205,7 +207,8 @@
/* misc chars */ 27, '~', '_', '+', 8, 9, '{', '}', 13, ':', '"', '|', '|', '<', '>', '?', ' ',
/* controls */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
/* numpad */ '/', '*', '-', '+', '.', 13,
- /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ /* others */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
@@ -221,7 +224,8 @@
/* misc chars */ 27, 2, 2, 2, 127, 127, 2, 2, 10, 2, 2, 2, 2, 2, 2, 2, 2,
/* controls */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,
/* numpad */ 2, 2, 2, 2, 2, 10,
- /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ /* others */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ /* modifiers */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};