Hi Everyone,
is there a way to deactivate the touch-screen via LÖVE (on an android phone) completely and just get the
Input from a connected usb-mouse? - or just ignore touch input?
for the latter I tried:
https://love2d.org/wiki/love.mousepressed
- set the Boolean 'istouch' to false, but then it ignores both: my input via touch and via mouse
maybe, I guess, it's a bit more complicated?
kai
Input on Android Phone (Touch vs USB-Mouse)
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Input on Android Phone (Touch vs USB-Mouse)
Just use mousepressed. isTouch isn't a boolean you should set; it tells you if the mousepress was originated by a touch or an actual mouseclick; thus, something like "if isTouch then return end" at the top of your mousepressed would make it ignore touches without ignorin clicks.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: Input on Android Phone (Touch vs USB-Mouse)
Also, that's a callback, meaning you only define that function, not call it yourself.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 10 guests