SDL2/src/events
Sean Ridenour a077cc8e4d
[SDL3] macOS SetCursor performance fix (fixes #7151) (#7249)
* Setting the same mouse cursor twice is a no-op

* Cocoa: Call [NSCursor set] to change mouse cursor

The previous way, changing the mouse cursor was handled by invalidating
the mouse cursor rectangles and then recreating them (with the new
cursor) the next event loop. This is extremely slow; sometimes it can
take over a millisecond! With [NSCursor set] it happens instantly and
very quick performance-wise.

The downside is that it sets the cursor for the whole screen, so we
have some guards in place to change it to the system cursor if
the mouse moves outside the window or the window loses focus.

* Cocoa: Remove unneeded resetCursorRects: function
2023-02-05 17:58:33 -08:00
..
blank_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
default_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
imKStoUCS.c Added precompiled header support for Visual Studio and Xcode (#6710) 2022-11-29 18:34:15 -08:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_darwin.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_linux.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_windows.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_xfree86.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_clipboardevents.c Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_clipboardevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_displayevents.c Displays are now referenced by instance ID instead of index 2023-01-29 19:25:15 -08:00
SDL_displayevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_dropevents.c Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_dropevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_events.c Displays are now referenced by instance ID instead of index 2023-01-29 19:25:15 -08:00
SDL_events_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_keyboard.c Simplify flags testing (#7220) 2023-02-03 13:08:42 -08:00
SDL_keyboard_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_keysym_to_scancode.c Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_keysym_to_scancode_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_mouse.c [SDL3] macOS SetCursor performance fix (fixes #7151) (#7249) 2023-02-05 17:58:33 -08:00
SDL_mouse_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_quit.c Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_scancode_tables.c Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_scancode_tables_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_touch.c Renamed SDL events for clarity 2023-01-24 07:26:48 -08:00
SDL_touch_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_windowevents.c Simplify flags testing (#7220) 2023-02-03 13:08:42 -08:00
SDL_windowevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00