Using 2 MouseAreas not overlapped, at the same time
I'm working on a small game, where I have one MouseArea at bottom right and another at the bottom left, they dont overlap. One moves a spaceship when pressing and moving, the other fires a shots when pressed.
The problem is fires dont get shot if the spaceship is being moved, it seems the mouseareas dont work at same. I didnt find anything at the docs about using 2 mouseareas at the same time, only when they are overlapped, wich is not the case.
Any ideias to solve this ?
Can you post your example code. It will help to find a solution.
They don't have to overlap. It should work fine. Sample code on how you defined the MouseArea will help. Looks like at some point of time mouse Areas are overlapped. This must be causing the issue for you.
Thanks for your replays. Here is a sample code projetc it will run out of the box in QtCreator with a android kit.
CommandTouchPad.qml is the left MouseArea that moves the spaceship. Button.qml is the right mousearea that fires the shots.
I think you should use multi point touch area to handle multiple touch events at the same time.