X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FEngine%2FInputTask.cpp;h=5fd261d151838afb7fa26a202be31a679e9e0e68;hp=82d513e6cfdb542d31be0685b21ef0533152ddb0;hb=6b7cd5e1f9f9d3bba924c61bb8567c996e10da41;hpb=c3e81e6b78efc4eefdf1837c894edd6022e1d58a diff --git a/ABM2/Engine/InputTask.cpp b/ABM2/Engine/InputTask.cpp index 82d513e..5fd261d 100755 --- a/ABM2/Engine/InputTask.cpp +++ b/ABM2/Engine/InputTask.cpp @@ -5,11 +5,13 @@ #include "InputTask.h" #include "../main.h" +#ifdef WIN32 // include the DirectX Library files #pragma comment (lib, "dinput.lib") #pragma comment (lib, "dinput8.lib") #pragma comment (lib, "dxguid.lib") +#endif WIN32 ////////////////////////////////////////////////////////////////////// // Construction/Destruction @@ -25,6 +27,7 @@ int CInputTask::dY=0; unsigned int CInputTask::buttons=0; unsigned int CInputTask::oldButtons=0; +#ifdef WIN32 CInputTask::CInputTask() { din = NULL; @@ -88,3 +91,4 @@ void CInputTask::Stop() memset(keys, 0, 256); memset(oldKeys, 0, 256); } +#endif // WIN32