From: Alexander Kurtz Date: Mon, 4 Apr 2011 20:30:46 +0000 (+0200) Subject: x11: Add function bindings to deal with KeySym and KeyCode X-Git-Tag: 0.12.1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b88427bc8b41dfb41145e8dd05ff88123ee580c4;p=thirdparty%2Fvala.git x11: Add function bindings to deal with KeySym and KeyCode --- diff --git a/vapi/x11.vapi b/vapi/x11.vapi index 461e37459..c489f271b 100644 --- a/vapi/x11.vapi +++ b/vapi/x11.vapi @@ -135,6 +135,9 @@ namespace X { [CCode (cname = "XKeysymToKeycode")] public uchar keysym_to_keycode (ulong keysym); + [CCode (cname = "XKeycodeToKeysym")] + public ulong keycode_to_keysym (uchar keycode, int index); + [CCode (cname = "XLastKnownRequestProcessed")] public ulong last_known_request_processed (); @@ -948,5 +951,14 @@ namespace X { public const uint XK_Scroll_Lock; public const uint XK_Super_L; public const uint XK_Super_R; + + [CCode (cname = "XStringToKeysym")] + public ulong string_to_keysym (string key); + + [CCode (cname = "XKeysymToString")] + public unowned string keysym_to_string (ulong keysym); + + [CCode (cname = "XConvertCase")] + public void convert_case (ulong keysym, out ulong lower_return, out ulong upper_return); }