GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

PCanvas button handling code doesn't dispatch multi-button presses. #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add a basic input event listener to a Layer and register it to receive
mousePressed events
2. press mouse 1 and mouse 2 simultanously

What is the expected output? What do you see instead?
mousePressed should be called when two or more buttons are pressed
simultaneously, but instead the event is buried

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

Please provide any additional information below.
Although this is a pretty strange feature request, for my particular
application, I'm trying to interpret LEFT + RIGHT mouse putton as a grab. 
Also, when I'm using a Wacom stylus and working quickly, pressing the
button on its side and pressing the stylus to the surface occasionaly does
nothing given this behaviour.

Original issue reported on code.google.com by allain.lalonde on 14 Apr 2009 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 15 May 2009 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by heue...@gmail.com on 15 May 2009 at 6:37

GoogleCodeExporter commented 9 years ago
I've confirmed that this was my misunderstanding the swing spec. Turns out that
left+right at the same time are dispatched as left, then right.  My code was 
checking
for getButton() == MouseEvent.BUTTON1 + MouseEvent.BUTTON3, which will never 
happen.

Original comment by allain.lalonde on 5 Aug 2009 at 12:59

GoogleCodeExporter commented 9 years ago

Original comment by allain.lalonde on 30 Oct 2009 at 4:13