From 0e5a826935cd1e5ef1e3061d029e2aafea038f47 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 26 Sep 2017 14:18:22 +0100 Subject: Adding --- inputmanager_8h_source.html | 91 +++++++++++---------------------------------- 1 file changed, 21 insertions(+), 70 deletions(-) (limited to 'inputmanager_8h_source.html') diff --git a/inputmanager_8h_source.html b/inputmanager_8h_source.html index 870dd6c5..3593d1fd 100644 --- a/inputmanager_8h_source.html +++ b/inputmanager_8h_source.html @@ -3,23 +3,22 @@ - + + YAGE: yage/base/inputmanager.h Source File + + - @@ -28,7 +27,7 @@ -
+
YAGE  v0.1.1
@@ -39,40 +38,19 @@
- + - - + + + +
+
@@ -107,48 +85,21 @@ $(document).ready(function(){initNavTree('inputmanager_8h_source.html','');});
inputmanager.h
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * inputmanager.h
-
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_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 } // namespace yage
-
28 #endif
-
void keyReleased(unsigned key)
Definition: inputmanager.cpp:19
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * inputmanager.h
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_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 } // namespace yage
28 #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
+
bool isKeyPressed(unsigned key) const
Definition: inputmanager.cpp:24
+
Project namespace.
Definition: camera2d.cpp:13
-- cgit