Manage the process of native input. More...
#include <NRE_InputManager.hpp>
Public Member Functions | |
bool | isKeyPressed (KeyCode code) const |
bool | isButtonPressed (ButtonCode code) const |
void | processPressedKey (KeyCode key) |
void | processPressedButton (ButtonEventData const &buttonData) |
void | processReleasedKey (KeyCode key) |
void | processReleasedButton (ButtonEventData const &buttonData) |
void | update () |
void | updateButtonEventData (ButtonEventData const &buttonData) |
Manage the process of native input.
bool NRE::Event::InputManager::isButtonPressed | ( | ButtonCode | code | ) | const |
Tell if a button is currently pressed
code | the button code |
bool NRE::Event::InputManager::isKeyPressed | ( | KeyCode | code | ) | const |
Tell if a key is currently pressed
code | the key code |
void NRE::Event::InputManager::processPressedButton | ( | ButtonEventData const & | buttonData | ) |
Process a pressed button event
buttonData | the pressed button data |
void NRE::Event::InputManager::processPressedKey | ( | KeyCode | key | ) |
Process a pressed key event
key | the pressed key |
void NRE::Event::InputManager::processReleasedButton | ( | ButtonEventData const & | buttonData | ) |
Process a released button event
buttonData | the pressed button data |
void NRE::Event::InputManager::processReleasedKey | ( | KeyCode | key | ) |
Process a released key event
key | the released key |
void NRE::Event::InputManager::update | ( | ) |
Process active keys and buttons
void NRE::Event::InputManager::updateButtonEventData | ( | ButtonEventData const & | buttonData | ) |
Update a button event data
buttonData | the new data |