creating lwjgl mouse blanks screen

Started by slenkar, May 29, 2009, 04:24:00 PM

Previous topic - Next topic

slenkar

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

EgonOlsen

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).

slenkar