new AxHtmlCanvasInputDevice()
Create a new AxHtmlCanvasInputDevice.
This input device uses an Html Canvas element to obtain user input from
Methods
SetContext(context)
Sets the context for the input device
Parameters:
Name | Type | Description |
---|---|---|
context |
Axis | The instance of Axis, to which the input device will apply |
SetSpecialKeyState(key, eventArgs, state)
Sets keys which are acquired in a special way.
These keys are the Left and Right of Shift, Control and Alt
Passing a non-special state key results in no action
For internal usage
Parameters:
Name | Type | Description |
---|---|---|
key |
Integer | The keycode for which to set special state |
eventArgs |
type | Event arguments, as passed to the event handler |
state |
Boolean | True for key state down, false for key state up |
Update()
Updates the device.
This method is called continuously on each rendering iteration