Handle the pressed keys. More...
#include <NEngine/Native/SDL/SDL_Keyboard.h>
Public Member Functions | |
SDL_Keyboard (void) | |
Basic constructor Call the update function to have an array ready. | |
~SDL_Keyboard (void) | |
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. | |
bool | needEscape (void) |
Check if the user pressed the keys to escape This function is checking the escape kee. | |
NE::InputManager::Buttons | getButtonsState (void) |
Gets the buttons pressed. | |
void | update (void) |
Update the keys array. |
Handle the pressed keys.
Can check the following:
InputManager::Buttons NE::SDL_Keyboard::getButtonsState | ( | void | ) | [virtual] |
InputManager::ArrowsDirection NE::SDL_Keyboard::getDirectionsPressed | ( | void | ) | const [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_Keyboard::needEscape | ( | void | ) | [virtual] |
Check if the user pressed the keys to escape This function is checking the escape kee.
Implements NE::Input.