[Scummvm-devel] Simplifying keyboard repeat

David Given dg at cowlark.com
Tue May 16 11:47:06 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcus Comstedt wrote:
[...]
> That's because I haven't implemented Ctrl-a or key-repeat in the DC
> backend as I think it should be part of the platform independent
> code.

Small point of information: some platforms are exceptionally unfriendly when
it comes to key repeat. X, for example. When you hold down a key on X, what
you get is DOWN (long pause), UP, DOWN (short pause), UP, DOWN (short
pause)... which means that any code which *doesn't* want to be notified of key
repeats is basically screwed. You end up having to do trickery with the event
timestamps to try and remove the extraneous UP events. I don't know if any
other platforms do this, but this one's bitten me in my real life job.

- --
+- David Given --McQ-+ "Gaping from its single obling socket was
|  dg at cowlark.com    | scintillating, many fauceted scarlet emerald..."
| (dg at tao-group.com) | --- Jim Theis, _The Eye of Argon_ (spelling
+- www.cowlark.com --+ original)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEah3jf9E0noFvlzgRArs0AKC0qGEKSJz/ziJzdkBuJFomgI7RawCgoSPj
zWCJ2AZZor8I6ZjByB4cZTI=
=TMxT
-----END PGP SIGNATURE-----




More information about the Scummvm-devel mailing list