love icon indicating copy to clipboard operation
love copied to clipboard

love.keyboard.isScancodeDown always returns true when window loses focus

Open R4V493 opened this issue 6 months ago • 4 comments

When a key is released while the window has not focus love.keyboard.isScancodeDown continues to return true unless the same key is pressed and released once more.

R4V493 avatar Jun 05 '25 10:06 R4V493

that's how OS' event pump works in general, neither LÖVE nor SDL can do anything about it really

a13X-B avatar Jun 05 '25 10:06 a13X-B

Which love version and operating system are you using? Does it happen with the latest love 12 build (via github actions)?

slime73 avatar Jun 05 '25 11:06 slime73

returns false for me on window focus lost, love 11.5 OS Name Microsoft Windows 11 Home Version 10.0.26100 Build 26100 video attached

https://github.com/user-attachments/assets/b2685f1e-0d33-4da1-a6dc-0c12b69d93f5

edit: I misinterpreted the problem, I tested releasing the key while window focus is lost, and it only updates when window focus is regained, as expected by OS event pumps (like keyboard presses)

BriellaBugs avatar Jul 22 '25 04:07 BriellaBugs

Sorry for the late reply. LÖVE 11.5 on Windows 10.

R4V493 avatar Jul 23 '25 16:07 R4V493