1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * keyboard.h: keyboard utils
5 * Copyright 2008 Novell, Inc. (http://www.novell.com)
7 * See the LICENSE file included with the distribution for details.
11 #ifndef __KEYBOARD_H__
12 #define __KEYBOARD_H__
16 #include <gdk/gdkevents.h>
21 static ModifierKeys modifiers
;
22 static GHashTable
*pressedKeys
;
25 /* @GenerateCBinding,GeneratePInvoke */
26 static ModifierKeys
GetModifiers ();
28 static void SetModifiers (ModifierKeys m
);
30 static void OnKeyPress (Key key
);
31 static void OnKeyRelease (Key key
);
33 static bool IsKeyPressed (Key key
);
35 static Key
MapKeyValToKey (guint keyval
);
38 #endif /* __KEYBOARD_H__ */