Because we keep the keycode inside the xkb_key now.
Signed-off-by: Ran Benita <ran234@gmail.com>
continue;
write_buf(buf, "\t\t%6s = %d;\n",
- KeyNameText(key->name), XkbKeyGetKeycode(keymap, key));
+ KeyNameText(key->name), key->keycode);
}
for (i = 0; i < XKB_NUM_INDICATORS; i++) {
return &darray_item(keymap->keys, kc);
}
-static inline xkb_keycode_t
-XkbKeyGetKeycode(struct xkb_keymap *keymap, const struct xkb_key *key)
-{
- /* Hack to avoid having to keep the keycode inside the xkb_key. */
- return (xkb_keycode_t)(key - keymap->keys.item);
-}
-
#define xkb_foreach_key(iter, keymap) \
darray_foreach(iter, keymap->keys)