I’m still a newbie in JUCE.
I’m trying to capture multitouch events in my iPad:
Each finger I put on, generate a mouseDown. Ok.
But when I put off the fingers, only one mouseUp is generated (the first finger I put off).
Sorry for my bad English. I hope you understand what I mean …
Thank you very much in advance!
PD: Events are related to the component “OpenGLComponent”. I’m using the source version 1.54.12. The iOS version is 4.3.
Yes, but if there’s a problem, it’ll be in the UIViewComponentPeer::handleTouches method. I can’t debug it on my phone at the moment, so it’s tricky to work out, and I can’t see anything else wrong…
BTW, I was surprised that I hadn’t spotted this problem before, but of course that’s because I was testing the ability to drag different components at the same time… this will only be an issue when all the events are arriving in the same component.
I only just caught up with this thread. I’m suprised it didn’t show up earlier too as I seem to remember I was dragging around multiple components with separate fingers when the issues in http://www.rawmaterialsoftware.com/viewtopic.php?f=4&t=7067 showed up.
The code is very specific to my application.
Basically, I keep the fingers are pressed on a map whenever a mouseDown event occurs, and erase when a mouseUp event.
In the mouseDrag event check if are two fingers pressed, and if true, the distance between the actual event and the other in the map.
With this distance, calculate the zoom factor.
I could put the code, but there are many specific parts.
If you are still interested, I would …