Request: Add x and y params to filedropped() and directorydropped() event callbacks #2019
Labels
feature
New feature or request
library dependency
Related to a library used by LÖVE
SDL3
Features and changes that depend on upgrading from SDL2 to SDL3
filedropped(file) => filedropped(file, x, y)
directorydropped(path) => directorydropped(path, x, y)
In most cases the correct coords can be obtained using mouse.getPosition() inside those two callbacks but not always. Consider the case where the Love2D application has halted because it's waiting for a file dialog to close. If you drag a file or directory from the file dialog onto the halted application window and then close the file dialog, the application has no way of knowing the actual coords of the drop because the mouse has possibly moved between the time of the drop and the closing of the dialog. Adding x and y params to those callbacks will allow the programmer to always know the exact location of the drop.
The text was updated successfully, but these errors were encountered: