X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fkeyboard.h;h=143921ff2fa927e667d40aa5792a32d08e9e6ad8;hb=d179d6428ae585a3b8a13479bfe4586e41de2ff9;hp=902f95b87d16c6b46fb4c6d23419ebce17a45e7e;hpb=41dbce908a981214d2d61e813c17d9415f938d87;p=chaz%2Fopenbox diff --git a/obt/keyboard.h b/obt/keyboard.h index 902f95b8..143921ff 100644 --- a/obt/keyboard.h +++ b/obt/keyboard.h @@ -21,6 +21,7 @@ #include #include +#include G_BEGIN_DECLS @@ -60,7 +61,11 @@ guint obt_keyboard_modkey_to_modmask(ObtModkeysKey key); KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym); /*! Translate a KeyPress event to the unicode character it represents */ -gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XKeyPressedEvent *ev); +gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XEvent *ev); + +/*! Translate a KeyPress event to the KeySym that it represents. Use this + for control keys, not for getting text input! */ +KeySym obt_keyboard_keypress_to_keysym(XEvent *ev); /*! Create an input context for a window. @client The top-level client window for the input context.