New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quick keypresses and mouse clicks sometimes lost #174
Comments
Comment author: @bob-the-hamster
I have verified that this also happens with the gfx_alleg backend. So this bug |
Comment author: @pkmnfrk Hmm, I tried this out, by drawing a sprite. When I tapped the spacebar repeatedly (while moving), I got a line of dots Next, I tried tapping spacebar fast (stationary). I got a dot. I tried again, Next, I tried holding down the spacebar (moving again), and I got a line of Anyway, everything seemed fine to me. |
Comment author: msw188 Try making a diagonal line quickly (thus pressing space, a vertical arrow, and This definitely is a problem for me in game.exe for me as well, when picking PS: I am using Windows ME |
Comment author: @rversteegen Actually, this is a backend issue, the FB and Allegro functions used just do the Asm version is a interrupt hook and works like this: Key pressed since last update: 3 However, FB's multikey returns the current key state. FB does not appear to have On the other hand, allegro has so many different keyboard input functions that I |
Comment author: @bob-the-hamster
So does that mean this bug is not present in the allegro build? ... Actually, I |
Comment author: @rversteegen After lookiong into it, it seems that we would have to use However, we have a new problem: the mouse suffers the same problem! Mouse clicks So I see no solution for the FB backend but to create a thread which polls the |
Comment author: @rversteegen Timings proved that 55ms is too large a resolution to catch fast keypresses, |
Comment author: @bob-the-hamster I have tested TeeEmCee's new fixed both on an old-slow and a new-fast Windows |
Comment author: @bob-the-hamster This has been tested for a while, and is still holding up. |
[bz#174]
Quick keypresses are sometimes lost in the FreeBasic version. This occurs
everywhere in both game and custom, but in most places the effect is so minor
that you don't notice. The place where it is really a problem is in the sprite
editor in custom. Here keyboard drawing is almost unusable.
Verified with the fb2 backend, but I'm not sure if it also happens with the
alleg backend also.
From: @bob-the-hamster
Reported version: 20060315 Tirgoviste
Blocker for: bz#255
The text was updated successfully, but these errors were encountered: