mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
fae5d0eab3
John Wordsworth While attempting to integrate CEF (Browser) into an SDL application, we noticed that there were problems on OS X where approximately 50% of the input events were essentially being lost - even when we were using off-screen rendering in CEF and passing through input events manually. It appears that this problem has been around for a while (see: http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11141). Please consider the following patch that fixes this issue. Instead of processing events directly after calling [NSApp nextEventMatchingMask:...] we now pass these events down to NSApp, for processing by an overloaded sendEvent: method. Chromium also forwards events to NSApp in the same way, which means we don't miss events, even if they were originally dequeued by CEF. |
||
---|---|---|
.. | ||
SDL_cocoaclipboard.h | ||
SDL_cocoaclipboard.m | ||
SDL_cocoaevents.h | ||
SDL_cocoaevents.m | ||
SDL_cocoakeyboard.h | ||
SDL_cocoakeyboard.m | ||
SDL_cocoamessagebox.h | ||
SDL_cocoamessagebox.m | ||
SDL_cocoamodes.h | ||
SDL_cocoamodes.m | ||
SDL_cocoamouse.h | ||
SDL_cocoamouse.m | ||
SDL_cocoamousetap.h | ||
SDL_cocoamousetap.m | ||
SDL_cocoaopengl.h | ||
SDL_cocoaopengl.m | ||
SDL_cocoashape.h | ||
SDL_cocoashape.m | ||
SDL_cocoavideo.h | ||
SDL_cocoavideo.m | ||
SDL_cocoawindow.h | ||
SDL_cocoawindow.m |