1 /**
2  * ae.ui.shell.events
3  *
4  * License:
5  *   This Source Code Form is subject to the terms of
6  *   the Mozilla Public License, v. 2.0. If a copy of
7  *   the MPL was not distributed with this file, You
8  *   can obtain one at http://mozilla.org/MPL/2.0/.
9  *
10  * Authors:
11  *   Vladimir Panteleev <vladimir@thecybershadow.net>
12  */
13 
14 module ae.ui.shell.events;
15 
16 enum MouseButton : ubyte
17 {
18 	Left,
19 	Right,
20 	Middle,
21 	WheelUp,
22 	WheelDown,
23 	Max
24 }
25 
26 enum MouseButtons : ubyte
27 {
28 	None = 0,
29 	Left      = 1<<0,
30 	Right     = 1<<1,
31 	Middle    = 1<<2,
32 	WheelUp   = 1<<3,
33 	WheelDown = 1<<4
34 }
35 
36 enum Key
37 {
38 	unknown,
39 	esc,
40 	up,
41 	down,
42 	left,
43 	right,
44 	pageUp,
45 	pageDown,
46 	home,
47 	end,
48 	space
49 }
50 
51 enum JoystickHatState
52 {
53 	up    = 1,
54 	right = 2,
55 	down  = 4,
56 	left  = 8,
57 }