00001
00002
00003 #ifndef __H_INPUT_H_
00004 #define __H_INPUT_H_
00005
00006 namespace std {}
00007 using namespace std;
00008
00009 #include "H_Main.h"
00010 #include "H_Standard.h"
00011
00012 class KeyJoystick : public HJoystick
00013 {
00014 public:
00015 KeyJoystick(HWindow *w);
00016 virtual ~KeyJoystick();
00017 virtual bool IsValid();
00018 virtual const char *GetDescription();
00019 virtual int GetNumAxis();
00020 virtual int GetNumButtons();
00021 virtual void UpdateState();
00022 virtual REAL GetAxisPos(int i);
00023 virtual bool GetButtonPos(int i);
00024 virtual bool SetForceFeedback(REAL x, REAL y);
00025 public:
00026 SDLKey up_key;
00027 SDLKey down_key;
00028 SDLKey left_key;
00029 SDLKey right_key;
00030 SDLKey button_key;
00031 REAL speed;
00032 private:
00033 HWindow *m_HWindow;
00034 REAL Yaxis;
00035 REAL Xaxis;
00036 bool button;
00037 };
00038
00039 #endif //__H_INPUT_H_