arrow keys stick under xmonad

Bug #794066 reported by Brent Yorgey on 2011-06-07
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Nikki and the Robots

Bug Description

With version 0.3 "Edward", often the arrow keys will "stick" so that Nikki keeps walking in a certain direction even though I am not holding any keys. The only way to get Nikki to stop is to press and release the arrow key in the direction she is walking -- suggesting that perhaps somehow the original key-up event for the arrow key was missed?

I'm running arch linux on x86-64. It's probably relevant that I am using xmonad (the latest darcs version); but as far as I know xmonad does not have any bugs where it sometimes fails to pass on key events to windows. If it would be helpful I can provide my xmonad configuration; I could also try running under a default xmonad configuration to see whether I have any xmonad extensions that affect the bug.

shahn (shahn) wrote :

Yay, another xmonad user!

I could imagine, that Nikki looses focus for a short period of time , and this is, when key events get dropped. Something similar can be reproduced like this:

1. push down an arrow key
2. change to another window
3. release the arrow key
4. change back to the game

The game will behave like the arrow key was never released.

Solution: We could empty the set of held keys, when the game window looses focus.

Thanks for reporting.

When saying "Nikki looses focus" I am referring to the game window. Nikki never looses focus due to superior ninja powers.

Changed in nikki:
importance: Undecided → High
assignee: nobody → shahn (shahn)
shahn (shahn) wrote :

Hmm, I couldn't reproduce exactly the described behavior. But I found out, that auto-repetition was turned on (just for arrow keys) during gameplay. I changed that, and hopefully this fixes the bug. Will be in 0.3.2.

Changed in nikki:
status: New → Fix Committed
status: Fix Committed → Triaged
Brent Yorgey (byorgey-a) wrote :

I can confirm that the problem goes away if I change the settings so that I use other keys besides the arrow keys to move Nikki. So hopefully this indeed fixes the bug. I will give it another try with the arrow keys when 0.3.2 is released.

shahn (shahn) wrote :

@Brent: Could you test on your setup, if this is resolved in 0.3.3? That would be great.

Brent Yorgey (byorgey-a) wrote :

Sadly the arrow keys still stick for me in 0.3.3. However if I change the controls to use keys like I,J,K,L for movement they do not stick. So it seems to be something particular about the arrow keys. Please let me know if there's anything I can do to help track this down, I realize it is probably something peculiar about my setup.

Joachim Breitner (nomeata) wrote :

I have also observed this, also using xmonad.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers