# Event

Functions to aid in interacting with the supplemental events a touch environment brings to the table.

In general, Mojo seeks to use standard DOM events, plus pseudo-standard events that have become popular in versions of webkit that support multi-touch. This module seeks to provide functionality that is supplemental to those standard events.

Refer to the DOM level 3 draft for a reference to DOM standard events.

Mobile-specific events provided by webOS:

- orientationchange
- gesturestart
- gesturechange
- gestureend
- shakestart
- shaking
- shakeend
- acceleration

Mobile events NOT currently supported by webOS:

- touchstart
- touchmove
- touchend
- touchcancel

In addition, the Mojo specific events documented below are supported. These do not work in most mobile browsers, but are invaluable in writing webOS applications that interact smoothly with the system.

To use a built-in event, simply listen as you would any other standard browser event.

For example:

>     someElement.addEventListener('gesturestart', someEventHandler);

There are aliases for the Mojo specific events (documented below), which you can use when listening to these events.

For example:

>     document.addEventListener(Mojo.Event.back, someEventHandler);

## Classes

- Event.AccelerationEvent

  An instance of this class is passed to acceleration event handlers.

- Event.DragEvent

  An instance of this class is passed to drag event listeners.

- Event.DragEvent

  An instance of this class is passed to drag event listeners.

- Event.FlickEvent

  An instance of this class is passed to flick event handlers.

- Event.GestureEvent

  An instance of this class is passed to gesture event handlers.

- Event.OrientationChangeEvent

  An instance of this class is passed to orientationchange event handlers.

- Event.RelaunchEvent

  An instance of this class is passed to Event.relaunch listeners.

- Event.ScreenRotateEvent

  An instance of this class is passed to screen rotation event handlers.

- Event.ShakeEvent

  An instance of this class is passed to shake event handlers.

## Class methods

- Event.make
- Event.send
- Event.stop

## Constants

- Event.back
- Event.command
- Event.down
- Event.dragEnd
- Event.dragging
- Event.dragStart
- Event.flick
- Event.forward
- Event.lowMemory
- Event.relaunch
- Event.screenRotate
- Event.up
- Event.windowActivate
- Event.windowDeactivate