linux
linux copied to clipboard
Testing Rumble, is it mixed up?
I'm testing this https://github.com/libsdl-org/SDL/blob/SDL2/test/testhaptic.c
- with a Xbox360 controller (clone)
INFO: 1 Haptic devices detected.
INFO: Device: Microsoft X-Box 360 pad
INFO: Supported effects [16 effects, 16 playing]:
INFO: sine
INFO: triangle
INFO: left/right
INFO: Supported capabilities:
INFO: gain
INFO:
Uploading effects
INFO: effect 0: Sine Wave
INFO: effect 1: Left/Right
INFO:
Now playing effects for 5 seconds each with 1 second delay between
INFO: Playing effect 0
INFO: Playing effect 1
- Switch Pro Controller (clone)
INFO: 1 Haptic devices detected.
INFO: Device: Nintendo Switch Pro Controller
INFO: Supported effects [16 effects, 16 playing]:
INFO: sine
INFO: triangle
INFO: left/right
INFO: Supported capabilities:
INFO: gain
INFO:
Uploading effects
INFO: effect 0: Sine Wave
INFO: effect 1: Left/Right
INFO:
Now playing effects for 5 seconds each with 1 second delay between
INFO: Playing effect 0
INFO: Playing effect 1
With Xbox360 controller the effect 0 does nothing, but the effect 1 works With Switch controller the effect 0 works but effect 1 does nothing
So in the actual game i don't get rumble with the Switch Controller, but with the Xbox360 i do.
Not sure if these effects are defined in SDL code or hid_nintendo