love.keyboard

Provides an interface to the user's keyboard.

Functions

love.keyboard.getKeyFromScancode Gets the key corresponding to the given hardware scancode. 0.9.2
love.keyboard.getKeyRepeat Returns the delay and interval of key repeating. 0.9.0
love.keyboard.getScancodeFromKey Gets the hardware scancode corresponding to the given key. 0.9.2
love.keyboard.hasKeyRepeat Gets whether key repeat is enabled. 0.9.0
love.keyboard.hasTextInput Gets whether text input events are enabled. 0.9.0
love.keyboard.isDown Checks whether a certain key is down.
love.keyboard.isScancodeDown Checks whether the specified Scancodes are pressed. 0.10.0
love.keyboard.setKeyRepeat Enables or disables key repeat for love.keypressed.
love.keyboard.setTextInput Enables or disables text input events. 0.9.0

Enums

KeyConstant All the keys you can press.
Scancode Keyboard scancodes. 0.9.2

See Also


love.keyboard.hasTextInput

love.keyboard.hasTextInput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether

2017-03-21 15:49:08
love.keyboard.getScancodeFromKey

love.keyboard.getScancodeFromKey Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the hardware scancode corresponding

2017-03-21 15:49:07
love.keyboard.getKeyRepeat

love.keyboard.getKeyRepeat Removed in LÖVE 0.9.0 This function is not supported in that and later versions. Returns the delay and interval of

2017-03-21 15:49:06
love.keyboard.isScancodeDown

love.keyboard.isScancodeDown Available since LÖVE 0.10.0 This function is not supported in earlier versions. Checks whether the specified

2017-03-21 15:49:10
love.keyboard.isDown

love.keyboard.isDown Checks whether a certain key is down. Not to be confused with love

2017-03-21 15:49:10
love.keyboard.hasKeyRepeat

love.keyboard.hasKeyRepeat Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets whether key repeat is enabled

2017-03-21 15:49:08
love.keyboard.getKeyFromScancode

love.keyboard.getKeyFromScancode Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the key corresponding to

2017-03-21 15:49:05
love.keyboard.setTextInput

love.keyboard.setTextInput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Enables or disables

2017-03-21 15:49:12
love.keyboard.setKeyRepeat

love.keyboard.setKeyRepeat Enables or disables key repeat for love.keypressed

2017-03-21 15:49:11