keymaps.h (fe5fca9a03ee965e039b8f5c0475032c9f950185) keymaps.h (abb4f2c9655503f14dc55064f29c4f59b07e96ff)
1/*
2 * QEMU keysym to keycode conversion using rdesktop keymaps
3 *
4 * Copyright (c) 2004 Johannes Schindelin
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 40 unchanged lines hidden (view full) ---

49#define SCANCODE_CTRL 0x200
50#define SCANCODE_ALT 0x400
51#define SCANCODE_ALTGR 0x800
52
53typedef struct kbd_layout_t kbd_layout_t;
54
55kbd_layout_t *init_keyboard_layout(const name2keysym_t *table,
56 const char *language);
1/*
2 * QEMU keysym to keycode conversion using rdesktop keymaps
3 *
4 * Copyright (c) 2004 Johannes Schindelin
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 40 unchanged lines hidden (view full) ---

49#define SCANCODE_CTRL 0x200
50#define SCANCODE_ALT 0x400
51#define SCANCODE_ALTGR 0x800
52
53typedef struct kbd_layout_t kbd_layout_t;
54
55kbd_layout_t *init_keyboard_layout(const name2keysym_t *table,
56 const char *language);
57int keysym2scancode(kbd_layout_t *k, int keysym);
57int keysym2scancode(kbd_layout_t *k, int keysym,
58 bool shift, bool altgr, bool ctrl);
58int keycode_is_keypad(kbd_layout_t *k, int keycode);
59int keysym_is_numlock(kbd_layout_t *k, int keysym);
60
61#endif /* QEMU_KEYMAPS_H */
59int keycode_is_keypad(kbd_layout_t *k, int keycode);
60int keysym_is_numlock(kbd_layout_t *k, int keysym);
61
62#endif /* QEMU_KEYMAPS_H */