* Make InputTask use SDL.
[matthijs/ABM2.git] / ABM2 / Engine / InputTask.h
index 337cd55f9916f53876f603ea56423bc7f10c8d77..897e6608880c47c117a8c6ec3add2a8dd20deb22 100755 (executable)
 #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