libtcoddocumentation

2.4.3. Changing keyboard repeat delay

This function changes the keyboard repeat times.

static void TCODConsole::setKeyboardRepeat(int initialDelay, int interval)

void TCOD_console_set_keyboard_repeat(int initial_delay, int interval)

console_set_keyboard_repeat(initial_delay, interval)

static void TCODConsole::setKeyboardRepeat(int initialDelay, int interval)

tcod.console.setKeyboardRepeat(initialDelay, interval)

ParameterDescription
initialDelaydelay in millisecond between the time when a key is pressed, and keyboard repeat begins. If 0, keyboard repeat is disabled
intervalinterval in millisecond between keyboard repeat events

You can also disable the keyboard repeat feature with this function (it's equivalent to setKeyboardRepeat(0,0) ).

static void TCODConsole::disableKeyboardRepeat()

void TCOD_console_disable_keyboard_repeat()

console_disable_keyboard_repeat()

static void TCODConsole::disableKeyboardRepeat()

tcod.console.disableKeyboardRepeat()