fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Multi-touch does not seem to work. #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Make a Button class, to catch the Pointer event :

public class Button implements Pointer.Listener {

  public void initLayer(Image defaultImage) {
    layer = parent.createImageLayer(this.defaultImage);
    layer.addListener(this);
  }

...

2. Instanciate 2 buttons and log the PointerStart/End/Drag events

3. Touch first button and keep the finger on it

4. Touch the second button

What is the expected output? What do you see instead?

-> We should see the logs for the second button too.

What version of the product are you using? On what operating system?

-> playn : "commit 595fc75b46b248eea3995ce99f9c0813a531ab43"
-> mobile : Nexus S
-> android : 2.3

Please provide any additional information below.

-> According some web pages, multi-touch events are "catchable" directly from 
the Android SDK, with the getX(<n>) method. So, I think this is a playn issue.

Original issue reported on code.google.com by david.co...@gmail.com on 15 May 2012 at 11:51

GoogleCodeExporter commented 9 years ago
You will have to use Touch instead of Pointer to capture Multitouch events as 
Pointer is an abstraction for either a mouse or a simple Touch.
I would not regard this a defect.
Think this is your question & answer:
http://stackoverflow.com/questions/10571523/playn-and-multitouch

Original comment by domen...@gmail.com on 8 Oct 2012 at 9:06