All utilities to manage user input to interact whith meshes.
More...
|
std::vector< std::pair< unsigned int, std::function< void()> > > | getKeysCallback (const unsigned int &id) |
| Retrieves all the callback of a mesh to be called when the key is pressed.
|
void | setKeyCallback (const unsigned int &id, const unsigned int &key, std::function< void()> func) |
| Sets a callback for the entity.
|
All utilities to manage user input to interact whith meshes.
◆ getKeysCallback()
std::vector< std::pair< unsigned int, std::function< void()> > > systems::input::getKeysCallback |
( |
const unsigned int & | id | ) |
|
Retrieves all the callback of a mesh to be called when the key is pressed.
- Parameters
-
- Returns
- a vector of pair like (key, callback) where the key is an unsigned int and the callback is a std::funcion<void()>
◆ setKeyCallback()
void systems::input::setKeyCallback |
( |
const unsigned int & | id, |
|
|
const unsigned int & | key, |
|
|
std::function< void()> | func ) |
Sets a callback for the entity.
- Parameters
-
id | the entity id |
key | the key that execute the callback |
func | the callback to be executed |