aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/include/SKeyMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/include/SKeyMap.h')
-rw-r--r--src/others/irrlicht-1.8.1/include/SKeyMap.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/include/SKeyMap.h b/src/others/irrlicht-1.8.1/include/SKeyMap.h
new file mode 100644
index 0000000..793cd98
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/include/SKeyMap.h
@@ -0,0 +1,41 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __S_KEY_MAP_H_INCLUDED__
6#define __S_KEY_MAP_H_INCLUDED__
7
8#include "Keycodes.h"
9
10namespace irr
11{
12
13 //! enumeration for key actions. Used for example in the FPS Camera.
14 enum EKEY_ACTION
15 {
16 EKA_MOVE_FORWARD = 0,
17 EKA_MOVE_BACKWARD,
18 EKA_STRAFE_LEFT,
19 EKA_STRAFE_RIGHT,
20 EKA_JUMP_UP,
21 EKA_CROUCH,
22 EKA_COUNT,
23
24 //! This value is not used. It only forces this enumeration to compile in 32 bit.
25 EKA_FORCE_32BIT = 0x7fffffff
26 };
27
28 //! Struct storing which key belongs to which action.
29 struct SKeyMap
30 {
31 SKeyMap() {}
32 SKeyMap(EKEY_ACTION action, EKEY_CODE keyCode) : Action(action), KeyCode(keyCode) {}
33
34 EKEY_ACTION Action;
35 EKEY_CODE KeyCode;
36 };
37
38} // end namespace irr
39
40#endif
41