Skip to content
JoystickBindKeyType

UI / JoystickBindKeyType

JoystickBindKeyType Class

Joystick key binding

Table of contents

Properties

down: Keys
Down button
left: Keys
Left button
right: Keys
Right button
up: Keys
Up button

Do not assign values and wait for individual binding for each key in the future

new JoystickBindKeyType(up, down, left, right)

Construct a data structure to transfer the keys to be bound to the joystick

Parameters

up KeysUsage: Up button default: undefined
down KeysUsage: Down button default: undefined
left KeysUsage: Left button default: undefined
right KeysUsage: Right button default: undefined

Properties

down

down: Keys

Down button


left

left: Keys

Left button


right: Keys

Right button


up

up: Keys

Up button