mirror of
https://github.com/yawut/SDL.git
synced 2026-07-16 08:51:41 -05:00
More controller drivers support CARTESIAN coordinates.
This fixes rumble on the Saitek Cyborg V.3 Rumble Pad
This commit is contained in:
parent
b5aa40ef52
commit
c0c97d336f
|
|
@ -765,6 +765,7 @@ SDL_HapticRumbleInit(SDL_Haptic * haptic)
|
|||
SDL_zerop(efx);
|
||||
if (haptic->supported & SDL_HAPTIC_SINE) {
|
||||
efx->type = SDL_HAPTIC_SINE;
|
||||
efx->periodic.direction.type = SDL_HAPTIC_CARTESIAN;
|
||||
efx->periodic.period = 1000;
|
||||
efx->periodic.magnitude = 0x4000;
|
||||
efx->periodic.length = 5000;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user