Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/input/InputDriver.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _INPUT_DRIVER_H_
00004 #define _INPUT_DRIVER_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <core/Position2d.h>
00009 
00010 namespace input
00011 {
00012 
00013 class Cursor;
00014 class InputDevice;
00015 enum InputType;
00016 
00020 class ENGINE_PUBLIC_EXPORT InputDriver
00021 {
00022 public:
00023 
00025         InputDriver();
00026 
00028         virtual ~InputDriver();
00029 
00030         virtual void initialize() = 0;
00031 
00032         virtual void update(f32 elapsedTime) = 0;
00033 
00035         virtual s32 numJoySticks() = 0;
00036 
00038         virtual s32 numMice() = 0;
00039 
00041         virtual s32 numKeyboards() = 0;
00042 
00044         virtual InputDevice* createInputDevice(InputType type, bool buffered) = 0;
00045 
00046         virtual void removeInputDevice(InputDevice* device) = 0;
00047 
00048         Cursor* getCursor();
00049 
00050         const core::position2d& getCursorCenter() const;
00051 
00052 protected:
00053 
00054         core::position2d mCursorCenter;
00055 
00056         Cursor* mCursor;
00057 };
00058 
00059 } // end namespace input
00060 
00061 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by Doxygen (1.7.4)