Type Alias: PfdControllerJoystickEventMapHandlerOptions
PfdControllerJoystickEventMapHandlerOptions =
object
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Input/PfdControllerJoystickEventMapHandler.ts:9
Configuration options for PfdControllerJoystickEventMapHandler.
Properties
onPointerMove()?
optionalonPointerMove: (dx,dy) =>boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Input/PfdControllerJoystickEventMapHandler.ts:23
A function that handles map pointer move events. If not defined, then map pointer move events will not be handled.
Parameters
| Parameter | Type | Description |
|---|---|---|
dx | number | The horizontal displacement, in pixels. |
dy | number | The vertical displacement, in pixels. |
Returns
boolean
Whether the event was handled.
onPointerToggle()?
optionalonPointerToggle: () =>boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Input/PfdControllerJoystickEventMapHandler.ts:15
A function that handles map pointer toggle events. If not defined, then map pointer toggle events will not be handled.
Returns
boolean
Whether the event was handled.
onRangeChange()?
optionalonRangeChange: (direction) =>boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Input/PfdControllerJoystickEventMapHandler.ts:30
A function that handles map range change events. If not defined, then map range change events will not be handled.
Parameters
| Parameter | Type | Description |
|---|---|---|
direction | 1 | -1 | The direction in which to change the map range. |
Returns
boolean
Whether the event was handled.