mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:20:08 +02:00
Merge branch 'exposeHaptics' of https://github.com/SamGondelman/hifi into exposeHaptics
This commit is contained in:
commit
b01a00584a
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)),
|
_sdlHaptic(SDL_HapticOpenFromJoystick(_sdlJoystick)),
|
||||||
_instanceId(instanceId)
|
_instanceId(instanceId)
|
||||||
{
|
{
|
||||||
|
if (!_sdlHaptic) {
|
||||||
|
qDebug(SDL_GetError());
|
||||||
|
}
|
||||||
SDL_HapticRumbleInit(_sdlHaptic);
|
SDL_HapticRumbleInit(_sdlHaptic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue