ALT_DOWN_MASK added to MouseEvent with GLJPanel

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

ALT_DOWN_MASK added to MouseEvent with GLJPanel

Nikos132
Hello, I tried to get some info on that point bu found nothing yet...
Here is my problem: when I use GLCanvas I properly handle mouse event on top of it ( not using NEWT ) but when I switch to GLJPanel I get event.getModifiersExt() returning ALT_DOWN_MASK for middle button clicks and META_DOWN_MASK for left clicks.

I'm missing something or is it mandatory from a jogl perspective?

Thanks in advance for any help.
Reply | Threaded
Open this post in threaded view
|

Re: ALT_DOWN_MASK added to MouseEvent with GLJPanel

gouessej
Administrator
Hi

Please make a dummy example with a plain JPanel and tell us whether it doesn't work only with GLJPanel.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: ALT_DOWN_MASK added to MouseEvent with GLJPanel

Nikos132
Hello,

Just tried as you suggested, seems that JPanel manage to perform the same magic behaviour!

Sorry for the false report and thanks for the tip, seems I definitively needs to move to JavaFX.
Reply | Threaded
Open this post in threaded view
|

Re: ALT_DOWN_MASK added to MouseEvent with GLJPanel

gouessej
Administrator
Why moving to JavaFX? JavaFX 3D API does a lot less than most of the scenegraphs relying on JogAmp.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: ALT_DOWN_MASK added to MouseEvent with GLJPanel

Nikos132
Just a joke...
i'm always surprised by Swing/AWT strange behaviors after 15 years, but I'm quite fond of Jogamp.
Reply | Threaded
Open this post in threaded view
|

Re: ALT_DOWN_MASK added to MouseEvent with GLJPanel

gouessej
Administrator
I'm often surprised by Swing too but it is flexible enough to succeed in doing what you want most of the time.
Julien Gouesse | Personal blog | Website