Skip to main content

Type Alias: PfdControllerJoystickEventMapHandlerOptions

PfdControllerJoystickEventMapHandlerOptions = object

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Input/PfdControllerJoystickEventMapHandler.ts:9

Configuration options for PfdControllerJoystickEventMapHandler.

Properties

onPointerMove()?

optional onPointerMove: (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

ParameterTypeDescription
dxnumberThe horizontal displacement, in pixels.
dynumberThe vertical displacement, in pixels.

Returns

boolean

Whether the event was handled.


onPointerToggle()?

optional onPointerToggle: () => 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()?

optional onRangeChange: (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

ParameterTypeDescription
direction1 | -1The direction in which to change the map range.

Returns

boolean

Whether the event was handled.