Irrlicht 3D Engine: SKeyMap.h Source File

| Irrlicht 3D Engine |

SKeyMap.h
Go to the documentation of this file.

    00001 // Copyright (C) 2002-2012 Nikolaus Gebhardt
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __S_KEY_MAP_H_INCLUDED__
    00006 #define __S_KEY_MAP_H_INCLUDED__
    00007
    00008 #include "Keycodes.h"
    00009
    00010 namespace irr
    00011 {
    00012
    00014     enum EKEY_ACTION
    00015     {
    00016         EKA_MOVE_FORWARD = 0,
    00017         EKA_MOVE_BACKWARD,
    00018         EKA_STRAFE_LEFT,
    00019         EKA_STRAFE_RIGHT,
    00020         EKA_JUMP_UP,
    00021         EKA_CROUCH,
    00022         EKA_COUNT,
    00023
    00025         EKA_FORCE_32BIT = 0x7fffffff
    00026     };
    00027
    00029     struct SKeyMap
    00030     {
    00031         SKeyMap() {}
    00032         SKeyMap(EKEY_ACTION action, EKEY_CODE keyCode) : Action(action), KeyCode(keyCode) {}
    00033
    00034         EKEY_ACTION Action;
    00035         EKEY_CODE KeyCode;
    00036     };
    00037
    00038 } // end namespace irr
    00039
    00040 #endif
    00041