You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release CMD and see the problem demonstrated in the console.
Expected behavior (REQUIRED)
When you release CMD, you should get a single line of output indicating on_input is called once with action.released set to true.
You should never get an event delivered with action.pressed set to true.
Actual behavior
When the key is released on_input gets a pressed event and never gets a released event.
Note: Currently due to #8895 after getting the pressed event, you currently get another event delivered every frame after you release the key, this event has neither pressed, repeated, or released set to true. However that is a separate bug, the issue here is that you never get a released event.
Defold version (REQUIRED):
1.8.0
Platforms (REQUIRED):
OS: macOS Sonoma 14.4.1
Device: Mac
Minimal repro case project (OPTIONAL): cmd_bug.zip
Additional context (OPTIONAL):
Note: It is understood and expected that the pressed event should never be delivered, because the key was depressed before the app opened and therefore before the script acquired focus. The expectation is to get only one released event, but it would also be acceptable if the whole press/release cycle was dropped.
Expected: get the released event only (no pressed because it happened before focus)
Acceptable: get pressed event then released event
Acceptable: (no events delivered for key-presses initiated before focus)
Bug: get pressed event but never get released
The text was updated successfully, but these errors were encountered:
Describe the bug (REQUIRED)
When you run your game from the editor with CMD+B with
LSuper
bound, the engine thinks the cmd key is held after it is released.To Reproduce (REQUIRED)
LSuper
as the key andcmd
as the action.B
key to build and run the project.Expected behavior (REQUIRED)
on_input
is called once withaction.released
set to true.action.pressed
set to true.Actual behavior
When the key is released
on_input
gets apressed
event and never gets areleased
event.Note: Currently due to #8895 after getting the
pressed
event, you currently get another event delivered every frame after you release the key, this event has neither pressed, repeated, or released set to true. However that is a separate bug, the issue here is that you never get areleased
event.Defold version (REQUIRED):
Platforms (REQUIRED):
Minimal repro case project (OPTIONAL):
cmd_bug.zip
Additional context (OPTIONAL):
Note: It is understood and expected that the
pressed
event should never be delivered, because the key was depressed before the app opened and therefore before the script acquired focus. The expectation is to get only onereleased
event, but it would also be acceptable if the whole press/release cycle was dropped.released
event only (nopressed
because it happened before focus)pressed
event thenreleased
eventpressed
event but never getreleased
The text was updated successfully, but these errors were encountered: