1 | #ifndef KEYBOARD_H_ |
1 | #ifndef KEYBOARD_H_ |
2 | #define KEYBOARD_H_ |
2 | #define KEYBOARD_H_ |
|
|
3 | |
|
|
4 | #ifdef KEYSYM_RESOURCE |
3 | |
5 | |
4 | #include <inttypes.h> |
6 | #include <inttypes.h> |
5 | |
7 | |
6 | #include "feature.h" |
8 | #include "feature.h" |
7 | #include "rxvtutil.h" |
9 | #include "rxvtutil.h" |
8 | |
|
|
9 | #ifdef KEYSYM_RESOURCE |
|
|
10 | |
10 | |
11 | #define KEYSYM_HASH_BITS 4 /* lowest #bits of keysym is used as hash key */ |
11 | #define KEYSYM_HASH_BITS 4 /* lowest #bits of keysym is used as hash key */ |
12 | #define KEYSYM_HASH_BUDGETS (1<<KEYSYM_HASH_BITS) |
12 | #define KEYSYM_HASH_BUDGETS (1<<KEYSYM_HASH_BITS) |
13 | #define KEYSYM_HASH_MASK (KEYSYM_HASH_BUDGETS-1) |
13 | #define KEYSYM_HASH_MASK (KEYSYM_HASH_BUDGETS-1) |
14 | |
14 | |
… | |
… | |
74 | vector<keysym_t *> user_keymap; |
74 | vector<keysym_t *> user_keymap; |
75 | vector<const char *> user_translations; |
75 | vector<const char *> user_translations; |
76 | }; |
76 | }; |
77 | |
77 | |
78 | #endif /* KEYSYM_RESOURCE */ |
78 | #endif /* KEYSYM_RESOURCE */ |
|
|
79 | |
79 | #endif /* KEYBOARD_H_ */ |
80 | #endif /* KEYBOARD_H_ */ |
80 | // vim:et:sw=2 |
|
|