Difference between revisions of "Keyboard"

From RogueBasin
Jump to navigation Jump to search
m
 
Line 2: Line 2:


There is no standardized way of keyboard control for roguelikes, but there are a few [[Preferred Key Controls|preferred controls]].
There is no standardized way of keyboard control for roguelikes, but there are a few [[Preferred Key Controls|preferred controls]].
Roguelikes generally model the keyboard to be in a similar repeating key mode as with entering text, where pressing down a key will cause one instant keypress event and then a series of repeated events in short succession after a longer initial delay. Good default delay times (taken from the SDL library) are 500 milliseconds between the first and second keypress events from the key held down, and 30 milliseconds between the subsequent repeated events while the key is held down.


[[Category:Concepts]]
[[Category:Concepts]]

Latest revision as of 10:01, 17 April 2014

Most roguelikes use the keyboard to receive input from the player. Even though mouse driven roguelikes have seen an increase in popularity, as the number of graphical roguelikes in a windowed environment has increased, the keyboard is still the dominating way of playing roguelikes.

There is no standardized way of keyboard control for roguelikes, but there are a few preferred controls.

Roguelikes generally model the keyboard to be in a similar repeating key mode as with entering text, where pressing down a key will cause one instant keypress event and then a series of repeated events in short succession after a longer initial delay. Good default delay times (taken from the SDL library) are 500 milliseconds between the first and second keypress events from the key held down, and 30 milliseconds between the subsequent repeated events while the key is held down.