aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/inputmanager.hpp
blob: 7f49c3b3e0f0bb933966fa6ff2d4c2d85427016f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef INPUT_MANAGER_HPP
#define INPUT_MANAGER_HPP

#include <unordered_map>

namespace yage
{

class InputManager
{
    // member variables
private:
    std::unordered_map<unsigned, bool> key_map_;

    // member functions
public:
    void keyPressed(unsigned key);
    void keyReleased(unsigned key);
    bool isKeyPressed(unsigned key) const;
};

}
#endif