monkeyswarm / MobMuPlat

MobMuPlat is an iOS & Android app to host PureData patches with custom visual interfaces and hardware access.
www.mobmuplat.com
Other
182 stars 25 forks source link

multitouch with negative values on iOS devices #94

Open lokkiikkol opened 1 year ago

lokkiikkol commented 1 year ago

the multitouch object on iOS devices (tested on different iPhones) outputs negative values when "creating" a touchpoint (finger in the pad-area) and then moving outside the area with the finger still depressed on the left or bottom. right side and top are correctly capped at 1, left and bottom go down to -1 if your screen is big enough (or the multitouch object small enough).

I think android does not exhibit this bug, but I haven't tested in a long time

monkeyswarm commented 1 year ago

I don't reproduce this behavior; can you elaborate?

I am running the 'MMPTutorial2' patch, with an example multitouch. I drag my finger out of the bounds of the rectangle, and the values are still positive. See attached, where I drag off the bottom.

Screenshot 2023-08-06 at 2 25 47 PM (1)

lokkiikkol commented 1 year ago

Maybe I am missing something, but on your screenshot I see negative values for the y position, no? It says -0.178 this number stays at zero on Android I think. Also going over the top it stays at 1...

On 6 Aug 2023, at 23:28, Daniel Iglesia @.***> wrote:

I don't reproduce this behavior; can you elaborate?

I am running the 'MMPTutorial2' patch, with an example multitouch. I drag my finger out of the bounds of the rectangle, and the values are still positive. See attached, where I drag off the bottom.

https://user-images.githubusercontent.com/1235083/258666573-82238c4f-9675-401c-aa32-7a25560abde1.png — Reply to this email directly, view it on GitHub https://github.com/monkeyswarm/MobMuPlat/issues/94#issuecomment-1666971655, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDSM37E2WKF5ZCCL2TO4BLXUAD6JANCNFSM6AAAAAA3FOYLBU. You are receiving this because you authored the thread.