get mouse coords from touch if possible
Dependencies
- [2]
QRUFNFPPMerge text0 - [3]
2CTN2IEFMerge lines.love - [4]
JNJ4R56Xsupport running tests multiple times - [5]
UZHSWA3DMerge text0 - [6]
N4T2HHMVMerge text0 - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in app.lua at line 144
App.mouse_x = love.mouse.getXApp.mouse_y = love.mouse.getYlocal solo_touchX = function()local touches = love.touch.getTouches()if #touches ~= 1 then return endlocal x,y = love.touch.getPosition(touches[1])return xendApp.mouse_x = function() return love.mouse.getX() or solo_touchX() endlocal solo_touchY = function()local touches = love.touch.getTouches()if #touches ~= 1 then return endlocal x,y = love.touch.getPosition(touches[1])return yendApp.mouse_y = function() return love.mouse.getY() or solo_touchY() end