|
My Project
|
#include <inputs.hh>

Public Member Functions | |
| bool | get_state (const int key) |
| void | set_state (const int key, const bool action) |
| bool | key_in_bounds (int key) |
Static Public Member Functions | |
| static Keyboard & | get_instance () |
Private Member Functions | |
| Keyboard (void) | |
Private Attributes | |
| std::unordered_map< Key, bool > | state |
|
private |
|
inlinestatic |
| bool Keyboard::get_state | ( | const int | key | ) |
| bool Keyboard::key_in_bounds | ( | int | key | ) |
| void Keyboard::set_state | ( | const int | key, |
| const bool | action | ||
| ) |
|
private |