IJoystick

Interaction interface and receiving information from the joystick.

Members

Manifest constants

maximumAxes
enum maximumAxes;
Undocumented in source.

Properties

axless
int[] axless [@property getter]

A method that returns the value of all axes of the controller. The maximum number of axes can be checked using the .length property:

button
int button [@property getter]

Method showing which button was pressed/released in the current event.

buttonDown
int buttonDown [@property getter]

Shows the currently pressed key.

buttonUp
int buttonUp [@property getter]

Shows the currently released key.

isAxisMove
bool isAxisMove [@property getter]

Shows the state when any one of the axes has changed its state.

isButtonDown
bool isButtonDown [@property getter]

Shows the state when any button was pressed.

isButtonUp
bool isButtonUp [@property getter]

Shows the state when any button was released..

maxButtons
uint maxButtons [@property getter]

A method that returns the maximum number of buttons on the controller.

name
string name [@property getter]

A method that returns the name of the controller.

uv
Vector!float uv [@property getter]

Shows the value of the third axis on the controller. The value ranges from -1.0 to 1.0.

xy
Vector!float xy [@property getter]

Shows the value of the first axis on the controller. The value ranges from -1.0 to 1.0.

zr
Vector!float zr [@property getter]

Shows the value of the second axis on the controller. The value ranges from -1.0 to 1.0.

Meta