#include "wx/window.h"
#endif //WX_PRECOMP
+#include "wx/thread.h"
+
#include <linux/joystick.h>
#include <sys/types.h>
#include <sys/stat.h>
if (m_device != -1)
ioctl(m_device, JSIOCGBUTTONS, &nb);
- if (nb > wxJS_MAX_BUTTONS)
+ if ((int)nb > wxJS_MAX_BUTTONS)
nb = wxJS_MAX_BUTTONS;
return nb;
if (m_device != -1)
ioctl(m_device, JSIOCGAXES, &nb);
- if (nb > wxJS_MAX_AXES)
+ if ((int)nb > wxJS_MAX_AXES)
nb = wxJS_MAX_AXES;
return nb;