mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 05:02:11 +02:00
update SDL3 to 3.1.6.
This commit is contained in:
@@ -88,6 +88,7 @@
|
||||
|
||||
// Handle drag-and-drop of files onto the SDL window.
|
||||
- (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender;
|
||||
- (void)draggingExited:(id<NSDraggingInfo>)sender;
|
||||
- (NSDragOperation)draggingUpdated:(id<NSDraggingInfo>)sender;
|
||||
- (BOOL)performDragOperation:(id<NSDraggingInfo>)sender;
|
||||
- (BOOL)wantsPeriodicDraggingUpdates;
|
||||
@@ -174,6 +175,12 @@
|
||||
return NSDragOperationNone; // no idea what to do with this, reject it.
|
||||
}
|
||||
|
||||
- (void)draggingExited:(id<NSDraggingInfo>)sender
|
||||
{
|
||||
SDL_Window *sdlwindow = [self findSDLWindow];
|
||||
SDL_SendDropComplete(sdlwindow);
|
||||
}
|
||||
|
||||
- (NSDragOperation)draggingUpdated:(id<NSDraggingInfo>)sender
|
||||
{
|
||||
if (([sender draggingSourceOperationMask] & NSDragOperationGeneric) == NSDragOperationGeneric) {
|
||||
|
||||
Reference in New Issue
Block a user