Login  Register

Re: Fullscreen issue on KeyListener event

Posted by Sven Gothel on Mar 29, 2012; 3:23am
URL: https://forum.jogamp.org/Fullscreen-issue-on-KeyListener-event-tp3855615p3866636.html

On 03/29/2012 04:13 AM, robbiezl [via jogamp] wrote:
>
>
> I tryed to USE NEWT,but it is not convinient.It dose not support the java
> mouse event, it noly support mouse listener and key listener,not support
> mouse wheel listener.

Mouse wheel events are delivered by the mouse listener in NEWT.

>
> And I have to change all my AWTEventListener

Well, we could write a factory/adapter translating NEWT to AWT events
and forwarding this to your AWT listener. We have such tools in place
for the inverse situation, Android/AWT -> NEWT events.

Look at com.jogamp.newt.event.awt.AWTAdapter and it's usage.

~Sven


signature.asc (910 bytes) Download Attachment