www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: slenkar on May 29, 2009, 04:24:00 pm

Title: creating lwjgl mouse blanks screen
Post by: slenkar on May 29, 2009, 04:24:00 pm
I added one line to the helloworld demo:

Mouse.create();

and the screen is blank, but if I remove the line the green box appears as usual.

I am using the AWTGL demo, I tried to capture AWT mouse events but they were not recognized.

So I tried to use the lwjgl Mouse.create command

I also put this line into the main program loop:
System.out.println(Mouse.getDX());

but nothing is printed to the console
Title: Re: creating lwjgl mouse blanks screen
Post by: EgonOlsen on May 29, 2009, 07:52:58 pm
When using the AWTGLRenderer, you have to use the awt events instead of the LWJGL class. They will be recognized, just make sure to attach them to the right component (either the canvas or the frame its living in...i can't remember it for now, but one works fine, one doesn't).
Title: Re: creating lwjgl mouse blanks screen
Post by: slenkar on May 29, 2009, 08:54:47 pm
oh yeah its canvas, thanks