Is it possible?
To overcome it I had used this on Windows:
static void SDL_EnableKeyRepeatWin (void) {
int delay, speed;
SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, &delay, 0);
SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, &speed, 0);
//actual values on windows vary depending on hardware
//WINAPI: "0 (approximately 250 ms delay) through 3 (approximately 1
second delay)"
delay = 250 + delay * 250;
//WINAPI: "0 (approximately 2.5 repetitions per second)[400ms]
through 31 (approximately 30 repetitions per second)[33ms]"
speed = 400 - speed * 12;
SDL_EnableKeyRepeat(delay, speed);
}
(“400 - speed * 12;” may need more accuracy)
so no plans to support keyboard OS settings or similar input configs?On Wed, Mar 17, 2010 at 2:38 PM, Michael Menegakis <@Michael_Menegakis> wrote:
Is it possible?
To overcome it I had used this on Windows:
static void SDL_EnableKeyRepeatWin (void) {
? ? ? int delay, speed;
? ? ? SystemParametersInfo(SPI_GETKEYBOARDDELAY, 0, &delay, 0);
? ? ? SystemParametersInfo(SPI_GETKEYBOARDSPEED, 0, &speed, 0);
? ? ? //actual values on windows vary depending on hardware
? ? ? //WINAPI: “0 (approximately 250 ms delay) through 3 (approximately 1
second delay)”
? ? ? delay = 250 + delay * 250;
? ? ? //WINAPI: “0 (approximately 2.5 repetitions per second)[400ms]
through 31 (approximately 30 repetitions per second)[33ms]”
? ? ? speed = 400 - speed * 12;
? ? ? SDL_EnableKeyRepeat(delay, speed);
}
(“400 - speed * 12;” may need more accuracy)