Difference between revisions of "love.touch.getTouches"
(Created page with "{{newin|0.10.0|100|type=function}} Gets a list of all active touch-presses. == Function == === Synopsis === <source lang="lua"> touches = love.touch.getTouches( ) </sourc...") |
m (Fix typo) |
||
Line 10: | Line 10: | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|table|touches| | + | {{param|table|touches|A list of active touch-press id values, which can be used with [[love.touch.getPosition]].}} |
== Notes == | == Notes == |
Latest revision as of 13:42, 6 August 2015
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Gets a list of all active touch-presses.
Function
Synopsis
touches = love.touch.getTouches( )
Arguments
None.
Returns
table touches
- A list of active touch-press id values, which can be used with love.touch.getPosition.
Notes
The id values are the same as those used as arguments to love.touchpressed, love.touchmoved, and love.touchreleased.
The id value of a specific touch-press is only guaranteed to be unique for the duration of that touch-press. As soon as love.touchreleased is called using that id, it may be reused for a new touch-press via love.touchpressed.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info