/*! These keys are bound to the modifier masks in any fashion,
except for CapsLock, Shift, and Control. */
typedef enum {
+ OBT_KEYBOARD_MODKEY_NONE,
OBT_KEYBOARD_MODKEY_CAPSLOCK,
OBT_KEYBOARD_MODKEY_NUMLOCK,
OBT_KEYBOARD_MODKEY_SCROLLLOCK,
void obt_keyboard_reload(void);
-/*! Get the modifier mask(s) for a KeyCode. (eg. a keycode bound to Alt_L could
- return a mask of (Mod1Mask | Mask3Mask)) */
-guint obt_keyboard_keycode_to_modmask(guint keycode);
+/*! Get the modifier mask(s) for a keyboard event.
+ (eg. a keycode bound to Alt_L could return a mask of (Mod1Mask | Mask3Mask))
+*/
+guint obt_keyboard_keyevent_to_modmask(XEvent *e);
/*! Strip off all modifiers except for the modifier keys. This strips stuff
like Button1Mask, and also LockMask, NumlockMask, and ScrolllockMask */