repo.or.cz
/
newos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
removed the key modifier logic from the lower level, and pushed it entirely into...
[newos.git]
/
include
/
win
/
Event.h
blob
a03af4a4a4f762bc803c0a9052556f1c776c33e8
1
#ifndef _EVENT_H
2
#define _EVENT_H
3
4
namespace
os
{
5
namespace
gui
{
6
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
17
};
18
19
struct
Event
{
20
int
what
;
21
int
target
;
22
23
int
key
;
24
int
modifiers
;
25
int
x
,
y
;
26
};
27
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
,
36
};
37
38
}
39
}
40
41
#endif
42