mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-15 19:05:32 +00:00
Updated Haptic API for SDL 3.0 conventions
Also removed the XInput haptic support since using the haptic API for rumble is no longer supported.
This commit is contained in:
@@ -2764,3 +2764,123 @@ expression e1, e2, e3, e4;
|
||||
@@
|
||||
- SDL_SoftStretchLinear(e1, e2, e3, e4)
|
||||
+ SDL_SoftStretch(e1, e2, e3, e4, SDL_SCALEMODE_LINEAR)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticClose
|
||||
+ SDL_CloseHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticOpen
|
||||
+ SDL_OpenHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticOpenFromMouse
|
||||
+ SDL_OpenHapticFromMouse
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticOpenFromJoystick
|
||||
+ SDL_OpenHapticFromJoystick
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_MouseIsHaptic
|
||||
+ SDL_IsMouseHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_JoystickIsHaptic
|
||||
+ SDL_IsJoystickHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticNumEffects
|
||||
+ SDL_GetMaxHapticEffects
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticNumEffectsPlaying
|
||||
+ SDL_GetMaxHapticEffectsPlaying
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticQuery
|
||||
+ SDL_GetHapticFeatures
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticNumAxes
|
||||
+ SDL_GetNumHapticAxes
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticNewEffect
|
||||
+ SDL_CreateHapticEffect
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticUpdateEffect
|
||||
+ SDL_UpdateHapticEffect
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticRunEffect
|
||||
+ SDL_RunHapticEffect
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticStopEffect
|
||||
+ SDL_StopHapticEffect
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticDestroyEffect
|
||||
+ SDL_DestroyHapticEffect
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticGetEffectStatus
|
||||
+ SDL_GetHapticEffectStatus
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticSetGain
|
||||
+ SDL_SetHapticGain
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticSetAutocenter
|
||||
+ SDL_SetHapticAutocenter
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticPause
|
||||
+ SDL_PauseHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticUnpause
|
||||
+ SDL_ResumeHaptic
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticStopAll
|
||||
+ SDL_StopHapticEffects
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticRumbleInit
|
||||
+ SDL_InitHapticRumble
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticRumblePlay
|
||||
+ SDL_PlayHapticRumble
|
||||
(...)
|
||||
@@
|
||||
@@
|
||||
- SDL_HapticRumbleStop
|
||||
+ SDL_StopHapticRumble
|
||||
(...)
|
||||
|
||||
Reference in New Issue
Block a user