My Macbook Pro trackpad appears to detect on Löve exclusively as a mouse.
For example...
Code: Select all
function love.mousepressed(x, y, button, istouch, presses)
if istouch == true then print("Detected a touch via mousepressed") end
end
Code: Select all
function love.touchpressed(id, x, y, dx, dy, pressure)
print("Detected a touch via touchpressed")
end
Is there any way I can detect and make use of the trackpad?
I have tried love.touch.getTouches() and it doesn't detect anything.
Thanks!
(ps: I have checked that the touch module is enabled!)
(pps: I've using Zerobrane IDE if that's relevant, but I've confirmed it also doesn't work when packaged up as a .love file.)