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:
@@ -251,6 +251,32 @@
|
||||
#define SDL_INIT_GAMECONTROLLER SDL_INIT_GAMEPAD
|
||||
#define SDL_IsGameController SDL_IsGamepad
|
||||
|
||||
/* ##SDL_haptic.h */
|
||||
#define SDL_HapticClose SDL_CloseHaptic
|
||||
#define SDL_HapticDestroyEffect SDL_DestroyHapticEffect
|
||||
#define SDL_HapticGetEffectStatus SDL_GetHapticEffectStatus
|
||||
#define SDL_HapticNewEffect SDL_CreateHapticEffect
|
||||
#define SDL_HapticNumAxes SDL_GetNumHapticAxes
|
||||
#define SDL_HapticNumEffects SDL_GetMaxHapticEffects
|
||||
#define SDL_HapticNumEffectsPlaying SDL_GetMaxHapticEffectsPlaying
|
||||
#define SDL_HapticOpen SDL_OpenHaptic
|
||||
#define SDL_HapticOpenFromJoystick SDL_OpenHapticFromJoystick
|
||||
#define SDL_HapticOpenFromMouse SDL_OpenHapticFromMouse
|
||||
#define SDL_HapticPause SDL_PauseHaptic
|
||||
#define SDL_HapticQuery SDL_GetHapticFeatures
|
||||
#define SDL_HapticRumbleInit SDL_InitHapticRumble
|
||||
#define SDL_HapticRumblePlay SDL_PlayHapticRumble
|
||||
#define SDL_HapticRumbleStop SDL_StopHapticRumble
|
||||
#define SDL_HapticRunEffect SDL_RunHapticEffect
|
||||
#define SDL_HapticSetAutocenter SDL_SetHapticAutocenter
|
||||
#define SDL_HapticSetGain SDL_SetHapticGain
|
||||
#define SDL_HapticStopAll SDL_StopHapticEffects
|
||||
#define SDL_HapticStopEffect SDL_StopHapticEffect
|
||||
#define SDL_HapticUnpause SDL_ResumeHaptic
|
||||
#define SDL_HapticUpdateEffect SDL_UpdateHapticEffect
|
||||
#define SDL_JoystickIsHaptic SDL_IsJoystickHaptic
|
||||
#define SDL_MouseIsHaptic SDL_IsMouseHaptic
|
||||
|
||||
/* ##SDL_joystick.h */
|
||||
#define SDL_JOYSTICK_TYPE_GAMECONTROLLER SDL_JOYSTICK_TYPE_GAMEPAD
|
||||
#define SDL_JoystickAttachVirtual SDL_AttachVirtualJoystick
|
||||
@@ -696,6 +722,32 @@
|
||||
#define SDL_INIT_GAMECONTROLLER SDL_INIT_GAMECONTROLLER_renamed_SDL_INIT_GAMEPAD
|
||||
#define SDL_IsGameController SDL_IsGameController_renamed_SDL_IsGamepad
|
||||
|
||||
/* ##SDL_haptic.h */
|
||||
#define SDL_HapticClose SDL_HapticClose_renamed_SDL_CloseHaptic
|
||||
#define SDL_HapticDestroyEffect SDL_HapticDestroyEffect_renamed_SDL_DestroyHapticEffect
|
||||
#define SDL_HapticGetEffectStatus SDL_HapticGetEffectStatus_renamed_SDL_GetHapticEffectStatus
|
||||
#define SDL_HapticNewEffect SDL_HapticNewEffect_renamed_SDL_CreateHapticEffect
|
||||
#define SDL_HapticNumAxes SDL_HapticNumAxes_renamed_SDL_GetNumHapticAxes
|
||||
#define SDL_HapticNumEffects SDL_HapticNumEffects_renamed_SDL_GetMaxHapticEffects
|
||||
#define SDL_HapticNumEffectsPlaying SDL_HapticNumEffectsPlaying_renamed_SDL_GetMaxHapticEffectsPlaying
|
||||
#define SDL_HapticOpen SDL_HapticOpen_renamed_SDL_OpenHaptic
|
||||
#define SDL_HapticOpenFromJoystick SDL_HapticOpenFromJoystick_renamed_SDL_OpenHapticFromJoystick
|
||||
#define SDL_HapticOpenFromMouse SDL_HapticOpenFromMouse_renamed_SDL_OpenHapticFromMouse
|
||||
#define SDL_HapticPause SDL_HapticPause_renamed_SDL_PauseHaptic
|
||||
#define SDL_HapticQuery SDL_HapticQuery_renamed_SDL_GetHapticFeatures
|
||||
#define SDL_HapticRumbleInit SDL_HapticRumbleInit_renamed_SDL_InitHapticRumble
|
||||
#define SDL_HapticRumblePlay SDL_HapticRumblePlay_renamed_SDL_PlayHapticRumble
|
||||
#define SDL_HapticRumbleStop SDL_HapticRumbleStop_renamed_SDL_StopHapticRumble
|
||||
#define SDL_HapticRunEffect SDL_HapticRunEffect_renamed_SDL_RunHapticEffect
|
||||
#define SDL_HapticSetAutocenter SDL_HapticSetAutocenter_renamed_SDL_SetHapticAutocenter
|
||||
#define SDL_HapticSetGain SDL_HapticSetGain_renamed_SDL_SetHapticGain
|
||||
#define SDL_HapticStopAll SDL_HapticStopAll_renamed_SDL_StopHapticEffects
|
||||
#define SDL_HapticStopEffect SDL_HapticStopEffect_renamed_SDL_StopHapticEffect
|
||||
#define SDL_HapticUnpause SDL_HapticUnpause_renamed_SDL_ResumeHaptic
|
||||
#define SDL_HapticUpdateEffect SDL_HapticUpdateEffect_renamed_SDL_UpdateHapticEffect
|
||||
#define SDL_JoystickIsHaptic SDL_JoystickIsHaptic_renamed_SDL_IsJoystickHaptic
|
||||
#define SDL_MouseIsHaptic SDL_MouseIsHaptic_renamed_SDL_IsMouseHaptic
|
||||
|
||||
/* ##SDL_joystick.h */
|
||||
#define SDL_JOYSTICK_TYPE_GAMECONTROLLER SDL_JOYSTICK_TYPE_GAMECONTROLLER_renamed_SDL_JOYSTICK_TYPE_GAMEPAD
|
||||
#define SDL_JoystickAttachVirtual SDL_JoystickAttachVirtual_renamed_SDL_AttachVirtualJoystick
|
||||
|
||||
Reference in New Issue
Block a user