mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
Revert "Fix duplicate event dispatch in Cocoa event pump"
This reverts commitdd52dd8995. After that commit mouse input is not received and the window cannot be closed or resized. Fixes https://github.com/libsdl-org/SDL/issues/14818 (cherry picked from commit206989a22d)
This commit is contained in:
parent
d264c27468
commit
b8aff4a3ed
1 changed files with 0 additions and 8 deletions
|
|
@ -97,14 +97,6 @@ static void Cocoa_DispatchEvent(NSEvent *theEvent)
|
|||
{
|
||||
if (s_bShouldHandleEventsInSDLApplication) {
|
||||
Cocoa_DispatchEvent(theEvent);
|
||||
|
||||
// Avoid double-dispatching mouse and keyboard events. They are already handled in Cocoa_DispatchEvent.
|
||||
// Other event types should still go through AppKit's normal handling.
|
||||
NSEventType type = [theEvent type];
|
||||
if ((type >= NSEventTypeLeftMouseDown && type <= NSEventTypeMouseExited) ||
|
||||
(type >= NSEventTypeKeyDown && type <= NSEventTypeFlagsChanged)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
[super sendEvent:theEvent];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue