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
/// The JavaScript event property name for the key code on keyboard events.
pub const INPUT_KEY_CODE_PROPERTY: &str = "code";
/// The JavaScript event property name for the mouse button on mouse events.
pub const INPUT_MOUSE_BUTTON_PROPERTY: &str = "button";
/// The JavaScript event property name for the client X coordinate.
pub const INPUT_CLIENT_X_PROPERTY: &str = "clientX";
/// The JavaScript event property name for the client Y coordinate.
pub const INPUT_CLIENT_Y_PROPERTY: &str = "clientY";
/// The DOM event name for key press events, bound to `window`.
pub const INPUT_EVENT_KEYDOWN: &str = "keydown";
/// The DOM event name for key release events, bound to `window`.
pub const INPUT_EVENT_KEYUP: &str = "keyup";
/// The DOM event name for mouse button press events, bound to the pointer target.
pub const INPUT_EVENT_MOUSEDOWN: &str = "mousedown";
/// The DOM event name for mouse button release events, bound to the pointer target.
pub const INPUT_EVENT_MOUSEUP: &str = "mouseup";
/// The DOM event name for mouse move events, bound to the pointer target.
pub const INPUT_EVENT_MOUSEMOVE: &str = "mousemove";
/// The DOM event name for the pointer leaving the pointer target.
pub const INPUT_EVENT_MOUSELEAVE: &str = "mouseleave";
/// The DOM event name for touch start events, bound to the pointer target.
pub const INPUT_EVENT_TOUCHSTART: &str = "touchstart";
/// The DOM event name for touch move events, bound to the pointer target.
pub const INPUT_EVENT_TOUCHMOVE: &str = "touchmove";
/// The DOM event name for touch end events, bound to the pointer target.
pub const INPUT_EVENT_TOUCHEND: &str = "touchend";
/// The DOM event name for the context menu, suppressed on the pointer target
/// so right-click reaches the engine instead of opening the browser menu.
pub const INPUT_EVENT_CONTEXTMENU: &str = "contextmenu";