Issue #1341 new
created an issue

I think it would be nice if there was a function which returned whether the user is dragging a file/directory over the window but hasn't released the mouse button yet, so a "drop file here!" message could display or something.

Briefly looking at the SDL docs, I guess this would mean setting some internal value when SDL_DROPBEGIN and SDL_DROPFILE happen (if those events do what I assume they do).

Comments (2)

  1. Gabe Stilez

    I'm kinda thinking this is OS-dependent; in windows, i'm not sure if the löve window can actually detect when the cursor is over it.

    I might be wrong though; no idea how (or when) DROPBEGIN is detected.

  2. Bart van Strien

    Looking at the docs, it kind of suggests DROPBEGIN and DROPCOMPLETE are a grouping mechanism. So if two files are dropped, you'd get DROPBEGIN, DROPFILE, DROPFILE and DROPCOMPLETE.

  3. Log in to comment