mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 13:12:39 +02:00
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
This commit is contained in:
parent
e2c4b4d306
commit
c1eab61241
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue