YAGE
v0.1.1
Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
inputmanager.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* inputmanager.h
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
5
* MIT License, see LICENSE file for more details.
6
* ----------------------------------------------------------------------------
7
*/
8
9
#ifndef INPUT_MANAGER_H
10
#define INPUT_MANAGER_H
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
}
// namespace yage
28
#endif
yage::InputManager::keyReleased
void keyReleased(unsigned key)
Definition:
inputmanager.cpp:19
yage::InputManager
Definition:
inputmanager.h:17
yage::InputManager::keyPressed
void keyPressed(unsigned key)
Definition:
inputmanager.cpp:14
yage::InputManager::key_map_
std::unordered_map< unsigned, bool > key_map_
Definition:
inputmanager.h:20
yage::InputManager::isKeyPressed
bool isKeyPressed(unsigned key) const
Definition:
inputmanager.cpp:24
yage
core
inputmanager.h
Generated on Thu Nov 16 2017 22:04:19 for YAGE by
1.8.6