[gameprogrammer] Re: Key Repeat problem
- From: David Olofson <david@xxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 20 Jan 2006 15:31:09 +0100
On Friday 20 January 2006 15:23, David Olsen wrote:
> Sorry if this is a dumb question, since I'm not familiar with linux,
> but is the behavior consistent regardless of any settings you try
> with SDL_EnableKeyRepeat(delay,rate)? have you tried a 0 for delay,
[...]
I don't think the OP is using SDL.
Either way, SDL seems to be concistent WRT keyboard repeat, and I
haven't had any problems with it so far on any platform I've used.
(Linux/x86, Linux/AMD64, Win32/x86, Mac OS X/PPC.)
Also, SDL actually bypasses the hardware/OS keyboard repeat. What
SDL_EnableKeyRepeat() activates (keyboard repeat is disabled by
default) is an internal implementation that is concistent across
platforms, and gives much more accurate control of the timing. (ms
resolution, no practical limitations - very different using the
keyboard MCU repeat logic, that is.)
//David Olofson - Programmer, Composer, Open Source Advocate
.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
'-- http://www.reologica.se - Rheology instrumentation --'
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Key Repeat problem
- From: Stephen Smith
- [gameprogrammer] Re: Key Repeat problem
- From: Stephen Smith
- [gameprogrammer] Re: Key Repeat problem
- From: David Olsen
Other related posts:
- » [gameprogrammer] Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- » [gameprogrammer] Re: Key Repeat problem
- [gameprogrammer] Key Repeat problem
- From: Stephen Smith
- [gameprogrammer] Re: Key Repeat problem
- From: Stephen Smith
- [gameprogrammer] Re: Key Repeat problem
- From: David Olsen