meonwax / gdash

A Boulder Dash clone, intended to be as close to the original as possible. Fork of https://bitbucket.org/czirkoszoltan/gdash
Other
7 stars 7 forks source link

Game misses keypresses #3

Open szymor opened 1 month ago

szymor commented 1 month ago

As I mentioned, the game misses keypresses. It does not matter if it is in the main menu or during gameplay - you sometimes need to press keys multiple times to move the character or perform any action.

As I am a developer, I confirmed that the game properly receives all key-related events, it simply does not propagate this information further in some scenarios, i.e. when you press a key fast enough, a KEYUP event will come before any action is processed by the engine. The processing is done in timer_event method in idle time, i.e. when the game does not process events.

revvv commented 1 month ago

Which OS? Which engine? (GTK+, SDL, OpenGL) During gameplay this might be the intended behavior. Tries to mimic the original feeling. You could also try my fork.

szymor commented 1 month ago

GNU Linux kernel 6.10.2 x86_64, each engine - I tried all of them.

Not sure if it is inteded behaviour, but controls implemented this way seem clumsy.