My favorites | English | Sign in

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

enum Button o3d.Event
enum Type o3d.Event

Public Properties

boolean altKey o3d.Event
number button o3d.Event
number charCode o3d.Event
boolean ctrlKey o3d.Event
number deltaX o3d.Event
number deltaY o3d.Event
boolean fullscreen o3d.Event
number height o3d.Event
number keyCode o3d.Event
boolean metaKey o3d.Event
number screenX o3d.Event
number screenY o3d.Event
boolean shiftKey o3d.Event
string type o3d.Event
number width o3d.Event
number x o3d.Event
number y o3d.Event

Public Types Documentation

enum o3d.Event.Button

Button,

  • BUTTON_LEFT
  • BUTTON_RIGHT
  • BUTTON_MIDDLE
  • BUTTON_4
  • BUTTON_5 Constants used to identify mouse buttons.
  • enum o3d.Event.Type

    String identifiers for JavaScript events. type

  • invalid
  • click
  • dblclick
  • mousedown
  • mousemove
  • mouseup
  • wheel
  • keydown
  • keypress
  • keyup
  • resize

  • Member Property Documentation

    boolean Event.altKey

    Whether the alt [option, on OSX] key was pressed at the time of the event. This property is read-only.

    number Event.button

    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.

    number Event.charCode

    The character created by a keypress event. This property is read-only.

    boolean Event.ctrlKey

    Whether the ctrl key was pressed at the time of the event. This property is read-only.

    number Event.deltaX

    The horizontal scroll offset for wheel events, in arbitrary units. Positive values mean right; negative mean left. This property is read-only.

    number Event.deltaY

    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.

    boolean Event.fullscreen

    Whether we're currently displaying in fullscreen mode. This property is read-only.

    number Event.height

    The height in pixels of the plugin or fullscreen display region as a result of this event. This property is read-only.

    number Event.keyCode

    The key code of the key pressed or released. This property is read-only.

    boolean Event.metaKey

    Whether the meta [command, on OSX] key was pressed at the time of the event. This property is read-only.

    number Event.screenX

    The x-coordinate in pixels from the left side of the screen. This property is read-only.

    number Event.screenY

    The y-coordinate in pixels from the top of the screen. This property is read-only.

    boolean Event.shiftKey

    Whether the shift key was pressed at the time of the event. This property is read-only.

    string Event.type

    The type of event this object represents. type

  • invalid
  • click
  • dblclick
  • keydown
  • keypress
  • keyup
  • mousedown
  • mousemove
  • mouseup
  • wheel
  • resize This property is read-only.
  • number Event.width

    The width in pixels of the plugin or fullscreen display region as a result of this event. This property is read-only.

    number Event.x

    The x-coordinate in pixels from the left side of the plugin or fullscreen display region. This property is read-only.

    number Event.y

    The y-coordinate in pixels from the top of the plugin or fullscreen display region. This property is read-only.