Difference between revisions of "love.keyboard.getKeyRepeat"

m (Added oldin)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{oldin|[[0.9.0]]|090|type=function}}
 
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">
delay, Interval = love.keyboard.getKeyRepeat( )
+
delay, interval = love.keyboard.getKeyRepeat( )
 
</source>
 
</source>
 
=== 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 seconds)}}
{{param|number|Interval|The amount of time between repeats (in milliseconds)}}
+
{{param|number|interval|The amount of time between repeats (in seconds)}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.keyboard]]
 
* [[parent::love.keyboard]]

Latest revision as of 21:53, 25 August 2013

Removed in LÖVE 0.9.0
This function is not supported in that and later versions.

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 seconds)
number interval
The amount of time between repeats (in seconds)

See Also


Other Languages