Multi-touch bug Android (MIUI)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
azoyan
Prole
Posts: 25
Joined: Wed Dec 27, 2017 5:19 pm

Multi-touch bug Android (MIUI)

Post by azoyan »

Hi all! I have a problem.
If you touch and hold your finger on the screen. When the number of fingers is three, the touchrelease event will be called and the release count will be equal of two.
Code for test, main.lua:

Code: Select all

touchPresses  = 0
touchReleases = 0

function love.touchpressed(id, x, y, dx, dy, pressure)
  touchPresses = touchPresses + 1
end

function love.touchreleased(id, x, y, dx, dy, pressure)
  touchReleases = touchReleases + 1
end

function love.draw()
  love.graphics.print("PRESSED: " .. touchPresses .. " RELEASED: " .. touchReleases, 10, 300)
end
I record video. Touch-pressings areas is shown by the recording application. https://youtu.be/9XVIXXwzRc8?t=1s

My android smart-phone: Xiaomi Redmi Note 3 Pro
Last edited by azoyan on Thu Dec 28, 2017 12:29 am, edited 1 time in total.
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Multi-touch bug Android

Post by slime »

It looks like it's a problem with that phone's screenshot mode: http://en.miui.com/thread-532593-1-1.html
azoyan
Prole
Posts: 25
Joined: Wed Dec 27, 2017 5:19 pm

Re: Multi-touch bug Android

Post by azoyan »

slime wrote: Wed Dec 27, 2017 11:09 pm It looks like it's a problem with that phone's screenshot mode: http://en.miui.com/thread-532593-1-1.html
Maybe it is needed to report new issue in love2d?
Because, in other applications (no love2d) this bug is disappear: 3 touchpresses processed normal with enabled '3-finger slide screenshot feature'.
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Multi-touch bug Android (MIUI)

Post by slime »

As far as I know multitouch works fine with love on other Android phones. Maybe most other apps use multitouch in a manner that doesn't trigger the issue in that phone's software (for example if the other apps use high level OS gesture detection APIs instead of the lower level touch tracking that love exposes).

Does multitouch work fine for you in other non-love games on that phone?
azoyan
Prole
Posts: 25
Joined: Wed Dec 27, 2017 5:19 pm

Re: Multi-touch bug Android (MIUI)

Post by azoyan »

slime wrote: Thu Dec 28, 2017 3:35 amDoes multitouch work fine for you in other non-love games on that phone?
Quotha! Yea! In other games third touches is doesn't work too. In applications it's processing this correctly
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 34 guests