X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FInputTask.h;h=897e6608880c47c117a8c6ec3add2a8dd20deb22;hb=669bf7a6d3128f0933f6e783e3d0f3c3587d310c;hp=e3363f6137fd0d791d33f76bc098587664135cf9;hpb=0835c5605c80efd286ccb7eff92fffc07689f359;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/InputTask.h b/ABM2/Engine/InputTask.h index e3363f6..897e660 100755 --- a/ABM2/Engine/InputTask.h +++ b/ABM2/Engine/InputTask.h @@ -10,22 +10,24 @@ #endif // _MSC_VER > 1000 #include "engine.h" +#ifdef WIN32 #define DIRECTINPUT_VERSION 0x0800 #include +#endif // WIN32 class CInputTask : public ITask { public: - CInputTask(); + CInputTask(CKernel* kernel); virtual ~CInputTask(); bool Start(); void Update(); void Stop(); - - static BYTE keys[256], oldKeys[256]; + /* XXX: Yuck, static crapjes */ + static BYTE *keys, *oldKeys; //static CMMPointer > oldKeys; - //static int keyCount; + static int keyCount; static int dX,dY; static unsigned int buttons; @@ -50,9 +52,11 @@ public: //static bool inline mouseStillUp(int button) { return (!curMouse(button))&&(!oldMouse(button)); } AUTO_SIZE; +#ifdef WIN32 private: LPDIRECTINPUT8 din; // the pointer to our DirectInput interface LPDIRECTINPUTDEVICE8 dinkeyboard; // the pointer to the keyboard device +#endif }; #endif // !defined(AFX_KEYBOARDTASK_H__4953EF06_7C18_4433_B590_47E045E43576__INCLUDED_)