Bug 225717 - multiple keys pressed (like up+left) simultaneously has not desired effect
Summary: multiple keys pressed (like up+left) simultaneously has not desired effect
Status: CONFIRMED
Alias: None
Product: Granatier
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Mathias Kraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 13:41 UTC by H.H.
Modified: 2020-11-02 21:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.H. 2010-02-06 13:41:00 UTC
Version:           0.9.0 (using 4.3.98 (KDE 4.3.98 (KDE 4.4 RC3)) "release 216", KDE:KDE4:Factory:Desktop / openSUSE_11.2)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.31.5-0.1-desktop

to reproduce:

You are in following situation:

  #
  #
  ####
  
  ####
O #
  #
  #

you (O) want to move up and then turn right. So while I move up I press additionally the right-arrow-key, so the player should try to go right, as soon as possible. This is standard behaviour in most such games.

In granatier the player continues to move up.
Comment 1 Mathias Kraus 2010-08-07 11:58:23 UTC
sorry for the long delay, I messed up with the email preferences from bugs.kde.org and didn't get an email for this report.

to your question. I already tried what you suggested but it was error prone, because it's not easy to get the state of a key, only the press and release events. therefore, if the game is paused and then the keys are released, I don't have the right states.
I will try to find a solution, but at the moment there are other more important things to do, like an arena editor.
Comment 2 Andrew Crouthamel 2018-11-11 04:32:11 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:33:12 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Thiago Sueto 2020-11-02 21:12:40 UTC
I can actually confirm this one.
As Mathias mentioned, only the latest press and release events seem to be grabbed. So there's no actual simultaneous press: if you hold left and then up, it heads up, and if you hold up and then left, it heads left.

It is true that games with top-down perspective (like Zelda, Bomberman, Pacman) often allow for a sort of diagonal walk-by:
If walking to right and you bump into a wall, simultaneously pressing right and up will move you up along the wall and enter the first crevice/opening you find to the right. This is true even in games that don't allow for diagonal movement.