mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-05 21:44:40 +00:00
Made SDL_HapticEffect const in the API
Also added some additional parameter validation to haptic effect functions
This commit is contained in:
@@ -201,14 +201,14 @@ void SDL_SYS_HapticQuit(void)
|
||||
}
|
||||
|
||||
int SDL_SYS_HapticNewEffect(SDL_Haptic *haptic,
|
||||
struct haptic_effect *effect, SDL_HapticEffect *base)
|
||||
struct haptic_effect *effect, const SDL_HapticEffect *base)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SDL_SYS_HapticUpdateEffect(SDL_Haptic *haptic,
|
||||
struct haptic_effect *effect,
|
||||
SDL_HapticEffect *data)
|
||||
const SDL_HapticEffect *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user