Issue #1341 new

love.window.isDropping

hahawoo
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 (1)

  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. Log in to comment