Class vxlViewInteractor

Constructor

vxlViewInteractor()

Handles the interaction between a camera and a view

Methods

.addKeyAction(key, fn)
Maps a key code to a function

Parameters:

Type Name Description
String key

Object fn

.connectCamera(c)

Parameters:

Type Name Description
vxlCamera c

the camera to connect to this interactor

.connectView(view)

Parameters:

Type Name Description
vxlView view

the view

.disconnectFromView()
.enableKeyActions(flag)

Parameters:

Type Name Description
flag

.fireKeyAction(keycode)
Invokes the function associated with a key code

Parameters:

Type Name Description
Object keycode

.getType()
.removeKeyAction(key)
Removes a key binding

Parameters:

Type Name Description
String key