Methods
addKeyListener(keyCode, description)
Add a keylistener to the list of know listeners for external access
Parameters:
Name | Type | Description |
---|---|---|
keyCode |
string | The keycode combination as string |
description |
string | The description |
- Source:
checkDownKey(event)
Keybindings for the whole viewer. Checks only for the press down.
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the keyboard event |
- Source:
checkUpKey(event)
Check for a released key event
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the keyboard event |
- Source:
init()
initialise the keyboard events
- Source:
mouseScroll(event)
Scrolllistener for the mouse
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the scroll event |
- Source:
stopEvent(eventopt)
Event cancellation
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
event |
object |
<optional> |
window.event | cancel event. |
- Source:
touchesMove(event)
Detect the motion of two touches fort pinching to zoom
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the event |
- Source:
touchesStart(event)
Start detecting touch movement for scaling events
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the event |
- Source:
touchesStop(event)
End the touches events for scaling the content
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | the event |
- Source: