diff --git a/lib/source/gainput/pad/GainputInputDevicePadLinux.h b/lib/source/gainput/pad/GainputInputDevicePadLinux.h index bc04b18..d35bd1a 100644 --- a/lib/source/gainput/pad/GainputInputDevicePadLinux.h +++ b/lib/source/gainput/pad/GainputInputDevicePadLinux.h @@ -246,7 +246,7 @@ class InputDevicePadImplLinux : public InputDevicePadImpl buttonDialect_[15] = PadButtonX; buttonDialect_[16] = PadButtonHome; } - else if (strcmp(name, "Microsoft X-Box 360 pad") == 0) + else if (strcmp(name, "Microsoft X-Box 360 pad") == 0 or strcmp(name, "Xbox Wireless Controller")==0) { #ifdef GAINPUT_DEBUG GAINPUT_LOG(" --> known controller\n"); @@ -274,6 +274,13 @@ class InputDevicePadImplLinux : public InputDevicePadImpl axisDialect_[-1] = PadButtonDown; axisDialect_[-2] = PadButtonRight; } + else + { +#ifdef GAINPUT_DEBUG + GAINPUT_LOG(" --> unknown controller %s\n",name); +#endif + } + deviceState_ = InputDevice::DS_OK; }