summaryrefslogtreecommitdiffstatshomepage
path: root/keymaps/km_be_LINUX.map
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-02-16 16:44:21 +0100
committer couriersud <couriersud@gmx.org>2019-02-16 16:44:42 +0100
commit757436bbfba420a8bc35ee99c2be93ecf125df84 (patch)
tree5475e0fde29990f5575277dbf265044564ab8db3 /keymaps/km_be_LINUX.map
parent983ffa2de6b409709a41d28aa1690604c7efc1b7 (diff)
Fixed sdl2 keymap processing. [Couriersud]
Keymaps must have been broken for ages: - It is now possible to map every scancode SDL2 defines. - Removed keycode field. This was a leftover from SDL1.x - Fixed bug preventing keymaps from working. - Fixed the DE keymap. - Converted other keymaps to new format and added a comment that they have to be reviewed and fixed.
Diffstat (limited to 'keymaps/km_be_LINUX.map')
-rw-r--r--keymaps/km_be_LINUX.map61
1 files changed, 33 insertions, 28 deletions
diff --git a/keymaps/km_be_LINUX.map b/keymaps/km_be_LINUX.map
index 4462771f129..e15a4345321 100644
--- a/keymaps/km_be_LINUX.map
+++ b/keymaps/km_be_LINUX.map
@@ -1,44 +1,49 @@
+#
+# FIXME: This file produces errors and needs to be fixed.
+#
+
+[SDL2]
# MAME/MESS keymap for Belgian AZERTY 105-keys keyboard (Linux)
#
# Row 1
#
-ITEM_ID_TILDE SDLK_WORLD_18 0x31 0xb2 ²
-ITEM_ID_1 SDLK_AMPERSAND 0x0a 0x26 &
-ITEM_ID_2 SDLK_WORLD_73 0x0b 0xe9 é
-ITEM_ID_3 SDLK_QUOTEDBL 0x0c 0x22 "
-ITEM_ID_4 SDLK_QUOTE 0x0d 0x27 '
-ITEM_ID_5 SDLK_LEFTPAREN 0x0e 0x28 (
-ITEM_ID_6 SDLK_WORLD_7 0x0f 0xa7 §
-ITEM_ID_7 SDLK_WORLD_72 0x10 0xe8 è
-ITEM_ID_8 SDLK_EXCLAIM 0x11 0x21 !
-ITEM_ID_9 SDLK_WORLD_71 0x12 0xe7 ç
-ITEM_ID_0 SDLK_WORLD_64 0x13 0xe0 à
-ITEM_ID_MINUS SDLK_RIGHTPAREN 0x14 0x29 )
-ITEM_ID_EQUALS SDLK_MINUS 0x15 0x2d -
+ITEM_ID_TILDE SDL_SCANCODE_WORLD_18 ²
+ITEM_ID_1 SDL_SCANCODE_AMPERSAND &
+ITEM_ID_2 SDL_SCANCODE_WORLD_73 é
+ITEM_ID_3 SDL_SCANCODE_QUOTEDBL "
+ITEM_ID_4 SDL_SCANCODE_QUOTE '
+ITEM_ID_5 SDL_SCANCODE_LEFTPAREN (
+ITEM_ID_6 SDL_SCANCODE_WORLD_7 §
+ITEM_ID_7 SDL_SCANCODE_WORLD_72 è
+ITEM_ID_8 SDL_SCANCODE_EXCLAIM !
+ITEM_ID_9 SDL_SCANCODE_WORLD_71 ç
+ITEM_ID_0 SDL_SCANCODE_WORLD_64 à
+ITEM_ID_MINUS SDL_SCANCODE_RIGHTPAREN )
+ITEM_ID_EQUALS SDL_SCANCODE_MINUS -
#
# Row 2
#
-ITEM_ID_Q SDLK_a 0x18 0x61 A
-ITEM_ID_W SDLK_z 0x19 0x7a Z
-ITEM_ID_OPENBRACE SDLK_CARET 0x22 0x5e ^
-ITEM_ID_CLOSEBRACE SDLK_DOLLAR 0x23 0x24 $
+ITEM_ID_Q SDL_SCANCODE_A A
+ITEM_ID_W SDL_SCANCODE_Z Z
+ITEM_ID_OPENBRACE SDL_SCANCODE_CARET ^
+ITEM_ID_CLOSEBRACE SDL_SCANCODE_DOLLAR $
#
# Row 3
#
-ITEM_ID_A SDLK_q 0x26 0x71 Q
-ITEM_ID_COLON SDLK_m 0x2f 0x6d M
-ITEM_ID_QUOTE SDLK_WORLD_89 0x30 0xf9 ù
-ITEM_ID_BACKSLASH SDLK_WORLD_21 0x33 0xb5 µ
+ITEM_ID_A SDL_SCANCODE_Q Q
+ITEM_ID_COLON SDL_SCANCODE_M M
+ITEM_ID_QUOTE SDL_SCANCODE_WORLD_89 ù
+ITEM_ID_BACKSLASH SDL_SCANCODE_WORLD_21 µ
#
# Row 4
#
-ITEM_ID_BACKSLASH2 SDLK_LESS 0x5e 0x3c <
-ITEM_ID_Z SDLK_w 0x34 0x77 W
-ITEM_ID_M SDLK_COMMA 0x3a 0x2c ,
-ITEM_ID_COMMA SDLK_SEMICOLON 0x3b 0x3b ;
-ITEM_ID_STOP SDLK_COLON 0x3c 0x3a :
-ITEM_ID_SLASH SDLK_EQUALS 0x3d 0x3d =
+ITEM_ID_BACKSLASH2 SDL_SCANCODE_LESS <
+ITEM_ID_Z SDL_SCANCODE_W W
+ITEM_ID_M SDL_SCANCODE_COMMA ,
+ITEM_ID_COMMA SDL_SCANCODE_SEMICOLON ;
+ITEM_ID_STOP SDL_SCANCODE_COLON :
+ITEM_ID_SLASH SDL_SCANCODE_EQUALS =
#
# Row 5
#
-ITEM_ID_RALT SDLK_MODE 0x71 0x00 ALTGR \ No newline at end of file
+ITEM_ID_RALT SDL_SCANCODE_MODE ALTGR \ No newline at end of file