mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 07:29:09 +00:00
Renamed SDL_Del* to SDL_Remove*
This commit is contained in:
parent
cf1d8e2dfd
commit
f827c1322c
45 changed files with 118 additions and 98 deletions
|
@ -3633,3 +3633,13 @@ identifier func =~ "^(SDL_AddEventWatch|SDL_AddHintCallback|SDL_AddSurfaceAltern
|
||||||
- SDL_AtomicGetPtr
|
- SDL_AtomicGetPtr
|
||||||
+ SDL_AtomicGetPointer
|
+ SDL_AtomicGetPointer
|
||||||
(...)
|
(...)
|
||||||
|
@@
|
||||||
|
@@
|
||||||
|
- SDL_DelEventWatch
|
||||||
|
+ SDL_RemoveEventWatch
|
||||||
|
(...)
|
||||||
|
@@
|
||||||
|
@@
|
||||||
|
- SDL_DelHintCallback
|
||||||
|
+ SDL_RemoveHintCallback
|
||||||
|
(...)
|
||||||
|
|
|
@ -488,6 +488,9 @@ The following functions have been removed:
|
||||||
The following enums have been renamed:
|
The following enums have been renamed:
|
||||||
* SDL_eventaction => SDL_EventAction
|
* SDL_eventaction => SDL_EventAction
|
||||||
|
|
||||||
|
The following functions have been renamed:
|
||||||
|
* SDL_DelEventWatch() => SDL_RemoveEventWatch()
|
||||||
|
|
||||||
## SDL_gamecontroller.h
|
## SDL_gamecontroller.h
|
||||||
|
|
||||||
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
|
SDL_gamecontroller.h has been renamed SDL_gamepad.h, and all APIs have been renamed to match.
|
||||||
|
@ -862,6 +865,9 @@ The following environment variables have been removed:
|
||||||
The following functions have been removed:
|
The following functions have been removed:
|
||||||
* SDL_ClearHints() - replaced with SDL_ResetHints()
|
* SDL_ClearHints() - replaced with SDL_ResetHints()
|
||||||
|
|
||||||
|
The following functions have been renamed:
|
||||||
|
* SDL_DelHintCallback() => SDL_RemoveHintCallback()
|
||||||
|
|
||||||
## SDL_init.h
|
## SDL_init.h
|
||||||
|
|
||||||
On Haiku OS, SDL no longer sets the current working directory to the executable's path during SDL_Init(). If you need this functionality, the fastest solution is to add this code directly after the call to SDL_Init:
|
On Haiku OS, SDL no longer sets the current working directory to the executable's path during SDL_Init(). If you need this functionality, the fastest solution is to add this code directly after the call to SDL_Init:
|
||||||
|
|
|
@ -1379,7 +1379,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter *filter,
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_DelEventWatch
|
* \sa SDL_RemoveEventWatch
|
||||||
* \sa SDL_SetEventFilter
|
* \sa SDL_SetEventFilter
|
||||||
*/
|
*/
|
||||||
extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata);
|
extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, void *userdata);
|
||||||
|
@ -1397,7 +1397,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddEventWatch(SDL_EventFilter filter, v
|
||||||
*
|
*
|
||||||
* \sa SDL_AddEventWatch
|
* \sa SDL_AddEventWatch
|
||||||
*/
|
*/
|
||||||
extern SDL_DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter, void *userdata);
|
extern SDL_DECLSPEC void SDLCALL SDL_RemoveEventWatch(SDL_EventFilter filter, void *userdata);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run a specific filter function on the current event queue, removing any
|
* Run a specific filter function on the current event queue, removing any
|
||||||
|
|
|
@ -4307,7 +4307,7 @@ typedef void(SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 3.0.0.
|
* \since This function is available since SDL 3.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_DelHintCallback
|
* \sa SDL_RemoveHintCallback
|
||||||
*/
|
*/
|
||||||
extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata);
|
extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *userdata);
|
||||||
|
|
||||||
|
@ -4325,7 +4325,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddHintCallback(const char *name, SDL_H
|
||||||
*
|
*
|
||||||
* \sa SDL_AddHintCallback
|
* \sa SDL_AddHintCallback
|
||||||
*/
|
*/
|
||||||
extern SDL_DECLSPEC void SDLCALL SDL_DelHintCallback(const char *name,
|
extern SDL_DECLSPEC void SDLCALL SDL_RemoveHintCallback(const char *name,
|
||||||
SDL_HintCallback callback,
|
SDL_HintCallback callback,
|
||||||
void *userdata);
|
void *userdata);
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@
|
||||||
#define SDL_DROPCOMPLETE SDL_EVENT_DROP_COMPLETE
|
#define SDL_DROPCOMPLETE SDL_EVENT_DROP_COMPLETE
|
||||||
#define SDL_DROPFILE SDL_EVENT_DROP_FILE
|
#define SDL_DROPFILE SDL_EVENT_DROP_FILE
|
||||||
#define SDL_DROPTEXT SDL_EVENT_DROP_TEXT
|
#define SDL_DROPTEXT SDL_EVENT_DROP_TEXT
|
||||||
|
#define SDL_DelEventWatch SDL_RemoveEventWatch
|
||||||
#define SDL_FINGERDOWN SDL_EVENT_FINGER_DOWN
|
#define SDL_FINGERDOWN SDL_EVENT_FINGER_DOWN
|
||||||
#define SDL_FINGERMOTION SDL_EVENT_FINGER_MOTION
|
#define SDL_FINGERMOTION SDL_EVENT_FINGER_MOTION
|
||||||
#define SDL_FINGERUP SDL_EVENT_FINGER_UP
|
#define SDL_FINGERUP SDL_EVENT_FINGER_UP
|
||||||
|
@ -298,6 +299,7 @@
|
||||||
#define SDL_MouseIsHaptic SDL_IsMouseHaptic
|
#define SDL_MouseIsHaptic SDL_IsMouseHaptic
|
||||||
|
|
||||||
/* ##SDL_hints.h */
|
/* ##SDL_hints.h */
|
||||||
|
#define SDL_DelHintCallback SDL_RemoveHintCallback
|
||||||
#define SDL_HINT_ALLOW_TOPMOST SDL_HINT_WINDOW_ALLOW_TOPMOST
|
#define SDL_HINT_ALLOW_TOPMOST SDL_HINT_WINDOW_ALLOW_TOPMOST
|
||||||
#define SDL_HINT_DIRECTINPUT_ENABLED SDL_HINT_JOYSTICK_DIRECTINPUT
|
#define SDL_HINT_DIRECTINPUT_ENABLED SDL_HINT_JOYSTICK_DIRECTINPUT
|
||||||
#define SDL_HINT_GDK_TEXTINPUT_DEFAULT SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
|
#define SDL_HINT_GDK_TEXTINPUT_DEFAULT SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
|
||||||
|
@ -739,6 +741,7 @@
|
||||||
#define SDL_DROPCOMPLETE SDL_DROPCOMPLETE_renamed_SDL_EVENT_DROP_COMPLETE
|
#define SDL_DROPCOMPLETE SDL_DROPCOMPLETE_renamed_SDL_EVENT_DROP_COMPLETE
|
||||||
#define SDL_DROPFILE SDL_DROPFILE_renamed_SDL_EVENT_DROP_FILE
|
#define SDL_DROPFILE SDL_DROPFILE_renamed_SDL_EVENT_DROP_FILE
|
||||||
#define SDL_DROPTEXT SDL_DROPTEXT_renamed_SDL_EVENT_DROP_TEXT
|
#define SDL_DROPTEXT SDL_DROPTEXT_renamed_SDL_EVENT_DROP_TEXT
|
||||||
|
#define SDL_DelEventWatch SDL_DelEventWatch_renamed_SDL_RemoveEventWatch
|
||||||
#define SDL_FINGERDOWN SDL_FINGERDOWN_renamed_SDL_EVENT_FINGER_DOWN
|
#define SDL_FINGERDOWN SDL_FINGERDOWN_renamed_SDL_EVENT_FINGER_DOWN
|
||||||
#define SDL_FINGERMOTION SDL_FINGERMOTION_renamed_SDL_EVENT_FINGER_MOTION
|
#define SDL_FINGERMOTION SDL_FINGERMOTION_renamed_SDL_EVENT_FINGER_MOTION
|
||||||
#define SDL_FINGERUP SDL_FINGERUP_renamed_SDL_EVENT_FINGER_UP
|
#define SDL_FINGERUP SDL_FINGERUP_renamed_SDL_EVENT_FINGER_UP
|
||||||
|
@ -920,6 +923,7 @@
|
||||||
#define SDL_MouseIsHaptic SDL_MouseIsHaptic_renamed_SDL_IsMouseHaptic
|
#define SDL_MouseIsHaptic SDL_MouseIsHaptic_renamed_SDL_IsMouseHaptic
|
||||||
|
|
||||||
/* ##SDL_hints.h */
|
/* ##SDL_hints.h */
|
||||||
|
#define SDL_DelHintCallback SDL_DelHintCallback_renamed_SDL_RemoveHintCallback
|
||||||
#define SDL_HINT_ALLOW_TOPMOST SDL_HINT_ALLOW_TOPMOST_renamed_SDL_HINT_WINDOW_ALLOW_TOPMOST
|
#define SDL_HINT_ALLOW_TOPMOST SDL_HINT_ALLOW_TOPMOST_renamed_SDL_HINT_WINDOW_ALLOW_TOPMOST
|
||||||
#define SDL_HINT_DIRECTINPUT_ENABLED SDL_HINT_DIRECTINPUT_ENABLED_renamed_SDL_HINT_JOYSTICK_DIRECTINPUT
|
#define SDL_HINT_DIRECTINPUT_ENABLED SDL_HINT_DIRECTINPUT_ENABLED_renamed_SDL_HINT_JOYSTICK_DIRECTINPUT
|
||||||
#define SDL_HINT_GDK_TEXTINPUT_DEFAULT SDL_HINT_GDK_TEXTINPUT_DEFAULT_renamed_SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
|
#define SDL_HINT_GDK_TEXTINPUT_DEFAULT SDL_HINT_GDK_TEXTINPUT_DEFAULT_renamed_SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT
|
||||||
|
|
|
@ -273,7 +273,7 @@ SDL_bool SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *
|
||||||
|
|
||||||
SDL_LockProperties(hints);
|
SDL_LockProperties(hints);
|
||||||
|
|
||||||
SDL_DelHintCallback(name, callback, userdata);
|
SDL_RemoveHintCallback(name, callback, userdata);
|
||||||
|
|
||||||
SDL_Hint *hint = (SDL_Hint *)SDL_GetPointerProperty(hints, name, NULL);
|
SDL_Hint *hint = (SDL_Hint *)SDL_GetPointerProperty(hints, name, NULL);
|
||||||
if (hint) {
|
if (hint) {
|
||||||
|
@ -305,7 +305,7 @@ SDL_bool SDL_AddHintCallback(const char *name, SDL_HintCallback callback, void *
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_DelHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
|
void SDL_RemoveHintCallback(const char *name, SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
if (!name || !*name) {
|
if (!name || !*name) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -635,7 +635,7 @@ void SDL_IBus_Quit(void)
|
||||||
|
|
||||||
// !!! FIXME: should we close(inotify_fd) here?
|
// !!! FIXME: should we close(inotify_fd) here?
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_IME_IMPLEMENTED_UI, IBus_SetCapabilities, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_IME_IMPLEMENTED_UI, IBus_SetCapabilities, NULL);
|
||||||
|
|
||||||
SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
|
SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,8 +117,8 @@ SDL3_0.0.0 {
|
||||||
SDL_CreateWindowWithProperties;
|
SDL_CreateWindowWithProperties;
|
||||||
SDL_CursorVisible;
|
SDL_CursorVisible;
|
||||||
SDL_DateTimeToTime;
|
SDL_DateTimeToTime;
|
||||||
SDL_DelEventWatch;
|
SDL_RemoveEventWatch;
|
||||||
SDL_DelHintCallback;
|
SDL_RemoveHintCallback;
|
||||||
SDL_Delay;
|
SDL_Delay;
|
||||||
SDL_DelayNS;
|
SDL_DelayNS;
|
||||||
SDL_DestroyAudioStream;
|
SDL_DestroyAudioStream;
|
||||||
|
|
|
@ -142,8 +142,8 @@
|
||||||
#define SDL_CreateWindowWithProperties SDL_CreateWindowWithProperties_REAL
|
#define SDL_CreateWindowWithProperties SDL_CreateWindowWithProperties_REAL
|
||||||
#define SDL_CursorVisible SDL_CursorVisible_REAL
|
#define SDL_CursorVisible SDL_CursorVisible_REAL
|
||||||
#define SDL_DateTimeToTime SDL_DateTimeToTime_REAL
|
#define SDL_DateTimeToTime SDL_DateTimeToTime_REAL
|
||||||
#define SDL_DelEventWatch SDL_DelEventWatch_REAL
|
#define SDL_RemoveEventWatch SDL_RemoveEventWatch_REAL
|
||||||
#define SDL_DelHintCallback SDL_DelHintCallback_REAL
|
#define SDL_RemoveHintCallback SDL_RemoveHintCallback_REAL
|
||||||
#define SDL_Delay SDL_Delay_REAL
|
#define SDL_Delay SDL_Delay_REAL
|
||||||
#define SDL_DelayNS SDL_DelayNS_REAL
|
#define SDL_DelayNS SDL_DelayNS_REAL
|
||||||
#define SDL_DestroyAudioStream SDL_DestroyAudioStream_REAL
|
#define SDL_DestroyAudioStream SDL_DestroyAudioStream_REAL
|
||||||
|
|
|
@ -162,8 +162,6 @@ SDL_DYNAPI_PROC(SDL_bool,SDL_CreateWindowAndRenderer,(const char *a, int b, int
|
||||||
SDL_DYNAPI_PROC(SDL_Window*,SDL_CreateWindowWithProperties,(SDL_PropertiesID a),(a),return)
|
SDL_DYNAPI_PROC(SDL_Window*,SDL_CreateWindowWithProperties,(SDL_PropertiesID a),(a),return)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_CursorVisible,(void),(),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_CursorVisible,(void),(),return)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_DateTimeToTime,(const SDL_DateTime *a, SDL_Time *b),(a,b),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_DateTimeToTime,(const SDL_DateTime *a, SDL_Time *b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(void,SDL_DelEventWatch,(SDL_EventFilter a, void *b),(a,b),)
|
|
||||||
SDL_DYNAPI_PROC(void,SDL_DelHintCallback,(const char *a, SDL_HintCallback b, void *c),(a,b,c),)
|
|
||||||
SDL_DYNAPI_PROC(void,SDL_Delay,(Uint32 a),(a),)
|
SDL_DYNAPI_PROC(void,SDL_Delay,(Uint32 a),(a),)
|
||||||
SDL_DYNAPI_PROC(void,SDL_DelayNS,(Uint64 a),(a),)
|
SDL_DYNAPI_PROC(void,SDL_DelayNS,(Uint64 a),(a),)
|
||||||
SDL_DYNAPI_PROC(void,SDL_DestroyAudioStream,(SDL_AudioStream *a),(a),)
|
SDL_DYNAPI_PROC(void,SDL_DestroyAudioStream,(SDL_AudioStream *a),(a),)
|
||||||
|
@ -739,6 +737,8 @@ SDL_DYNAPI_PROC(void,SDL_ReleaseGPUTexture,(SDL_GPUDevice *a, SDL_GPUTexture *b)
|
||||||
SDL_DYNAPI_PROC(void,SDL_ReleaseGPUTransferBuffer,(SDL_GPUDevice *a, SDL_GPUTransferBuffer *b),(a,b),)
|
SDL_DYNAPI_PROC(void,SDL_ReleaseGPUTransferBuffer,(SDL_GPUDevice *a, SDL_GPUTransferBuffer *b),(a,b),)
|
||||||
SDL_DYNAPI_PROC(void,SDL_ReleaseWindowFromGPUDevice,(SDL_GPUDevice *a, SDL_Window *b),(a,b),)
|
SDL_DYNAPI_PROC(void,SDL_ReleaseWindowFromGPUDevice,(SDL_GPUDevice *a, SDL_Window *b),(a,b),)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_ReloadGamepadMappings,(void),(),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_ReloadGamepadMappings,(void),(),return)
|
||||||
|
SDL_DYNAPI_PROC(void,SDL_RemoveEventWatch,(SDL_EventFilter a, void *b),(a,b),)
|
||||||
|
SDL_DYNAPI_PROC(void,SDL_RemoveHintCallback,(const char *a, SDL_HintCallback b, void *c),(a,b,c),)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_RemovePath,(const char *a),(a),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_RemovePath,(const char *a),(a),return)
|
||||||
SDL_DYNAPI_PROC(SDL_bool,SDL_RemoveStoragePath,(SDL_Storage *a, const char *b),(a,b),return)
|
SDL_DYNAPI_PROC(SDL_bool,SDL_RemoveStoragePath,(SDL_Storage *a, const char *b),(a,b),return)
|
||||||
SDL_DYNAPI_PROC(void,SDL_RemoveSurfaceAlternateImages,(SDL_Surface *a),(a),)
|
SDL_DYNAPI_PROC(void,SDL_RemoveSurfaceAlternateImages,(SDL_Surface *a),(a),)
|
||||||
|
|
|
@ -1589,7 +1589,7 @@ SDL_bool SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_DelEventWatch(SDL_EventFilter filter, void *userdata)
|
void SDL_RemoveEventWatch(SDL_EventFilter filter, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_LockMutex(SDL_event_watchers_lock);
|
SDL_LockMutex(SDL_event_watchers_lock);
|
||||||
{
|
{
|
||||||
|
@ -1768,7 +1768,7 @@ bool SDL_InitEvents(void)
|
||||||
SDL_AddHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
SDL_AddHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
||||||
SDL_AddHintCallback(SDL_HINT_POLL_SENTINEL, SDL_PollSentinelChanged, NULL);
|
SDL_AddHintCallback(SDL_HINT_POLL_SENTINEL, SDL_PollSentinelChanged, NULL);
|
||||||
if (!SDL_StartEventLoop()) {
|
if (!SDL_StartEventLoop()) {
|
||||||
SDL_DelHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1781,13 +1781,13 @@ void SDL_QuitEvents(void)
|
||||||
{
|
{
|
||||||
SDL_QuitQuit();
|
SDL_QuitQuit();
|
||||||
SDL_StopEventLoop();
|
SDL_StopEventLoop();
|
||||||
SDL_DelHintCallback(SDL_HINT_POLL_SENTINEL, SDL_PollSentinelChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_POLL_SENTINEL, SDL_PollSentinelChanged, NULL);
|
||||||
SDL_DelHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_EVENT_LOGGING, SDL_EventLoggingChanged, NULL);
|
||||||
#ifndef SDL_JOYSTICK_DISABLED
|
#ifndef SDL_JOYSTICK_DISABLED
|
||||||
SDL_DelHintCallback(SDL_HINT_AUTO_UPDATE_JOYSTICKS, SDL_AutoUpdateJoysticksChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_AUTO_UPDATE_JOYSTICKS, SDL_AutoUpdateJoysticksChanged, NULL);
|
||||||
#endif
|
#endif
|
||||||
#ifndef SDL_SENSOR_DISABLED
|
#ifndef SDL_SENSOR_DISABLED
|
||||||
SDL_DelHintCallback(SDL_HINT_AUTO_UPDATE_SENSORS, SDL_AutoUpdateSensorsChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_AUTO_UPDATE_SENSORS, SDL_AutoUpdateSensorsChanged, NULL);
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_PLATFORM_ANDROID
|
#ifdef SDL_PLATFORM_ANDROID
|
||||||
Android_QuitEvents();
|
Android_QuitEvents();
|
||||||
|
|
|
@ -867,7 +867,7 @@ void SDL_QuitKeyboard(void)
|
||||||
SDL_keyboard.keymap = NULL;
|
SDL_keyboard.keymap = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_KEYCODE_OPTIONS,
|
SDL_RemoveHintCallback(SDL_HINT_KEYCODE_OPTIONS,
|
||||||
SDL_KeycodeOptionsChanged, &SDL_keyboard);
|
SDL_KeycodeOptionsChanged, &SDL_keyboard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1121,40 +1121,40 @@ void SDL_QuitMouse(void)
|
||||||
}
|
}
|
||||||
mouse->num_system_scale_values = 0;
|
mouse->num_system_scale_values = 0;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_DOUBLE_CLICK_TIME,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_DOUBLE_CLICK_TIME,
|
||||||
SDL_MouseDoubleClickTimeChanged, mouse);
|
SDL_MouseDoubleClickTimeChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS,
|
||||||
SDL_MouseDoubleClickRadiusChanged, mouse);
|
SDL_MouseDoubleClickRadiusChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_NORMAL_SPEED_SCALE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_NORMAL_SPEED_SCALE,
|
||||||
SDL_MouseNormalSpeedScaleChanged, mouse);
|
SDL_MouseNormalSpeedScaleChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE,
|
||||||
SDL_MouseRelativeSpeedScaleChanged, mouse);
|
SDL_MouseRelativeSpeedScaleChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE,
|
||||||
SDL_MouseRelativeSystemScaleChanged, mouse);
|
SDL_MouseRelativeSystemScaleChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE,
|
||||||
SDL_MouseWarpEmulationChanged, mouse);
|
SDL_MouseWarpEmulationChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_TOUCH_MOUSE_EVENTS,
|
SDL_RemoveHintCallback(SDL_HINT_TOUCH_MOUSE_EVENTS,
|
||||||
SDL_TouchMouseEventsChanged, mouse);
|
SDL_TouchMouseEventsChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_TOUCH_EVENTS,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_TOUCH_EVENTS,
|
||||||
SDL_MouseTouchEventsChanged, mouse);
|
SDL_MouseTouchEventsChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_AUTO_CAPTURE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_AUTO_CAPTURE,
|
||||||
SDL_MouseAutoCaptureChanged, mouse);
|
SDL_MouseAutoCaptureChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_WARP_MOTION,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_WARP_MOTION,
|
||||||
SDL_MouseRelativeWarpMotionChanged, mouse);
|
SDL_MouseRelativeWarpMotionChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_CURSOR_VISIBLE,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_CURSOR_VISIBLE,
|
||||||
SDL_MouseRelativeCursorVisibleChanged, mouse);
|
SDL_MouseRelativeCursorVisibleChanged, mouse);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL,
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL,
|
||||||
SDL_MouseRelativeClipIntervalChanged, mouse);
|
SDL_MouseRelativeClipIntervalChanged, mouse);
|
||||||
|
|
||||||
for (int i = SDL_mouse_count; i--; ) {
|
for (int i = SDL_mouse_count; i--; ) {
|
||||||
|
|
|
@ -9779,7 +9779,7 @@ static void VULKAN_ReleaseWindow(
|
||||||
SDL_free(windowData);
|
SDL_free(windowData);
|
||||||
|
|
||||||
SDL_ClearProperty(SDL_GetWindowProperties(window), WINDOW_PROPERTY_DATA);
|
SDL_ClearProperty(SDL_GetWindowProperties(window), WINDOW_PROPERTY_DATA);
|
||||||
SDL_DelEventWatch(VULKAN_INTERNAL_OnWindowResize, window);
|
SDL_RemoveEventWatch(VULKAN_INTERNAL_OnWindowResize, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool VULKAN_INTERNAL_RecreateSwapchain(
|
static bool VULKAN_INTERNAL_RecreateSwapchain(
|
||||||
|
|
|
@ -1287,8 +1287,8 @@ int SDL_hid_exit(void)
|
||||||
}
|
}
|
||||||
#endif // HAVE_LIBUSB
|
#endif // HAVE_LIBUSB
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS, OnlyControllersChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS, OnlyControllersChanged, NULL);
|
||||||
SDL_DelHintCallback(SDL_HINT_HIDAPI_IGNORE_DEVICES, IgnoredDevicesChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_HIDAPI_IGNORE_DEVICES, IgnoredDevicesChanged, NULL);
|
||||||
|
|
||||||
if (SDL_hidapi_ignored_devices) {
|
if (SDL_hidapi_ignored_devices) {
|
||||||
SDL_free(SDL_hidapi_ignored_devices);
|
SDL_free(SDL_hidapi_ignored_devices);
|
||||||
|
|
|
@ -3680,7 +3680,7 @@ void SDL_QuitGamepads(void)
|
||||||
|
|
||||||
SDL_gamepads_initialized = false;
|
SDL_gamepads_initialized = false;
|
||||||
|
|
||||||
SDL_DelEventWatch(SDL_GamepadEventWatcher, NULL);
|
SDL_RemoveEventWatch(SDL_GamepadEventWatcher, NULL);
|
||||||
|
|
||||||
while (SDL_gamepads) {
|
while (SDL_gamepads) {
|
||||||
SDL_gamepads->ref_count = 1;
|
SDL_gamepads->ref_count = 1;
|
||||||
|
|
|
@ -1956,7 +1956,7 @@ void SDL_QuitJoysticks(void)
|
||||||
|
|
||||||
SDL_QuitSteamVirtualGamepadInfo();
|
SDL_QuitSteamVirtualGamepadInfo();
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS,
|
||||||
SDL_JoystickAllowBackgroundEventsChanged, NULL);
|
SDL_JoystickAllowBackgroundEventsChanged, NULL);
|
||||||
|
|
||||||
SDL_FreeVIDPIDList(&arcadestick_devices);
|
SDL_FreeVIDPIDList(&arcadestick_devices);
|
||||||
|
@ -3795,11 +3795,11 @@ bool SDL_VIDPIDInList(Uint16 vendor_id, Uint16 product_id, const SDL_vidpid_list
|
||||||
void SDL_FreeVIDPIDList(SDL_vidpid_list *list)
|
void SDL_FreeVIDPIDList(SDL_vidpid_list *list)
|
||||||
{
|
{
|
||||||
if (list->included_hint_name) {
|
if (list->included_hint_name) {
|
||||||
SDL_DelHintCallback(list->included_hint_name, SDL_VIDPIDIncludedHintChanged, list);
|
SDL_RemoveHintCallback(list->included_hint_name, SDL_VIDPIDIncludedHintChanged, list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list->excluded_hint_name) {
|
if (list->excluded_hint_name) {
|
||||||
SDL_DelHintCallback(list->excluded_hint_name, SDL_VIDPIDExcludedHintChanged, list);
|
SDL_RemoveHintCallback(list->excluded_hint_name, SDL_VIDPIDExcludedHintChanged, list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list->included_entries) {
|
if (list->included_entries) {
|
||||||
|
|
|
@ -1708,7 +1708,7 @@ static void IOS_JoystickQuit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDL_PLATFORM_TVOS
|
#ifdef SDL_PLATFORM_TVOS
|
||||||
SDL_DelHintCallback(SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION,
|
SDL_RemoveHintCallback(SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION,
|
||||||
SDL_AppleTVRemoteRotationHintChanged, NULL);
|
SDL_AppleTVRemoteRotationHintChanged, NULL);
|
||||||
#endif // SDL_PLATFORM_TVOS
|
#endif // SDL_PLATFORM_TVOS
|
||||||
#endif // SDL_JOYSTICK_MFI
|
#endif // SDL_JOYSTICK_MFI
|
||||||
|
|
|
@ -56,7 +56,7 @@ static void HIDAPI_DriverGameCube_RegisterHints(SDL_HintCallback callback, void
|
||||||
|
|
||||||
static void HIDAPI_DriverGameCube_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverGameCube_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverGameCube_IsEnabled(void)
|
static bool HIDAPI_DriverGameCube_IsEnabled(void)
|
||||||
|
@ -503,7 +503,7 @@ static void HIDAPI_DriverGameCube_FreeDevice(SDL_HIDAPI_Device *device)
|
||||||
{
|
{
|
||||||
SDL_DriverGameCube_Context *ctx = (SDL_DriverGameCube_Context *)device->context;
|
SDL_DriverGameCube_Context *ctx = (SDL_DriverGameCube_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE,
|
||||||
SDL_JoystickGameCubeRumbleBrakeHintChanged, ctx);
|
SDL_JoystickGameCubeRumbleBrakeHintChanged, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ static void HIDAPI_DriverLuna_RegisterHints(SDL_HintCallback callback, void *use
|
||||||
|
|
||||||
static void HIDAPI_DriverLuna_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverLuna_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_LUNA, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_LUNA, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverLuna_IsEnabled(void)
|
static bool HIDAPI_DriverLuna_IsEnabled(void)
|
||||||
|
|
|
@ -98,7 +98,7 @@ static void HIDAPI_DriverPS3_RegisterHints(SDL_HintCallback callback, void *user
|
||||||
|
|
||||||
static void HIDAPI_DriverPS3_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverPS3_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS3, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS3, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverPS3_IsEnabled(void)
|
static bool HIDAPI_DriverPS3_IsEnabled(void)
|
||||||
|
@ -1059,7 +1059,7 @@ static void HIDAPI_DriverPS3SonySixaxis_RegisterHints(SDL_HintCallback callback,
|
||||||
|
|
||||||
static void HIDAPI_DriverPS3SonySixaxis_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverPS3SonySixaxis_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverPS3SonySixaxis_IsEnabled(void)
|
static bool HIDAPI_DriverPS3SonySixaxis_IsEnabled(void)
|
||||||
|
|
|
@ -191,7 +191,7 @@ static void HIDAPI_DriverPS4_RegisterHints(SDL_HintCallback callback, void *user
|
||||||
|
|
||||||
static void HIDAPI_DriverPS4_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverPS4_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverPS4_IsEnabled(void)
|
static bool HIDAPI_DriverPS4_IsEnabled(void)
|
||||||
|
@ -1350,9 +1350,9 @@ static void HIDAPI_DriverPS4_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joysti
|
||||||
{
|
{
|
||||||
SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context;
|
SDL_DriverPS4_Context *ctx = (SDL_DriverPS4_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_REPORT_INTERVAL,
|
||||||
SDL_PS4ReportIntervalHintChanged, ctx);
|
SDL_PS4ReportIntervalHintChanged, ctx);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE,
|
||||||
SDL_PS4RumbleHintChanged, ctx);
|
SDL_PS4RumbleHintChanged, ctx);
|
||||||
|
|
||||||
ctx->joystick = NULL;
|
ctx->joystick = NULL;
|
||||||
|
|
|
@ -281,7 +281,7 @@ static void HIDAPI_DriverPS5_RegisterHints(SDL_HintCallback callback, void *user
|
||||||
|
|
||||||
static void HIDAPI_DriverPS5_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverPS5_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverPS5_IsEnabled(void)
|
static bool HIDAPI_DriverPS5_IsEnabled(void)
|
||||||
|
@ -1589,10 +1589,10 @@ static void HIDAPI_DriverPS5_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joysti
|
||||||
{
|
{
|
||||||
SDL_DriverPS5_Context *ctx = (SDL_DriverPS5_Context *)device->context;
|
SDL_DriverPS5_Context *ctx = (SDL_DriverPS5_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE,
|
||||||
SDL_PS5RumbleHintChanged, ctx);
|
SDL_PS5RumbleHintChanged, ctx);
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED,
|
||||||
SDL_PS5PlayerLEDHintChanged, ctx);
|
SDL_PS5PlayerLEDHintChanged, ctx);
|
||||||
|
|
||||||
ctx->joystick = NULL;
|
ctx->joystick = NULL;
|
||||||
|
|
|
@ -99,7 +99,7 @@ static void HIDAPI_DriverShield_RegisterHints(SDL_HintCallback callback, void *u
|
||||||
|
|
||||||
static void HIDAPI_DriverShield_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverShield_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SHIELD, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SHIELD, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverShield_IsEnabled(void)
|
static bool HIDAPI_DriverShield_IsEnabled(void)
|
||||||
|
|
|
@ -51,7 +51,7 @@ static void HIDAPI_DriverStadia_RegisterHints(SDL_HintCallback callback, void *u
|
||||||
|
|
||||||
static void HIDAPI_DriverStadia_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverStadia_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STADIA, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STADIA, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverStadia_IsEnabled(void)
|
static bool HIDAPI_DriverStadia_IsEnabled(void)
|
||||||
|
|
|
@ -953,7 +953,7 @@ static void HIDAPI_DriverSteam_RegisterHints(SDL_HintCallback callback, void *us
|
||||||
|
|
||||||
static void HIDAPI_DriverSteam_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverSteam_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STEAM, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STEAM, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverSteam_IsEnabled(void)
|
static bool HIDAPI_DriverSteam_IsEnabled(void)
|
||||||
|
|
|
@ -244,7 +244,7 @@ static void HIDAPI_DriverSteamDeck_RegisterHints(SDL_HintCallback callback, void
|
||||||
|
|
||||||
static void HIDAPI_DriverSteamDeck_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverSteamDeck_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_STEAMDECK, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverSteamDeck_IsEnabled(void)
|
static bool HIDAPI_DriverSteamDeck_IsEnabled(void)
|
||||||
|
|
|
@ -1134,7 +1134,7 @@ static void HIDAPI_DriverNintendoClassic_RegisterHints(SDL_HintCallback callback
|
||||||
|
|
||||||
static void HIDAPI_DriverNintendoClassic_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverNintendoClassic_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverNintendoClassic_IsEnabled(void)
|
static bool HIDAPI_DriverNintendoClassic_IsEnabled(void)
|
||||||
|
@ -1175,7 +1175,7 @@ static void HIDAPI_DriverJoyCons_RegisterHints(SDL_HintCallback callback, void *
|
||||||
|
|
||||||
static void HIDAPI_DriverJoyCons_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverJoyCons_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverJoyCons_IsEnabled(void)
|
static bool HIDAPI_DriverJoyCons_IsEnabled(void)
|
||||||
|
@ -1211,7 +1211,7 @@ static void HIDAPI_DriverSwitch_RegisterHints(SDL_HintCallback callback, void *u
|
||||||
|
|
||||||
static void HIDAPI_DriverSwitch_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverSwitch_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverSwitch_IsEnabled(void)
|
static bool HIDAPI_DriverSwitch_IsEnabled(void)
|
||||||
|
@ -2660,14 +2660,14 @@ static void HIDAPI_DriverSwitch_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joy
|
||||||
|
|
||||||
if (ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_JoyConLeft ||
|
if (ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_JoyConLeft ||
|
||||||
ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_JoyConRight) {
|
ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_JoyConRight) {
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED,
|
||||||
SDL_HomeLEDHintChanged, ctx);
|
SDL_HomeLEDHintChanged, ctx);
|
||||||
} else {
|
} else {
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED,
|
||||||
SDL_HomeLEDHintChanged, ctx);
|
SDL_HomeLEDHintChanged, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED,
|
||||||
SDL_PlayerLEDHintChanged, ctx);
|
SDL_PlayerLEDHintChanged, ctx);
|
||||||
|
|
||||||
ctx->joystick = NULL;
|
ctx->joystick = NULL;
|
||||||
|
|
|
@ -165,7 +165,7 @@ static void HIDAPI_DriverWii_RegisterHints(SDL_HintCallback callback, void *user
|
||||||
|
|
||||||
static void HIDAPI_DriverWii_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverWii_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_WII, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_WII, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverWii_IsEnabled(void)
|
static bool HIDAPI_DriverWii_IsEnabled(void)
|
||||||
|
@ -1580,7 +1580,7 @@ static void HIDAPI_DriverWii_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joysti
|
||||||
{
|
{
|
||||||
SDL_DriverWii_Context *ctx = (SDL_DriverWii_Context *)device->context;
|
SDL_DriverWii_Context *ctx = (SDL_DriverWii_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED,
|
||||||
SDL_PlayerLEDHintChanged, ctx);
|
SDL_PlayerLEDHintChanged, ctx);
|
||||||
|
|
||||||
ctx->joystick = NULL;
|
ctx->joystick = NULL;
|
||||||
|
|
|
@ -49,8 +49,8 @@ static void HIDAPI_DriverXbox360_RegisterHints(SDL_HintCallback callback, void *
|
||||||
|
|
||||||
static void HIDAPI_DriverXbox360_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverXbox360_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverXbox360_IsEnabled(void)
|
static bool HIDAPI_DriverXbox360_IsEnabled(void)
|
||||||
|
@ -366,7 +366,7 @@ static void HIDAPI_DriverXbox360_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Jo
|
||||||
{
|
{
|
||||||
SDL_DriverXbox360_Context *ctx = (SDL_DriverXbox360_Context *)device->context;
|
SDL_DriverXbox360_Context *ctx = (SDL_DriverXbox360_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED,
|
||||||
SDL_PlayerLEDHintChanged, ctx);
|
SDL_PlayerLEDHintChanged, ctx);
|
||||||
|
|
||||||
ctx->joystick = NULL;
|
ctx->joystick = NULL;
|
||||||
|
|
|
@ -50,9 +50,9 @@ static void HIDAPI_DriverXbox360W_RegisterHints(SDL_HintCallback callback, void
|
||||||
|
|
||||||
static void HIDAPI_DriverXbox360W_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverXbox360W_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360, callback, userdata);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverXbox360W_IsEnabled(void)
|
static bool HIDAPI_DriverXbox360W_IsEnabled(void)
|
||||||
|
@ -351,7 +351,7 @@ static void HIDAPI_DriverXbox360W_CloseJoystick(SDL_HIDAPI_Device *device, SDL_J
|
||||||
{
|
{
|
||||||
SDL_DriverXbox360W_Context *ctx = (SDL_DriverXbox360W_Context *)device->context;
|
SDL_DriverXbox360W_Context *ctx = (SDL_DriverXbox360W_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED,
|
||||||
SDL_PlayerLEDHintChanged, ctx);
|
SDL_PlayerLEDHintChanged, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -338,8 +338,8 @@ static void HIDAPI_DriverXboxOne_RegisterHints(SDL_HintCallback callback, void *
|
||||||
|
|
||||||
static void HIDAPI_DriverXboxOne_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
static void HIDAPI_DriverXboxOne_UnregisterHints(SDL_HintCallback callback, void *userdata)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX, callback, userdata);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE, callback, userdata);
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool HIDAPI_DriverXboxOne_IsEnabled(void)
|
static bool HIDAPI_DriverXboxOne_IsEnabled(void)
|
||||||
|
@ -1634,7 +1634,7 @@ static void HIDAPI_DriverXboxOne_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Jo
|
||||||
{
|
{
|
||||||
SDL_DriverXboxOne_Context *ctx = (SDL_DriverXboxOne_Context *)device->context;
|
SDL_DriverXboxOne_Context *ctx = (SDL_DriverXboxOne_Context *)device->context;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED,
|
||||||
SDL_HomeLEDHintChanged, ctx);
|
SDL_HomeLEDHintChanged, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1682,9 +1682,9 @@ static void HIDAPI_JoystickQuit(void)
|
||||||
SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i];
|
SDL_HIDAPI_DeviceDriver *driver = SDL_HIDAPI_drivers[i];
|
||||||
driver->UnregisterHints(SDL_HIDAPIDriverHintChanged, driver);
|
driver->UnregisterHints(SDL_HIDAPIDriverHintChanged, driver);
|
||||||
}
|
}
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS,
|
||||||
SDL_HIDAPIDriverHintChanged, NULL);
|
SDL_HIDAPIDriverHintChanged, NULL);
|
||||||
SDL_DelHintCallback(SDL_HINT_JOYSTICK_HIDAPI,
|
SDL_RemoveHintCallback(SDL_HINT_JOYSTICK_HIDAPI,
|
||||||
SDL_HIDAPIDriverHintChanged, NULL);
|
SDL_HIDAPIDriverHintChanged, NULL);
|
||||||
|
|
||||||
SDL_hid_exit();
|
SDL_hid_exit();
|
||||||
|
|
|
@ -132,7 +132,7 @@ SDL_AppResult SDL_IterateMainCallbacks(bool pump_events)
|
||||||
|
|
||||||
void SDL_QuitMainCallbacks(void)
|
void SDL_QuitMainCallbacks(void)
|
||||||
{
|
{
|
||||||
SDL_DelEventWatch(SDL_MainCallbackEventWatcher, NULL);
|
SDL_RemoveEventWatch(SDL_MainCallbackEventWatcher, NULL);
|
||||||
SDL_main_quit_callback(SDL_main_appstate);
|
SDL_main_quit_callback(SDL_main_appstate);
|
||||||
SDL_main_appstate = NULL; // just in case.
|
SDL_main_appstate = NULL; // just in case.
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ int SDL_EnterAppMainCallbacks(int argc, char* argv[], SDL_AppInit_func appinit,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MAIN_CALLBACK_RATE, MainCallbackRateHintChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_MAIN_CALLBACK_RATE, MainCallbackRateHintChanged, NULL);
|
||||||
}
|
}
|
||||||
SDL_QuitMainCallbacks();
|
SDL_QuitMainCallbacks();
|
||||||
|
|
||||||
|
|
|
@ -5126,7 +5126,7 @@ void SDL_DestroyRendererWithoutFreeing(SDL_Renderer *renderer)
|
||||||
|
|
||||||
renderer->destroyed = true;
|
renderer->destroyed = true;
|
||||||
|
|
||||||
SDL_DelEventWatch(SDL_RendererEventWatch, renderer);
|
SDL_RemoveEventWatch(SDL_RendererEventWatch, renderer);
|
||||||
|
|
||||||
if (renderer->window) {
|
if (renderer->window) {
|
||||||
SDL_PropertiesID props = SDL_GetWindowProperties(renderer->window);
|
SDL_PropertiesID props = SDL_GetWindowProperties(renderer->window);
|
||||||
|
|
|
@ -595,7 +595,7 @@ void SDL_InitTicks(void)
|
||||||
|
|
||||||
void SDL_QuitTicks(void)
|
void SDL_QuitTicks(void)
|
||||||
{
|
{
|
||||||
SDL_DelHintCallback(SDL_HINT_TIMER_RESOLUTION,
|
SDL_RemoveHintCallback(SDL_HINT_TIMER_RESOLUTION,
|
||||||
SDL_TimerResolutionChanged, NULL);
|
SDL_TimerResolutionChanged, NULL);
|
||||||
|
|
||||||
SDL_SetSystemTimerResolutionMS(0); // always release our timer resolution request.
|
SDL_SetSystemTimerResolutionMS(0); // always release our timer resolution request.
|
||||||
|
|
|
@ -98,7 +98,7 @@ static SDL_bool SDLCALL SDL_MetalViewEventWatch(void *userdata, SDL_Event *event
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
SDL_DelEventWatch(SDL_MetalViewEventWatch, (__bridge void *)(self));
|
SDL_RemoveEventWatch(SDL_MetalViewEventWatch, (__bridge void *)(self));
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSInteger)tag
|
- (NSInteger)tag
|
||||||
|
|
|
@ -208,7 +208,7 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
|
||||||
{
|
{
|
||||||
[self setWindow:NULL];
|
[self setWindow:NULL];
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH, SDL_OpenGLAsyncDispatchChanged, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH, SDL_OpenGLAsyncDispatchChanged, NULL);
|
||||||
if (self->displayLink) {
|
if (self->displayLink) {
|
||||||
CVDisplayLinkRelease(self->displayLink);
|
CVDisplayLinkRelease(self->displayLink);
|
||||||
self->displayLink = nil;
|
self->displayLink = nil;
|
||||||
|
|
|
@ -126,13 +126,13 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SDL_PLATFORM_TVOS
|
#ifdef SDL_PLATFORM_TVOS
|
||||||
SDL_DelHintCallback(SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS,
|
SDL_RemoveHintCallback(SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS,
|
||||||
SDL_AppleTVControllerUIHintChanged,
|
SDL_AppleTVControllerUIHintChanged,
|
||||||
(__bridge void *)self);
|
(__bridge void *)self);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDL_PLATFORM_TVOS
|
#ifndef SDL_PLATFORM_TVOS
|
||||||
SDL_DelHintCallback(SDL_HINT_IOS_HIDE_HOME_INDICATOR,
|
SDL_RemoveHintCallback(SDL_HINT_IOS_HIDE_HOME_INDICATOR,
|
||||||
SDL_HideHomeIndicatorHintChanged,
|
SDL_HideHomeIndicatorHintChanged,
|
||||||
(__bridge void *)self);
|
(__bridge void *)self);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -536,10 +536,10 @@ void WIN_VideoQuit(SDL_VideoDevice *_this)
|
||||||
{
|
{
|
||||||
SDL_VideoData *data = _this->internal;
|
SDL_VideoData *data = _this->internal;
|
||||||
|
|
||||||
SDL_DelHintCallback(SDL_HINT_WINDOWS_RAW_KEYBOARD, UpdateWindowsRawKeyboard, _this);
|
SDL_RemoveHintCallback(SDL_HINT_WINDOWS_RAW_KEYBOARD, UpdateWindowsRawKeyboard, _this);
|
||||||
SDL_DelHintCallback(SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP, UpdateWindowsEnableMessageLoop, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_WINDOWS_ENABLE_MESSAGELOOP, UpdateWindowsEnableMessageLoop, NULL);
|
||||||
SDL_DelHintCallback(SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS, UpdateWindowsEnableMenuMnemonics, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS, UpdateWindowsEnableMenuMnemonics, NULL);
|
||||||
SDL_DelHintCallback(SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN, UpdateWindowFrameUsableWhileCursorHidden, NULL);
|
SDL_RemoveHintCallback(SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN, UpdateWindowFrameUsableWhileCursorHidden, NULL);
|
||||||
|
|
||||||
WIN_SetRawMouseEnabled(_this, false);
|
WIN_SetRawMouseEnabled(_this, false);
|
||||||
WIN_SetRawKeyboardEnabled(_this, false);
|
WIN_SetRawKeyboardEnabled(_this, false);
|
||||||
|
|
|
@ -588,7 +588,7 @@ static void CleanupWindowData(SDL_VideoDevice *_this, SDL_Window *window)
|
||||||
SDL_WindowData *data = window->internal;
|
SDL_WindowData *data = window->internal;
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
SDL_DelHintCallback(SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, WIN_MouseRelativeModeCenterChanged, data);
|
SDL_RemoveHintCallback(SDL_HINT_MOUSE_RELATIVE_MODE_CENTER, WIN_MouseRelativeModeCenterChanged, data);
|
||||||
|
|
||||||
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||||
if (data->drop_target) {
|
if (data->drop_target) {
|
||||||
|
|
|
@ -389,7 +389,7 @@ static int clipboard_testClipboardDataFunctions(void *arg)
|
||||||
!boolResult,
|
!boolResult,
|
||||||
"Verify has test text data, expected SDL_FALSE, got SDL_TRUE");
|
"Verify has test text data, expected SDL_FALSE, got SDL_TRUE");
|
||||||
|
|
||||||
SDL_DelEventWatch(ClipboardEventWatch, NULL);
|
SDL_RemoveEventWatch(ClipboardEventWatch, NULL);
|
||||||
|
|
||||||
return TEST_COMPLETED;
|
return TEST_COMPLETED;
|
||||||
}
|
}
|
||||||
|
@ -473,7 +473,7 @@ static int clipboard_testClipboardTextFunctions(void *arg)
|
||||||
SDL_free(textRef);
|
SDL_free(textRef);
|
||||||
SDL_free(text);
|
SDL_free(text);
|
||||||
|
|
||||||
SDL_DelEventWatch(ClipboardEventWatch, NULL);
|
SDL_RemoveEventWatch(ClipboardEventWatch, NULL);
|
||||||
|
|
||||||
return TEST_COMPLETED;
|
return TEST_COMPLETED;
|
||||||
}
|
}
|
||||||
|
@ -556,7 +556,7 @@ static int clipboard_testPrimarySelectionTextFunctions(void *arg)
|
||||||
SDL_free(textRef);
|
SDL_free(textRef);
|
||||||
SDL_free(text);
|
SDL_free(text);
|
||||||
|
|
||||||
SDL_DelEventWatch(ClipboardEventWatch, NULL);
|
SDL_RemoveEventWatch(ClipboardEventWatch, NULL);
|
||||||
|
|
||||||
return TEST_COMPLETED;
|
return TEST_COMPLETED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ static int events_pushPumpAndPollUserevent(void *arg)
|
||||||
* Adds and deletes an event watch function with NULL userdata
|
* Adds and deletes an event watch function with NULL userdata
|
||||||
*
|
*
|
||||||
* \sa SDL_AddEventWatch
|
* \sa SDL_AddEventWatch
|
||||||
* \sa SDL_DelEventWatch
|
* \sa SDL_RemoveEventWatch
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static int events_addDelEventWatch(void *arg)
|
static int events_addDelEventWatch(void *arg)
|
||||||
|
@ -138,8 +138,8 @@ static int events_addDelEventWatch(void *arg)
|
||||||
SDLTest_AssertCheck(g_eventFilterCalled == 1, "Check that event filter was called");
|
SDLTest_AssertCheck(g_eventFilterCalled == 1, "Check that event filter was called");
|
||||||
|
|
||||||
/* Delete watch */
|
/* Delete watch */
|
||||||
SDL_DelEventWatch(events_sampleNullEventFilter, NULL);
|
SDL_RemoveEventWatch(events_sampleNullEventFilter, NULL);
|
||||||
SDLTest_AssertPass("Call to SDL_DelEventWatch()");
|
SDLTest_AssertPass("Call to SDL_RemoveEventWatch()");
|
||||||
|
|
||||||
/* Push a user event onto the queue and force queue update */
|
/* Push a user event onto the queue and force queue update */
|
||||||
g_eventFilterCalled = 0;
|
g_eventFilterCalled = 0;
|
||||||
|
@ -156,7 +156,7 @@ static int events_addDelEventWatch(void *arg)
|
||||||
* Adds and deletes an event watch function with userdata
|
* Adds and deletes an event watch function with userdata
|
||||||
*
|
*
|
||||||
* \sa SDL_AddEventWatch
|
* \sa SDL_AddEventWatch
|
||||||
* \sa SDL_DelEventWatch
|
* \sa SDL_RemoveEventWatch
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
static int events_addDelEventWatchWithUserdata(void *arg)
|
static int events_addDelEventWatchWithUserdata(void *arg)
|
||||||
|
@ -189,8 +189,8 @@ static int events_addDelEventWatchWithUserdata(void *arg)
|
||||||
SDLTest_AssertCheck(g_eventFilterCalled == 1, "Check that event filter was called");
|
SDLTest_AssertCheck(g_eventFilterCalled == 1, "Check that event filter was called");
|
||||||
|
|
||||||
/* Delete watch */
|
/* Delete watch */
|
||||||
SDL_DelEventWatch(events_sampleNullEventFilter, (void *)&g_userdataValue);
|
SDL_RemoveEventWatch(events_sampleNullEventFilter, (void *)&g_userdataValue);
|
||||||
SDLTest_AssertPass("Call to SDL_DelEventWatch()");
|
SDLTest_AssertPass("Call to SDL_RemoveEventWatch()");
|
||||||
|
|
||||||
/* Push a user event onto the queue and force queue update */
|
/* Push a user event onto the queue and force queue update */
|
||||||
g_eventFilterCalled = 0;
|
g_eventFilterCalled = 0;
|
||||||
|
|
|
@ -215,7 +215,7 @@ static int hints_setHint(void *arg)
|
||||||
|
|
||||||
SDLTest_AssertPass("Call to SDL_ResetHint(), after clearing callback");
|
SDLTest_AssertPass("Call to SDL_ResetHint(), after clearing callback");
|
||||||
callbackValue = NULL;
|
callbackValue = NULL;
|
||||||
SDL_DelHintCallback(testHint, hints_testHintChanged, &callbackValue);
|
SDL_RemoveHintCallback(testHint, hints_testHintChanged, &callbackValue);
|
||||||
SDL_ResetHint(testHint);
|
SDL_ResetHint(testHint);
|
||||||
SDLTest_AssertCheck(
|
SDLTest_AssertCheck(
|
||||||
callbackValue == NULL,
|
callbackValue == NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue