Difference between revisions of "love.keyboard (简体中文)"

(Parent correction.)
(Enums)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Provides an interface to the user's keyboard.
 
 
向用户提供了一个键盘功能接口
 
向用户提供了一个键盘功能接口
  
  
== Functions |功能们 ==
+
== 函数列表 ==
 
{{#ask: [[Category:Functions]] [[parent::love.keyboard]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[parent::love.keyboard]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
== Enums ==
+
 
 +
== 枚举 ==
 
{{#ask: [[Category:Enums]] [[parent::love.keyboard]] [[Concept:Current]]
 
{{#ask: [[Category:Enums]] [[parent::love.keyboard]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::love (简体中文)]]
 
* [[parent::love (简体中文)]]

Latest revision as of 13:06, 7 June 2018

向用户提供了一个键盘功能接口


函数列表

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.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.

枚举

KeyConstantAll the keys you can press.
ScancodeKeyboard scancodes.

See Also


Other Languages |其他语言