19 #ifndef CONTROLLER_JOYSTICK_H
20 #define CONTROLLER_JOYSTICK_H
22 #include "controller.h"
24 #include <controls/controller_key_map.h>
77 SDL_Joystick* m_joystickController;
80 #endif // CONTROLLER_JOYSTICK_H
void updateKey(bool &key, KM_Key &mkey)
Takes a state of specified joystick key.
Definition: controller_joystick.cpp:59
JoystickController()
Constructor.
Definition: controller_joystick.cpp:23
static bool bindJoystickKey(SDL_Joystick *joy, KM_Key &k)
Detects a pressed key type and it's from a given joystick device and writes info into a given key des...
Definition: controller_joystick.cpp:126
void setJoystickDevice(SDL_Joystick *jctrl)
Sets joystick device descriptor which will be used by this controller.
Definition: controller_joystick.cpp:49
~JoystickController()
Destructir.
Definition: controller_joystick.cpp:46
void update()
Read states of all control keys of a joystick device.
Definition: controller_joystick.cpp:101
Definition: controller_key_map.h:4
The Controller class provides proxy interface between controllable objects array and physical control...
Definition: controller.h:32
SDL_Joystick * getJoystickDevice() const
Returns current joystick device descriptor.
Definition: controller_joystick.cpp:54
A Joystick controller which reads key states from a joystick device.
Definition: controller_joystick.h:29