InputHandler

Handles the events for the various input devices.

Constructors

this
this()

Upon construction, it detects the connected joysticks.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

captureEvent
void captureEvent(string proposedID, bool delOldOnEvent, bool delConflKeys, bool exitOnSysKeys)

Captures a key for binding

startTextInput
void startTextInput(TextInputListener tl)

Starts the TextInputEvent and disables the polling of normal input events.

stopTextInput
void stopTextInput(TextInputListener tl)

Stops the TextInputEvent and enables the polling of normal input events.

test
void test()

Polls for events. If there's any, calls the eventlisteners.

Static functions

setXInput
setXInput(bool state)

Sets wether to use the newer XInput over the older DirectInput.

Variables

al
AxisListener[] al;
Undocumented in source.
il
InputListener[] il;
joyAxes
int[] joyAxes;
Undocumented in source.
joyButtons
int[] joyButtons;
joyHats
int[] joyHats;
Undocumented in source.
joyNames
string[] joyNames;
Undocumented in source.
joysticks
SDL_Joystick*[] joysticks;
Undocumented in source.
kb
KeyBinding[] kb;
Undocumented in source.
ml
MouseListener[] ml;
Undocumented in source.
sel
SystemEventListener[] sel;
Undocumented in source.
tl
TextInputListener[] tl;
Undocumented in source.

Inherited Members

From TextInputHandler

startTextInput
void startTextInput(TextInputListener tl)
Undocumented in source.
stopTextInput
void stopTextInput(TextInputListener tl)
Undocumented in source.

Meta