[Scummvm-devel] Simplifying keyboard repeat
Marcus Comstedt
marcus at mc.pp.se
Sat May 13 02:47:24 CEST 2006
Torbjörn Andersson <eriktorbjorn at telia.com> writes:
> What I would like to know is how this would affect other backends. From
> what I understand, most of them are for platforms that do not even have
> a keyboard, so a virtual one is used instead. Does that one handle
> keyboard repeat at all? There's the X11 backend, of course, but I don't
> know how much work it would be to fix it. Probably not much.
The Dreamcast backend does not handle keyboard repeat on either the
physical or virtual keyboard. It generates a down event when you
press the key down (either the actual key, or the mouse/controller
button in case of the virtual keyboard), and an up event when you
release the key (or press a different one; I haven't implemented full
N-key rollover).
> Does anyone have any strong feelings for or against this? I assume there
> has to be *some* reason why we don't do this already.
My feeling is that key repeat ought to be handled by the middleware.
There is no more reason to make it backend specific than engine
specific.
// Marcus
More information about the Scummvm-devel
mailing list