From 6b5a77e7feb7bc3d33f3c3b8919289bdc72bb8e1 Mon Sep 17 00:00:00 2001 From: Alexander Kurtz Date: Mon, 4 Apr 2011 22:30:46 +0200 Subject: [PATCH] x11: Add function bindings to deal with KeySym and KeyCode --- vapi/x11.vapi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vapi/x11.vapi b/vapi/x11.vapi index 461e3745..c489f271 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); } -- 2.11.4.GIT