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

(Created page with "Returns the delay and interval of key repeating. 返回持续按键的时间延迟和时间间隔 == Function == === Synopsis === <source lang="lua"> 看到了没 使用两个变...")
 
Line 1: Line 1:
 
Returns the delay and interval of key repeating.
 
Returns the delay and interval of key repeating.
 
返回持续按键的时间延迟和时间间隔
 
返回持续按键的时间延迟和时间间隔
== Function ==
+
== Function |功能==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 11: Line 11:
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
=== Returns ===
+
=== Returns |返回值===
{{param|number|delay|The amount of time before repeating the key (in milliseconds)}}
+
{{param|number|delay|The amount of time before repeating the key (in milliseconds)重复按键前的时间延迟(以毫秒为单位)}}
{{param|number|interval|The amount of time between repeats (in milliseconds)}}
+
{{param|number|interval|The amount of time between repeats (in milliseconds)重复按键之间的时间间隔(以毫秒为单位)}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.keyboard]]
 
* [[parent::love.keyboard]]

Revision as of 12:03, 6 April 2012

Returns the delay and interval of key repeating. 返回持续按键的时间延迟和时间间隔

Function |功能

Synopsis

看到了没
使用两个变量去接收这个函数
          
delay, interval = love.keyboard.getKeyRepeat( )

Arguments

None.

Returns |返回值

number delay
The amount of time before repeating the key (in milliseconds)重复按键前的时间延迟(以毫秒为单位)
number interval
The amount of time between repeats (in milliseconds)重复按键之间的时间间隔(以毫秒为单位)

See Also


Other Languages