[SDL] SDL 1.3 and key repeating

Pavel Kanzelsberger kanzels at gmail.com
Fri Apr 16 04:49:59 PDT 2010


Hi,

that's a good idea if you leave it for operating system, because they  
usually have repeat settings defined by user and it should have same  
behaviour as in other apps.

So should I wait for keyrepeat working soon or do I need to implement  
it myself using timers?

Pavel

On 16.4.2010, at 7:34, Sam Lantinga wrote:

> Key repeat is still under evaluation, since it's a case that sort of
> breaks the abstraction between key presses and text input events.
>
> Do people have an opinion on whether key repeat should repeat keys or
> repeat text?
>
> On Wed, Apr 14, 2010 at 7:26 AM, Pavel Kanzelsberger <kanzels at gmail.com 
> > wrote:
>> Hello guys,
>> I see that SDL_EnableKeyRepeat seems to be deprecated in SDL 1.3,  
>> since I
>> can find it only in compatibility layer in SDL_compat.h
>> Ok anyway it seems to work for TextInput events, but for some other  
>> keys
>> that won't push TextInput event but rather KeyboardEvent are  
>> ignoring the
>> repeat settings. For example if I hold "A" on my keyboard it starts
>> repeating, but if I hold Left Arrow, it won't.
>> Should I forget this function at all since it might get deleted  
>> from SDL 2
>> and I need to implement it myself repeating events until key was  
>> released?
>> thanks
>> ---
>> Pavel Kanzelsberger
>> http://www.kanzelsberger.com
>> E-Mail: pavel at kanzelsberger.com
>> Jabber: kanzelsberger at jabber.org, ICQ: 20990633
>>
>>
>> _______________________________________________
>> SDL mailing list
>> SDL at lists.libsdl.org
>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>>
>>
>
>
>
> -- 
> 	-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

---
Pavel Kanzelsberger
http://www.kanzelsberger.com
E-Mail: pavel at kanzelsberger.com
Jabber: kanzelsberger at jabber.org, ICQ: 20990633





More information about the SDL mailing list