NRE::Event::InputManager Class Reference

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)
 

Detailed Description

Manage the process of native input.

Member Function Documentation

bool NRE::Event::InputManager::isButtonPressed ( ButtonCode  code) const

Tell if a button is currently pressed

Parameters
codethe button code
Returns
if the button is pressed
bool NRE::Event::InputManager::isKeyPressed ( KeyCode  code) const

Tell if a key is currently pressed

Parameters
codethe key code
Returns
if the key is pressed
void NRE::Event::InputManager::processPressedButton ( ButtonEventData const &  buttonData)

Process a pressed button event

Parameters
buttonDatathe pressed button data
void NRE::Event::InputManager::processPressedKey ( KeyCode  key)

Process a pressed key event

Parameters
keythe pressed key
void NRE::Event::InputManager::processReleasedButton ( ButtonEventData const &  buttonData)

Process a released button event

Parameters
buttonDatathe pressed button data
void NRE::Event::InputManager::processReleasedKey ( KeyCode  key)

Process a released key event

Parameters
keythe 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

Parameters
buttonDatathe new data

The documentation for this class was generated from the following files: