RenderWindow.setKeyRepeatEnabled

Enable or disable automatic key-repeat.

If key repeat is enabled, you will receive repeated KeyPressed events while keeping a key pressed. If it is disabled, you will only get a single event when the key is pressed.

Key repeat is enabled by default.

class RenderWindow
override
void
setKeyRepeatEnabled
(
bool enabled
)

Parameters

enabled bool

true to enable, false to disable

Meta