I am experiencing some strange behaviors of the SDL2's Haptics methods. I have tested this under Linux 64bit with libsdl2-dev and libsdl2-2.0-0 (both in version v2.0.10) and Windows 10 64bit (latest SDL binary build). As controllers I used the 8Bitdo SF30 Pro Gamepad and a Nintendo Switch Pro Controller - both connected via USB.
- The Nintendo Switch Pro Controller is not marked as haptic as all.
- Only when started in PlayStation or XBox Mode, the 8Bitdo controller is marked as haptic - but both
SDL_HapticRumblePlay
andSDL_HapticRunEffect
are driving the rumble motor at a quite low frequency (I assume 2-5 Hz) with a resulting small magnitude. Any changes in the effect struct (such as wave-type, magnitute, directions, period, and so on..) do not show any improvements. It also seems that on eachSDL_HapticRunEffect
call, the vibrations vary a bit. TheSDL_HapticsSetGain
method does not seem to have any effect either.
Do you have any suggestions on these behaviors?
- Why does the Nintendo Pro Controller not be recognized as a haptic device?
- What to do with the strange rumble behavior of the 8Bitdo controller? The rumble feature of the controller semms to be intact though (as it vibrites on some Windows games).