comparison osdep/keycodes.h @ 35965:7038dec225b1

Fix KEY_BACKSPACE, KEY_DELETE and KEY_ESC to map to their ASCII equivalents. Also avoids some issues with our X11 key string lookup ending up translating these to their ASCII values, which before resulted in "unknown key" messages.
author reimar
date Mon, 25 Mar 2013 22:54:54 +0000
parents 6ac59489c815
children
comparison
equal deleted inserted replaced
35964:3ebf8c880e07 35965:7038dec225b1
24 #define MPLAYER_KEYCODES_H 24 #define MPLAYER_KEYCODES_H
25 25
26 #define KEY_BASE 0x1000000 26 #define KEY_BASE 0x1000000
27 27
28 enum { 28 enum {
29 KEY_BACKSPACE = 8,
29 KEY_TAB = 9, 30 KEY_TAB = 9,
30 KEY_ENTER = 13, 31 KEY_ENTER = 13,
32 KEY_ESC = 27,
33 KEY_DELETE = 127,
31 /* Control keys */ 34 /* Control keys */
32 KEY_BACKSPACE = KEY_BASE, 35 KEY_INSERT = KEY_BASE,
33 KEY_DELETE,
34 KEY_INSERT,
35 KEY_HOME, 36 KEY_HOME,
36 KEY_END, 37 KEY_END,
37 KEY_PAGE_UP, 38 KEY_PAGE_UP,
38 KEY_PAGE_DOWN, 39 KEY_PAGE_DOWN,
39 KEY_ESC,
40 /* Cursor movement */ 40 /* Cursor movement */
41 KEY_RIGHT = KEY_BASE + 16, 41 KEY_RIGHT = KEY_BASE + 16,
42 KEY_LEFT, 42 KEY_LEFT,
43 KEY_DOWN, 43 KEY_DOWN,
44 KEY_UP, 44 KEY_UP,