Joystick

Undocumented in source.

Constructors

this
this(int id, EventHandler event)
Undocumented in source.

Members

Properties

axless
int[] axless [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
button
int button [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isAxisMove
bool isAxisMove [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isButtonDown
bool isButtonDown [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isButtonUp
bool isButtonUp [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
maxButtons
uint maxButtons [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

defAxisMax
auto defAxisMax;
Undocumented in source.
defAxisMin
auto defAxisMin;
Undocumented in source.
defAxisThreshold
auto defAxisThreshold;
Undocumented in source.
jbuttondown
immutable(int[]) jbuttondown;
Undocumented in source.
jbuttonup
immutable(int[]) jbuttonup;
Undocumented in source.
jid
immutable(int[]) jid;
Undocumented in source.
jmove
immutable(int[]) jmove;
Undocumented in source.

Variables

_axis
int[] _axis;
Undocumented in source.
axesState
int[] axesState;
Undocumented in source.
axisMax
int[] axisMax;
Undocumented in source.
axisMin
int[] axisMin;
Undocumented in source.
axisOffset
int[] axisOffset;
Undocumented in source.
axisScale
float[] axisScale;
Undocumented in source.
buttons
int[int] buttons;
Undocumented in source.
id
int id;
Undocumented in source.
namely
string namely;
Undocumented in source.
numAxes
int numAxes;
Undocumented in source.
numButtons
int numButtons;
Undocumented in source.

Inherited Members

From IJoystick

maximumAxes
enum maximumAxes;
Undocumented in source.
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:

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.

button
int button [@property getter]

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

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..

isAxisMove
bool isAxisMove [@property getter]

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

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.

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.

buttonDown
int buttonDown [@property getter]

Shows the currently pressed key.

buttonUp
int buttonUp [@property getter]

Shows the currently released key.

Meta