My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Keyboard Class Reference

#include <inputs.hh>

Collaboration diagram for Keyboard:
Collaboration graph

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 Keyboardget_instance ()
 

Private Member Functions

 Keyboard (void)
 

Private Attributes

std::unordered_map< Key, bool > state
 

Constructor & Destructor Documentation

◆ Keyboard()

Keyboard::Keyboard ( void  )
private

Member Function Documentation

◆ get_instance()

static Keyboard & Keyboard::get_instance ( )
inlinestatic

◆ get_state()

bool Keyboard::get_state ( const int  key)

◆ key_in_bounds()

bool Keyboard::key_in_bounds ( int  key)

◆ set_state()

void Keyboard::set_state ( const int  key,
const bool  action 
)

Member Data Documentation

◆ state

std::unordered_map<Key, bool> Keyboard::state
private

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