Key repeat

Shouldn’t there be key-repeat logic at both points? Not all
SDL-supported platforms have key-repeat, do they? But that doesn’t
mean developers using SDL don’t want the key repeat behavior to be the
same across all platforms. For any platform that doesn’t provide its
own key repeat facility, you would have to add key repeat logic to
SDL’s keyboard driver for that platform. Seems to me like it would be
more work to duplicate artificial key repeat logic in every driver
rather than provide a back-up key repeat system “above” the keyboard
driver layer.On Sun, Jan 4, 2009 at 12:00 PM, Sam Lantinga wrote:

First off, is there a way to disable key repeat? The only way seems to
be SDL_EnableKeyRepeat in SDL_compat.h and from looking at the code it
doesn’t actually do anything.

No, this is still on the TODO list. The key repeat logic needs to be
moved to the SDL driver level, and hasn’t been implemented yet.


http://codebad.com/

Shouldn’t there be key-repeat logic at both points?

In theory. I started to implement that a while back, and since the key
press/release events and the text input events are decoupled, the generation
of repeated text input events needs to happen inside the driver.

An interesting thing to note is that key repeat behavior with different
combinations of modifier keys and input method editors is completely
non-standard and varies depending on OS and software.

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

What do you mean by "input method editors?"On Sun, Jan 4, 2009 at 2:02 PM, Sam Lantinga wrote:

An interesting thing to note is that key repeat behavior with different
combinations of modifier keys and input method editors is completely
non-standard and varies depending on OS and software.


http://codebad.com/

Special routines that are used to generate characters from multiple keystrokes. They’re used commonly for typing in Asian languages.>----- Original Message ----

From: Donny Viszneki <donny.viszneki at gmail.com>
Subject: Re: [SDL] key repeat

On Sun, Jan 4, 2009 at 2:02 PM, Sam Lantinga wrote:

An interesting thing to note is that key repeat behavior with different
combinations of modifier keys and input method editors is completely
non-standard and varies depending on OS and software.

What do you mean by “input method editors?”

An interesting thing to note is that key repeat behavior with different
combinations of modifier keys and input method editors is completely
non-standard and varies depending on OS and software.

Special routines that are used to generate characters from
multiple keystrokes. They’re used commonly for typing
in Asian languages.

Ah, I do remember discovering this issue. The only way I came up with
to reconcile these issues was the idea to invent two separate input
modes, one of them being for “typing” and would be geared toward
providing user interaction semantics consistent with the user’s
platform, the other input mode seeking consistency between platforms.
Not a highly favorable solution, to say the least!>>On Sun, Jan 4, 2009 at 2:02 PM, Sam Lantinga wrote:
On Sun, Jan 4, 2009 at 10:42 PM, Mason Wheeler wrote:


http://codebad.com/