removed the key modifier logic from the lower level, and pushed it entirely into...
[newos.git] / include / win / Event.h
bloba03af4a4a4f762bc803c0a9052556f1c776c33e8
1 #ifndef _EVENT_H
2 #define _EVENT_H
4 namespace os {
5 namespace gui {
7 enum {
8 EVT_PAINT = 0,
9 EVT_QUIT,
10 EVT_MOUSE_DOWN,
11 EVT_MOUSE_UP,
12 EVT_MOUSE_MOVED,
13 EVT_MOUSE_ENTER,
14 EVT_MOUSE_LEAVE,
15 EVT_KEY_DOWN,
16 EVT_KEY_UP
19 struct Event {
20 int what;
21 int target;
23 int key;
24 int modifiers;
25 int x, y;
28 enum {
29 EVT_MOD_KEYDOWN = 0x1,
30 EVT_MOD_KEYUP = 0x2,
31 EVT_MOD_SHIFT = 0x4,
32 EVT_MOD_CTRL = 0x8,
33 EVT_MOD_ALT = 0x10,
34 EVT_MOD_WIN = 0x20,
35 EVT_MOD_MENU = 0x40,
41 #endif