-
Notifications
You must be signed in to change notification settings - Fork 0
/
MouseEventType.hx
156 lines (120 loc) · 4.81 KB
/
MouseEventType.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package eventtypes;
enum abstract MouseEventType(String) to String {
/**
The click event is fired when a pointing device button (usually a
mouse's primary button) is pressed and released on a single element.
See https://developer.mozilla.org/en-US/docs/Web/Events/click
*/
var Click = 'click';
/**
The dblclick event is fired when a pointing device button (usually a
mouse's primary button) is clicked twice on a single element.
See https://developer.mozilla.org/en-US/docs/Web/Events/dblclick
*/
var DblClick = 'dblclick';
/**
The auxclick event is fired when a non-primary pointing device button
(e.g. any non-left mouse button) has been pressed and released on an
element.
Note: This is an experimental technology
See https://developer.mozilla.org/en-US/docs/Web/Events/auxclick
*/
var AuxClick = 'auxclick';
/**
The contextmenu event is fired when the right button of the mouse is
clicked (before the context menu is displayed), or when the context
menu key is pressed (in which case the context menu is displayed at the
bottom left of the focused element, unless the element is a tree, in
which case the context menu is displayed at the bottom left of the
current row).
See https://developer.mozilla.org/en-US/docs/Web/Events/contextmenu
*/
var ContextMenu = 'contextmenu';
/**
The mousedown event is fired when a pointing device button is pressed
on an element.
See https://developer.mozilla.org/en-US/docs/Web/Events/mousedown
*/
var MouseDown = 'mousedown';
/**
The mouseenter event is fired when a pointing device (usually a mouse)
is moved over the element that has the listener attached.
Similar to mouseover, it differs in that it doesn't bubble and that it
isn't sent when the pointer is moved from one of its descendants'
physical space to its own physical space.
See https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter
*/
var MouseEnter = 'mouseenter';
/**
The mouseleave event is fired when the pointer of a pointing device
(usually a mouse) is moved out of an element.
mouseleave and mouseout are similar but differ in that mouseleave does
not bubble and mouseout does.
This means that mouseleave is fired when the pointer has exited the
element and all of its descendants, whereas mouseout is fired when the
pointer leaves the element or leaves one of the element's descendants
(even if the pointer is still within the element).
See https://developer.mozilla.org/en-US/docs/Web/Events/mouseleave
*/
var MouseLeave = 'mouseleave';
/**
The mousemove event is fired when a pointing device (usually a mouse)
is moved while over an element.
See https://developer.mozilla.org/en-US/docs/Web/Events/mousemove
*/
var MouseMove = 'mousemove';
/**
The mouseout event is fired when a pointing device (usually a mouse) is
moved off the element that has the listener attached or off one of its
children. Note that it is also triggered on the parent when you move
onto a child element, since you move out of the visible space of the
parent.
See https://developer.mozilla.org/en-US/docs/Web/Events/mouseout
*/
var MouseOut = 'mouseout';
/**
The mouseover event is fired when a pointing device is moved onto the
element that has the listener attached or onto one of its children.
See https://developer.mozilla.org/en-US/docs/Web/Events/mouseover
*/
var MouseOver = 'mouseover';
/**
The mouseup event is fired when a pointing device button is released
over an element.
See https://developer.mozilla.org/en-US/docs/Web/Events/mouseup
*/
var MouseUp = 'mouseup';
/**
The show event is fired when a contextmenu event was fired on/bubbled
to an element that has a contextmenu attribute.
See https://developer.mozilla.org/en-US/docs/Web/Events/show
*/
var Show = 'show';
/**
The wheel event is fired when a wheel button of a pointing device
(usually a mouse) is rotated. This event replaces the non-standard
deprecated mousewheel event.
See https://developer.mozilla.org/en-US/docs/Web/Events/wheel
*/
var Wheel = 'wheel';
/**
The select event is fired when some text is being selected. The event
might not be available for all elements in all languages. For example,
in [HTML5], select events can be dispatched only on form input and
textarea elements.
See https://developer.mozilla.org/en-US/docs/Web/Events/select
*/
var Select = 'select';
/**
The pointerlockchange event is fired when the pointer is
locked/unlocked.
See https://developer.mozilla.org/en-US/docs/Web/Events/pointerlockchange
*/
var PointerLockChange = 'pointerlockchange';
/**
The pointerlockerror event is fired when locking the pointer failed
(for technical reasons or because the permission was denied).
See https://developer.mozilla.org/en-US/docs/Web/Events/pointerlockerror
*/
var PointerLockError = 'pointerlockerror';
}