[SDL] KeyRepeat fix

Jon Daniel forcemaster at gmx.net
Sun Jan 2 10:37:57 PST 2005


On Sun, 2 Jan 2005 19:22:54 +0100, David Olofson wrote:
> Actually, one might want to go one step further: If key 'A' is 
> repeating, one should be able to press 'B' until it starts repeating, 
> and when 'B' is released, 'A' should start repeating again. That 
> requires a great deal of extra logic, though, and if you really need 
> that kind of behavior, you should probably implement your own repeat 
> logic anyway. (I would like it if text editors did that with the 
> cursor keys, though...)

I thought about a fully customizable KeyRepeat implementation too.
You could turn on/off repeat for every single key and individually
adjust delay and interval. You would be able to create an optional
autofire button with adjustable fire rate easily.

Jon Daniel




More information about the SDL mailing list