summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.touch.lua
blob: 9c7f7e105b443cf7b18fc58846161be836a48d94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---@meta

-- version: nil
---@class love.touch
love.touch = {}

---
---Gets the current position of the specified touch-press, in pixels.
---
---@param id lightuserdata # The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values.
function love.touch.getPosition(id) end

---
---Gets the current pressure of the specified touch-press.
---
---@param id lightuserdata # The identifier of the touch-press. Use love.touch.getTouches, love.touchpressed, or love.touchmoved to obtain touch id values.
---@return number pressure # The pressure of the touch-press. Most touch screens aren't pressure sensitive, in which case the pressure will be 1.
function love.touch.getPressure(id) end

---
---Gets a list of all active touch-presses.
---
---@return table touches # A list of active touch-press id values, which can be used with love.touch.getPosition.
function love.touch.getTouches() end