a077cc8e4d
* 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 |
||
---|---|---|
.. | ||
blank_cursor.h | ||
default_cursor.h | ||
imKStoUCS.c | ||
imKStoUCS.h | ||
scancodes_ascii.h | ||
scancodes_darwin.h | ||
scancodes_linux.h | ||
scancodes_windows.h | ||
scancodes_xfree86.h | ||
SDL_clipboardevents.c | ||
SDL_clipboardevents_c.h | ||
SDL_displayevents.c | ||
SDL_displayevents_c.h | ||
SDL_dropevents.c | ||
SDL_dropevents_c.h | ||
SDL_events.c | ||
SDL_events_c.h | ||
SDL_keyboard.c | ||
SDL_keyboard_c.h | ||
SDL_keysym_to_scancode.c | ||
SDL_keysym_to_scancode_c.h | ||
SDL_mouse.c | ||
SDL_mouse_c.h | ||
SDL_quit.c | ||
SDL_scancode_tables.c | ||
SDL_scancode_tables_c.h | ||
SDL_touch.c | ||
SDL_touch_c.h | ||
SDL_windowevents.c | ||
SDL_windowevents_c.h |