X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=ABM2%2FEngine%2FInputTask.h;h=897e6608880c47c117a8c6ec3add2a8dd20deb22;hb=669bf7a6d3128f0933f6e783e3d0f3c3587d310c;hp=337cd55f9916f53876f603ea56423bc7f10c8d77;hpb=357a451150c18b27f99cecd5f9d13be1ae5a9fdf;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/InputTask.h b/ABM2/Engine/InputTask.h index 337cd55..897e660 100755 --- a/ABM2/Engine/InputTask.h +++ b/ABM2/Engine/InputTask.h @@ -15,25 +15,19 @@ #include #endif // WIN32 - -#ifndef WIN32 -/* HACK to make this compile */ -#define BYTE unsigned char -#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;