Handle the joystick. More...
#include <NEngine/Native/SDL/SDL_Joy.h>
Public Member Functions | |
SDL_Joy () | |
Basic constructor Call the update function to have an array ready. | |
~SDL_Joy () | |
Basic destructor Do nothing because the array get is an internal SDL array. | |
NE::InputManager::ArrowsDirection | getDirectionsPressed (void) const |
Check which direction the user wants to go The function is checking the arrow keys and determine which direction the user wants to go. The check allows diagonals directions. | |
NE::InputManager::Buttons | getButtonsState (void) |
Gets the buttons pressed. | |
bool | needEscape (void) |
Check if the user pressed the keys to escape This function is checking the escape kee. | |
void | update (void) |
Update the keys array. |
Handle the joystick.
Can check the following:
InputManager::Buttons NE::SDL_Joy::getButtonsState | ( | void | ) | [inline, virtual] |
InputManager::ArrowsDirection NE::SDL_Joy::getDirectionsPressed | ( | void | ) | const [inline, virtual] |
Check which direction the user wants to go The function is checking the arrow keys and determine which direction the user wants to go. The check allows diagonals directions.
Implements NE::Input.
bool NE::SDL_Joy::needEscape | ( | void | ) | [virtual] |
Check if the user pressed the keys to escape This function is checking the escape kee.
Implements NE::Input.