View Issue Details

IDProjectCategoryView StatusLast Update
0006372Dwarf FortressTechnical -- Input/Keybinding/Macrospublic2013-09-13 07:55
Reportertsoet Assigned Touser1294 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
OSwindows 7OS Version64bit 
Product Version0.34.11 
Summary0006372: key_hold_ms ignored
DescriptionIn init.txt, key_repeat_ms and the repeat_accel variables are correctly used. However, key_hold_ms is ignored. Instead, the value for key_repeat_ms is used for the first repeat.

Steps To ReproduceSet key_hold_ms to a large number (1000)
Set key_repeat_ms to a small number (25)
Start game.
Hold key in main menu (or any other menu or text field or map scroll). Observe no 1000ms delay before keystroke is repeated.

Reverse small and large settings for hold and repeat; observe large delay for first and all repeats.
Additional InformationNo special keyboard drivers.
TagsNo tags attached.

Activities

Quietust

2013-09-11 06:04

reporter   ~0024108

Last edited: 2013-09-11 06:04

Keybindings have two different repeat modes - "delayed" (REPEAT_SLOW) and "immediate" (REPEAT_FAST), and only "delayed" repeat makes use of the KEY_HOLD_MS setting.

The arrow keys use "immediate" key repeat mode, which is why you aren't seeing the delay - if you try using PgUp/PgDn (which use delayed mode), you should see KEY_HOLD_MS being respected properly.

Not a bug.

user1294

2013-09-13 07:55

  ~0024111

Thanks, Quietust.

Issue History

Date Modified Username Field Change
2013-09-09 10:44 tsoet New Issue
2013-09-11 06:04 Quietust Note Added: 0024108
2013-09-11 06:04 Quietust Note Edited: 0024108
2013-09-13 07:55 user1294 Note Added: 0024111
2013-09-13 07:55 user1294 Status new => resolved
2013-09-13 07:55 user1294 Resolution open => no change required
2013-09-13 07:55 user1294 Assigned To => user1294