Add notes and placeholders for future modifications.
[gwm.git] / keyboard.h
blob6171baeb6749851f5e7a725d170dc049e71ce97a
1 #ifndef KEYBOARD_H
2 #define KEYBOARD_H
4 /* Map of keysyms: first index is keycode, second index is group/modifier. */
5 extern xcb_keysym_t keyboard_map[ 0x100 ][ 4 ];
6 /* Map of modifiers, indexed by xcb_map_index_t. */
7 extern xcb_keycode_t *modifier_map[ 8 ];
9 #define NUM_KEY_ACTIONS 2
11 extern const struct key_action {
12 xcb_keysym_t keysym;
13 xcb_mod_mask_t modifiers;
14 void ( *handler )( struct gwm_window *window, xcb_generic_event_t *ev );
15 } key_actions[ NUM_KEY_ACTIONS ];
17 extern void get_keyboard_mapping( int first, int count );
18 extern void get_modifier_mapping( void );
19 #if DEBUG
20 extern void cleanup_keyboard( void );
21 #endif
23 #endif