korlibs / korlibs/korge

LEFT_ALT is triggered with delay every second press

Open
#982 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

It is funny but on my hardware alt is not being triggered immediately every second press.
```kotlin
if (Key.values().any { keys[it] }) println("pressed: ${Key.values().filter { keys[it] }}")
```
I.e. if I press alt for the first time, I see `pressed: LEFT_ALT` in console. If I wait any time (tried with 1 secs, 5 secs) and press it again, I won't see the log text immediately. But after like 1 second of pressing it will appear. It happens every second press, which is funny.

Maybe worth to mention that I have two alts and both of them are registered as `LEFT_ALT`.

**Hardware:** asus zephyrus g14
**Java version:** azul openjdk 15.0.6
**korgePluginVersion**: 3.0.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Run the Kotlin key-state logging snippet on the reported Asus Zephyrus G14 with Korge 3.0.1 and confirm the delayed second LEFT_ALT press. Then trace the keyboard input handling from the reported LEFT_ALT state and compare successive presses; done means both registered Alt keys are reported immediately and consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.