Difference between revisions of "love.keyboard"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Provides an interface to the user's keyboard.
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::love.keyboard]]
 
{{#ask: [[Category:Functions]] [[parent::love.keyboard]]
Line 12: Line 12:
 
}}
 
}}
 
[[Category:Modules]]
 
[[Category:Modules]]
{{#set:Description=}}
+
{{#set:Description=Provides an interface to the user's keyboard.}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]

Revision as of 16:17, 14 February 2010

Provides an interface to the user's keyboard.

Functions

love.keyboard.getKeyFromScancodeGets the key corresponding to the given hardware scancode.
love.keyboard.getKeyRepeatReturns the delay and interval of key repeating.
love.keyboard.getScancodeFromKeyGets the hardware scancode corresponding to the given key.
love.keyboard.hasKeyRepeatGets whether key repeat is enabled.
love.keyboard.hasScreenKeyboardGets whether screen keyboard is supported.
love.keyboard.hasTextInputGets whether text input events are enabled.
love.keyboard.isDownChecks whether a certain key is down.
love.keyboard.isModifierActiveChecks whether a modifier key is active.
love.keyboard.isScancodeDownChecks whether the specified Scancodes are pressed.
love.keyboard.setKeyRepeatEnables or disables key repeat for love.keypressed.
love.keyboard.setTextInputEnables or disables text input events.

Enums

KeyConstantAll the keys you can press.
ModifierKeyModifier keys.
ScancodeKeyboard scancodes.

See Also