42 |
extern Window g_wnd; |
extern Window g_wnd; |
43 |
extern char keymapname[16]; |
extern char keymapname[16]; |
44 |
extern int g_keylayout; |
extern int g_keylayout; |
45 |
|
extern int g_keyboard_type; |
46 |
|
extern int g_keyboard_subtype; |
47 |
|
extern int g_keyboard_functionkeys; |
48 |
extern int g_win_button_size; |
extern int g_win_button_size; |
49 |
extern BOOL g_enable_compose; |
extern BOOL g_enable_compose; |
50 |
extern BOOL g_use_rdp5; |
extern BOOL g_use_rdp5; |
344 |
continue; |
continue; |
345 |
} |
} |
346 |
|
|
347 |
|
/* keyboard_type */ |
348 |
|
if (strncmp(line, "keyboard_type ", sizeof("keyboard_type ")) == 0) |
349 |
|
{ |
350 |
|
g_keyboard_type = strtol(line + sizeof("keyboard_type "), NULL, 16); |
351 |
|
DEBUG_KBD(("keyboard_type 0x%x\n", g_keyboard_type)); |
352 |
|
continue; |
353 |
|
} |
354 |
|
|
355 |
|
/* keyboard_subtype */ |
356 |
|
if (strncmp(line, "keyboard_subtype ", sizeof("keyboard_subtype ")) == 0) |
357 |
|
{ |
358 |
|
g_keyboard_subtype = strtol(line + sizeof("keyboard_subtype "), NULL, 16); |
359 |
|
DEBUG_KBD(("keyboard_subtype 0x%x\n", g_keyboard_subtype)); |
360 |
|
continue; |
361 |
|
} |
362 |
|
|
363 |
|
/* keyboard_functionkeys */ |
364 |
|
if (strncmp(line, "keyboard_functionkeys ", sizeof("keyboard_functionkeys ")) == 0) |
365 |
|
{ |
366 |
|
g_keyboard_functionkeys = |
367 |
|
strtol(line + sizeof("keyboard_functionkeys "), NULL, 16); |
368 |
|
DEBUG_KBD(("keyboard_functionkeys 0x%x\n", g_keyboard_functionkeys)); |
369 |
|
continue; |
370 |
|
} |
371 |
|
|
372 |
/* Comment */ |
/* Comment */ |
373 |
if (line[0] == '#') |
if (line[0] == '#') |
374 |
{ |
{ |