add the 2.1-bootstrap dir to MONO_PATH when running smcs
[moon.git] / src / keyboard.h
blob2ed37b3af2a0134c57705d198344546902e5be19
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
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.
8 *
9 */
11 #ifndef __KEYBOARD_H__
12 #define __KEYBOARD_H__
14 #include <glib.h>
16 #include <gdk/gdkevents.h>
18 #include "enums.h"
20 class Keyboard {
21 static ModifierKeys modifiers;
22 static GHashTable *pressedKeys;
24 public:
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__ */