Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
SKeyMap.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef S_KEY_MAP_HPP_INCLUDED
6#define S_KEY_MAP_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/Keycodes.hpp>
9
10namespace nirt
11{
12
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_ROTATE_LEFT,
23 EKA_ROTATE_RIGHT,
24 EKA_COUNT,
25
27 EKA_FORCE_32BIT = 0x7fffffff
28 };
29
31 class SKeyMap
32 {
33 public:
34 SKeyMap() {}
35 SKeyMap(EKEY_ACTION action, EKEY_CODE keyCode) : Action(action), KeyCode(keyCode) {}
36
37 EKEY_ACTION Action;
38 EKEY_CODE KeyCode;
39 };
40
41} // end namespace nirt
42
43#endif
Class storing which key belongs to which action.
Definition SKeyMap.hpp:32
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
EKEY_ACTION
enumeration for key actions. Used for example in the FPS Camera.
Definition SKeyMap.hpp:15
@ EKA_FORCE_32BIT
This value is not used. It only forces this enumeration to compile in 32 bit.
Definition SKeyMap.hpp:27

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print