o3d.Event Class Reference
List of all members.
Detailed Description
An Event object contains information describing a JavaScript event; it's used
as an argument to event handlers triggered by the plugin.
Public Types
Public Properties
Public Types Documentation
Button,
BUTTON_LEFT
BUTTON_RIGHT
BUTTON_MIDDLE
BUTTON_4
BUTTON_5
Constants used to identify mouse buttons.
String identifiers for JavaScript events.
type
invalid
click
dblclick
mousedown
mousemove
mouseup
wheel
keydown
keypress
keyup
resize
Member Property Documentation
Whether the alt [option, on OSX] key was pressed at the time of the event.
This property is read-only.
Which mouse button caused the event, in the case of mousedown, mouseup,
click, and dblclick events. This uses the values in enum Button.
This property is read-only.
The character created by a keypress event.
This property is read-only.
Whether the ctrl key was pressed at the time of the event.
This property is read-only.
The horizontal scroll offset for wheel events, in arbitrary units.
Positive values mean right; negative mean left.
This property is read-only.
The vertical scroll offset for wheel events, in arbitrary units.
Positive values mean up or away from the user; negative mean down or toward
the user.
This property is read-only.
Whether we're currently displaying in fullscreen mode.
This property is read-only.
The height in pixels of the plugin or fullscreen display region as a result
of this event.
This property is read-only.
The key code of the key pressed or released.
This property is read-only.
Whether the meta [command, on OSX] key was pressed at the time of the event.
This property is read-only.
The x-coordinate in pixels from the left side of the screen.
This property is read-only.
The y-coordinate in pixels from the top of the screen.
This property is read-only.
Whether the shift key was pressed at the time of the event.
This property is read-only.
The type of event this object represents.
type
invalid
click
dblclick
keydown
keypress
keyup
mousedown
mousemove
mouseup
wheel
resize
This property is read-only.
The width in pixels of the plugin or fullscreen display region as a result
of this event.
This property is read-only.
The x-coordinate in pixels from the left side of the plugin or fullscreen
display region.
This property is read-only.
The y-coordinate in pixels from the top of the plugin or fullscreen
display region.
This property is read-only.