LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: BatKid on February 06, 2005, 23:53:06

Title: Mouse Problems
Post by: BatKid on February 06, 2005, 23:53:06
Hi all,

First off, really good work on LWJGL, I am really enjoying using it.

I am a computer science instructor and I'm developing a simple Object Oriented 3D engine for teaching design.  I am running Linux at home and I have been using 0.92 and everything seems to work fine.  

However, when I put 0.94 on (0.95 doesn't work because of the libjawt.so issue), the mouse response seems to be slower.  I am implementing a FPS and it takes a noticeble delay between the mouse click and the firing of shots.  I had no problems with 0.92.

Has anyone experienced this?  

I am also have some minor trouble with 0.92 with the keyboard repeat buffer disabling itself after running of my LWJGL program.

Thanks for all the help!

Jason
Title: Fixed!
Post by: BatKid on February 07, 2005, 04:46:31
Wow, fixed both of my problems in the same day!

First, the mouse problem has to do with me not using Mouse.poll().  Somehow in the older version, it doesn't have a problem.

Second, I have been calling Keyboard.destory() in the finalize method.  Well, Java does not garauntee the finalize method will be called.  So I had to move the call to Keyboard.destory() out to a place where I know it will be called.

Thanks everyone!

Jason