Re: keyReleased keyPressed problem
Posted by
Sven Gothel on
Oct 08, 2014; 5:33pm
URL: https://forum.jogamp.org/keyReleased-keyPressed-problem-tp4033288p4033289.html
On 10/08/2014 04:39 PM, elect [via jogamp] wrote:
> Hi people,
>
> so, I am experiencing a strange beviour with the
> com.jogamp.newt.event.MouseListener
KeyListener ?
>
> Under some special condition, very hard to explain, I do not get the right
> event triggering
>
> For example, I want the combination ctrl+o to open the explorer. Most of the
> time I get this:
>
> keyPressed 17
> keyPressed 79
>
> 17 is ctrl, 79 o. The println is just at the begin of the corresponding
> method. I am using a jFrame, that contains a jPanel where I have attached the
> newtCanvasAwt from my glWindow. I created a class that implement both the key
> and mouse listener from the com.jogamp.newt.event and I added both to the
> glWindows throught the corresponding methods addMouse/KeyListener()
>
> Everything fine. But sometimes I get instead this
>
> keyPressed 17
> keyReleased 79
> keyReleased 17
> keyReleased 79
>
> I found this
>
http://forum.jogamp.org/keyreleased-might-be-have-a-bug-td4027319.html>
> but it has nothing to do with my case, I also btw experienced
> keyReleased/KeyPressed if keeping pressed the same button. I inserted a check
> on the isAutoUpdate() but nothing changed.
>
you mean 'isAutoRepeat()' of NEWT KeyEvent ?
So you are saying, you experience an auto-repeated 'CTRL-O'
from AWT, but the NEWT KeyEvent shows them as being
not auto-repeat?
~Sven