Loading...
Searching...
No Matches
SKeyMap.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __S_KEY_MAP_H_INCLUDED__
#define __S_KEY_MAP_H_INCLUDED__
#include "Keycodes.h"
namespace irr
{
enum EKEY_ACTION
{
EKA_MOVE_FORWARD = 0,
EKA_MOVE_BACKWARD,
EKA_STRAFE_LEFT,
EKA_STRAFE_RIGHT,
EKA_JUMP_UP,
EKA_CROUCH,
EKA_COUNT,
EKA_FORCE_32BIT = 0x7fffffff
};
struct SKeyMap
{
SKeyMap() {}
SKeyMap(EKEY_ACTION action, EKEY_CODE keyCode) : Action(action), KeyCode(keyCode) {}
EKEY_ACTION Action;
EKEY_CODE KeyCode;
};
} // end namespace irr
#endif
Keycodes.h
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::EKEY_CODE
EKEY_CODE
Definition Keycodes.h:12
irr::EKEY_ACTION
EKEY_ACTION
enumeration for key actions. Used for example in the FPS Camera.
Definition SKeyMap.h:15
irr::EKA_FORCE_32BIT
@ EKA_FORCE_32BIT
This value is not used. It only forces this enumeration to compile in 32 bit.
Definition SKeyMap.h:25
irr::EKA_JUMP_UP
@ EKA_JUMP_UP
Definition SKeyMap.h:20
irr::EKA_STRAFE_RIGHT
@ EKA_STRAFE_RIGHT
Definition SKeyMap.h:19
irr::EKA_STRAFE_LEFT
@ EKA_STRAFE_LEFT
Definition SKeyMap.h:18
irr::EKA_CROUCH
@ EKA_CROUCH
Definition SKeyMap.h:21
irr::EKA_COUNT
@ EKA_COUNT
Definition SKeyMap.h:22
irr::EKA_MOVE_BACKWARD
@ EKA_MOVE_BACKWARD
Definition SKeyMap.h:17
irr::EKA_MOVE_FORWARD
@ EKA_MOVE_FORWARD
Definition SKeyMap.h:16
irr::SKeyMap::SKeyMap
SKeyMap(EKEY_ACTION action, EKEY_CODE keyCode)
Definition SKeyMap.h:32
irr::SKeyMap::Action
EKEY_ACTION Action
Definition SKeyMap.h:34
irr::SKeyMap::KeyCode
EKEY_CODE KeyCode
Definition SKeyMap.h:35
irr::SKeyMap::SKeyMap
SKeyMap()
Definition SKeyMap.h:31
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0