(NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

(NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

gouessej
Administrator
Hi

You can check which buttons are pressed in mousePressed() on Microsoft Windows but not on GNU Linux, getButtonsDown() and getModifiers() don't return the correct values. Is it a limitation or a bug we should fix? One of my colleague suspects that there is something wrong in AWTNewtEventFactory. Should I write a bug report about that?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: (NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

Sven Gothel
Administrator
On 01/12/2012 11:29 AM, gouessej [via jogamp] wrote:

>
>
> Hi
>
> You can check which buttons are pressed in mousePressed() on Microsoft
> Windows but not on GNU Linux, getButtonsDown() and getModifiers() don't
> return the correct values. Is it a limitation or a bug we should fix? One of
> my colleague suspects that there is something wrong in AWTNewtEventFactory.
> Should I write a bug report about that?
>
I don't understand the question properly, sorry.

Which API has 'mousePressed()', 'getButtonsDown()' etc .. ?
Please elaborate.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: (NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

gouessej
Administrator
My colleague uses a GLWindow with NewtCanvasAWT in order to put it into an embedded frame by using the SWT/AWT bridge. He has not yet switched to the official SWT heavyweight canvas of JOGL. Sorry, I was not clear. He uses NEWT, especially InputEvent and MouseEvent getButtonsDown() and getModifiers().
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: (NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

gouessej
Administrator
In reply to this post by Sven Gothel
Hi

The bug is reproducible only when using NewtCanvasAWT, not with GLWindow alone.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: (NEWT) multiple mouse buttons pressed: inconsistent behaviour depending on the OS

gouessej
Administrator
Hi

This bugs comes from NEWT and has been reported by Sébastien here:
https://jogamp.org/bugzilla/show_bug.cgi?id=571
Julien Gouesse | Personal blog | Website