YAGE
0.02
Yet Another Game Engine
include
YAGE
inputmanager.hpp
1
/* ----------------------------------------------------------------------------
2
* inputmanager.hpp
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5
* See file LICENSE for more details
6
* ----------------------------------------------------------------------------
7
*/
8
9
#ifndef INPUT_MANAGER_HPP
10
#define INPUT_MANAGER_HPP
11
12
#include <unordered_map>
13
14
namespace
yage
15
{
16
17
class
InputManager
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
}
29
#endif
yage
Definition:
camera2d.hpp:17
Generated on Sun Aug 13 2017 17:42:24 for YAGE by
1.8.13