#include <dinput.h>\r
#endif // WIN32\r
\r
-\r
-#ifndef WIN32\r
-/* HACK to make this compile */\r
-#define BYTE unsigned char\r
-#endif // !WIN32\r
-\r
class CInputTask : public ITask \r
{\r
public:\r
- CInputTask();\r
+ CInputTask(CKernel* kernel);\r
virtual ~CInputTask();\r
\r
bool Start();\r
void Update();\r
void Stop();\r
-\r
- static BYTE keys[256], oldKeys[256];\r
+ /* XXX: Yuck, static crapjes */\r
+ static BYTE *keys, *oldKeys;\r
//static CMMPointer<CMMDynamicBlob<unsigned char> > oldKeys;\r
- //static int keyCount;\r
+ static int keyCount;\r
\r
static int dX,dY;\r
static unsigned int buttons;\r