39 |
extern char keymapname[16]; |
extern char keymapname[16]; |
40 |
extern int keylayout; |
extern int keylayout; |
41 |
extern int win_button_size; |
extern int win_button_size; |
42 |
extern BOOL enable_compose; |
extern BOOL g_enable_compose; |
43 |
|
|
44 |
static BOOL keymap_loaded; |
static BOOL keymap_loaded; |
45 |
static key_translation keymap[KEYMAP_SIZE]; |
static key_translation keymap[KEYMAP_SIZE]; |
140 |
if (strncmp(line, "enable_compose", 15) == 0) |
if (strncmp(line, "enable_compose", 15) == 0) |
141 |
{ |
{ |
142 |
DEBUG_KBD(("Enabling compose handling\n")); |
DEBUG_KBD(("Enabling compose handling\n")); |
143 |
enable_compose = True; |
g_enable_compose = True; |
144 |
continue; |
continue; |
145 |
} |
} |
146 |
|
|
359 |
warning("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym)); |
warning("No translation for (keysym 0x%lx, %s)\n", keysym, get_ksname(keysym)); |
360 |
|
|
361 |
/* not in keymap, try to interpret the raw scancode */ |
/* not in keymap, try to interpret the raw scancode */ |
362 |
if (((int)keycode >= min_keycode) && (keycode <= 0x60)) |
if (((int) keycode >= min_keycode) && (keycode <= 0x60)) |
363 |
{ |
{ |
364 |
tr.scancode = keycode - min_keycode; |
tr.scancode = keycode - min_keycode; |
365 |
|
|