Change-Id: If1644c4c6575b4eb7cadb8c1e11147651013d8ef
int
xkb_keymap_key_repeats(struct xkb_keymap *keymap, xkb_keycode_t key);
+int
+xkb_keymap_key_set_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc, int enable);
+
+
/** @} */
/**
return key->repeats;
}
+
+XKB_EXPORT int
+xkb_keymap_key_set_repeats(struct xkb_keymap *keymap, xkb_keycode_t kc, int enable)
+{
+ struct xkb_key *key = XkbKey(keymap, kc);
+
+ if (!key)
+ return 0;
+
+ key->repeats = !!enable;
+ key->explicit |= EXPLICIT_REPEAT;
+
+ return 1;
+}