Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/input/Joystick.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _JOYSTICK_H_
00004 #define _JOYSTICK_H_
00005 
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <input/InputDevice.h>
00009 
00010 #include <list>
00011 
00012 namespace input
00013 {
00014 
00015 class JoystickEventReceiver;
00016 class JoystickEvent;
00017 enum KeyCode;
00018 enum KeyModifier;
00019 
00021 class ENGINE_PUBLIC_EXPORT Joystick : public InputDevice
00022 {
00023 public:
00024 
00026         Joystick();
00027 
00029         virtual ~Joystick();
00030 
00032         s16 getNumButtons();
00033 
00035         s16 getNumAxes();
00036 
00038         s16 getNumPOVs();
00039 
00040         void addJoystickEventReceiver(input::JoystickEventReceiver* newEventReceiver);
00041         void removeJoystickEventReceiver(input::JoystickEventReceiver* oldEventReceiver);
00042 
00043 protected:
00044 
00045         void initProperties();
00046 
00048         std::list<input::JoystickEventReceiver*> mJoystickEventReceivers;
00049 
00050         s16 mNumButtons;
00051         s16 mNumAxes;
00052         s16 mNumPOVs;
00053 
00054         JoystickEvent* mEvent;
00055 };
00056 
00057 } // end namespace input
00058 
00059 #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)