YAGE  v0.1.3
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
inputmanager.h
Go to the documentation of this file.
1 
9 #ifndef INPUT_MANAGER_H
10 #define INPUT_MANAGER_H
11 
12 #include <unordered_map>
13 
14 namespace yage
15 {
16 
18 {
19 private:
20  std::unordered_map<unsigned, bool> key_map_;
21 
22 public:
23  void keyPressed(unsigned key);
24  void keyReleased(unsigned key);
25  bool isKeyPressed(unsigned key) const;
26 };
27 
28 } // namespace yage
29 
30 #endif
void keyReleased(unsigned key)
Definition: inputmanager.cpp:19
Definition: inputmanager.h:17
void keyPressed(unsigned key)
Definition: inputmanager.cpp:14
std::unordered_map< unsigned, bool > key_map_
Definition: inputmanager.h:20
bool isKeyPressed(unsigned key) const
Definition: inputmanager.cpp:24