View Issue Details

IDProjectCategoryView StatusLast Update
0010062Dwarf FortressInit Optionspublic2016-11-02 22:25
ReporterAelius51 Assigned Tolethosor  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Summary0010062: Init Editor: KEY_HOLD_MS does nothing and KEY_REPEAT_MS controls both variables
DescriptionNear the bottom of the Init Editor, there are two entries along with their descriptions:

"This controls the number of milliseconds that must pass before a held key sends an initial repeat press to the game. You might need to adjust this.
[KEY_HOLD_MS:x]

This controls the number of milliseconds that must pass before a held key sends a repeat press to the game after the repeat process has begun.
[KEY_REPEAT_MS:x]"

(Where a numerical value, in milliseconds, takes the place of the "x"s, obviously)

To paraphrase the descriptions: the first variable supposedly controls how long a key must be held down before it STARTS repeating; the second variable supposedly controls HOW RAPIDLY a held-down key will repeat itself once it starts to repeat.

The problem is that the latter variable controls BOTH behaviours, and the former variable seemingly does nothing whatsoever.
Steps To ReproduceStep 1) Change the first variable to 999 and change the second variable to 50.

If it works as the description says, then it should take one second to start repeating and then it should rapidly repeat. Right? Well, let's see:

Step 2) Save the changes in the Init Editor and start up DF. Now hold your UP or DOWN arrow keys in the main menu.

The result is that it nearly instantly starts repeating and very rapidly keeps repeating.

To further prove it, swap the values:

Change the first variable to 50 and change the second variable to 999. If it works as the description says, then it should nearly instantly start repeating but only continue repeating in one-second intervals. Right? The actual result is that it takes one second to start repeating and it keeps repeating in one-second intervals.
Additional InformationThe observed behaviour in both tests strongly suggests that the second variable is the one that controls BOTH functions and that the first variable does nothing whatsoever.
TagsNo tags attached.

Activities

lethosor

2016-11-02 22:25

manager   ~0036025

This is because those keys are set to repeat immediately. You can change that in Esc > Keybindings > General > Move selector up/down. KEY_HOLD_MS only applies to "delayed repeat" keys.

Issue History

Date Modified Username Field Change
2016-11-02 17:57 Aelius51 New Issue
2016-11-02 22:25 lethosor Note Added: 0036025
2016-11-02 22:25 lethosor Status new => resolved
2016-11-02 22:25 lethosor Resolution open => no change required
2016-11-02 22:25 lethosor Assigned To => lethosor