Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

SOpKeyMap.hpp

Go to the documentation of this file.
00001 // Copyright (c) 2007-2008 Tomer Nosrati
00002 // This file is part of the "NUSoftware Game Engine".
00003 // For conditions of distribution and use, see copyright notice in nge.hpp
00004 
00005 #pragma once
00006 #ifndef __E_OP_KEY_MAP_H__
00007 #define __E_OP_KEY_MAP_H__
00008 
00009 #include "Irrlicht/irrlicht.h"
00010 
00011 using namespace irr;
00012 
00013 namespace nge
00014 {
00015 
00016         struct SInputCode
00017         {
00018                 SInputCode(EKEY_CODE Key = KEY_KEY_CODES_COUNT, 
00019                         EMOUSE_INPUT_EVENT Mouse = EMIE_COUNT)
00020                         : KeyCode(Key), MouseCode(Mouse)
00021                 {}
00022                 EKEY_CODE KeyCode;
00023                 EMOUSE_INPUT_EVENT MouseCode;
00024         };
00025 
00027         enum EKEY_OPERATION
00028         {
00029                 EKOP_MOVE_FORWARD,
00030                 EKOP_MOVE_BACKWARD,
00031                 EKOP_STRAFE_UP,
00032                 EKOP_STRAFE_DOWN,
00033                 EKOP_STRAFE_LEFT,
00034                 EKOP_STRAFE_RIGHT,
00035                 EKOP_PITCH_UP,
00036                 EKOP_PITCH_DOWN,
00037                 EKOP_ROLL_LEFT,
00038                 EKOP_ROLL_RIGHT,
00039                 EKOP_YAW_LEFT,
00040                 EKOP_YAW_RIGHT,
00041                 //EKOP_JUMP,
00042                 //EKOP_SWIM,
00043                 //EKOP_DIVE,
00044                 EKOP_COUNT,
00045         };
00046 
00048         struct SOpKeyMap
00049         {
00050                 EKEY_OPERATION Operation;
00051                 SInputCode InputCode;
00052         };
00053 
00054 } // namespace nge
00055 
00056 #endif // __E_OP_KEY_MAP_H__

The NUSoftware Game Engine
The NUSoftware Game Engine Documentation © 2007-2008 by Tomer Nosrati. Generated on Sat Apr 26 16:52:34 2008 by Doxygen (1.5.5)