X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FEngine%2FInputTask.h;h=337cd55f9916f53876f603ea56423bc7f10c8d77;hp=e3363f6137fd0d791d33f76bc098587664135cf9;hb=357a451150c18b27f99cecd5f9d13be1ae5a9fdf;hpb=0b314338a46fe83c1c4bb646da858ebd5d4a7317 diff --git a/ABM2/Engine/InputTask.h b/ABM2/Engine/InputTask.h index e3363f6..337cd55 100755 --- a/ABM2/Engine/InputTask.h +++ b/ABM2/Engine/InputTask.h @@ -10,8 +10,16 @@ #endif // _MSC_VER > 1000 #include "engine.h" +#ifdef WIN32 #define DIRECTINPUT_VERSION 0x0800 #include +#endif // WIN32 + + +#ifndef WIN32 +/* HACK to make this compile */ +#define BYTE unsigned char +#endif // !WIN32 class CInputTask : public ITask { @@ -50,9 +58,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_)