X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FInputTask.h;h=b81f80ab503c6349365d7985813fd66964b283ef;hb=c100d6f67b06abb348319e277a66b6b7ab0c4bd5;hp=e3363f6137fd0d791d33f76bc098587664135cf9;hpb=0835c5605c80efd286ccb7eff92fffc07689f359;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/InputTask.h b/ABM2/Engine/InputTask.h index e3363f6..b81f80a 100755 --- a/ABM2/Engine/InputTask.h +++ b/ABM2/Engine/InputTask.h @@ -10,13 +10,15 @@ #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(); @@ -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_)