Author Topic: creating lwjgl mouse blanks screen  (Read 1837 times)

Offline slenkar

  • byte
  • *
  • Posts: 20
    • View Profile
creating lwjgl mouse blanks screen
« 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
« Last Edit: May 29, 2009, 04:27:59 pm by slenkar »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: creating lwjgl mouse blanks screen
« Reply #1 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).

Offline slenkar

  • byte
  • *
  • Posts: 20
    • View Profile
Re: creating lwjgl mouse blanks screen
« Reply #2 on: May 29, 2009, 08:54:47 pm »
oh yeah its canvas, thanks