From c1eab612418a81357e127f9918b4654413007a2f Mon Sep 17 00:00:00 2001 From: SamGondelman Date: Fri, 3 Jun 2016 11:22:06 -0700 Subject: [PATCH] sdl haptics aren't working, but might be a bug in sdl: http://stackoverflow.com/questions/23974908/why-is-sdl-hapticopenfromjoystick-not-working-in-sdl-2 --- plugins/hifiSdl2/src/Joystick.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/hifiSdl2/src/Joystick.cpp b/plugins/hifiSdl2/src/Joystick.cpp index 136c021913..cf7dde371b 100644 --- a/plugins/hifiSdl2/src/Joystick.cpp +++ b/plugins/hifiSdl2/src/Joystick.cpp @@ -24,6 +24,9 @@ Joystick::Joystick(SDL_JoystickID instanceId, SDL_GameController* sdlGameControl _sdlHaptic(SDL_HapticOpenFromJoystick(_sdlJoystick)), _instanceId(instanceId) { + if (!_sdlHaptic) { + qDebug(SDL_GetError()); + } SDL_HapticRumbleInit(_sdlHaptic); }