Mouse problems (bugs?) with LWJGL

To Cas: I don’t know if these problems are already known, but I’ll describe them anyway…

  1. I have two monitors (using two graphics cards). When I run games in fullscreen mode the secondary monitor is disabled and I see the game only on the primary monitor. This way the mouse movement is constrained only on the game “surface”. When I go fullscreen with LWJGL, the primary monitor goes normally to fullscreen mode, but the secondary is still enabled. Because of this the mouse can still move on the second monitor and it gets really ugly.:frowning:

  2. Upon calling Mouse.enableBuffer(), I get the following error:

[quote]Exception in thread “main” java.lang.UnsatisfiedLinkError: nEnableBuffer
at org.lwjgl.input.Mouse.nEnableBuffer(Native Method)
at org.lwjgl.input.Mouse.enableBuffer(Mouse.java:203)
[/quote]

This happens all the time, no matter what.

My system: WinXP, JDK1.4.1_01, LWJGL 0.3, GeForce 2 MX. My mouse is optical (I don’t know if it has something to do with the buffering problem).

Ah, we’ve never tried anything with multiple monitors. Really it’s supposed to only deal with the primary monitor and bedamned your second monitor. Maybe we should be turning it off if we detect it.

And I haven’t implemented buffering for the mouse yet, as I don’t think we’re really going to be needing it. Polling works best.

Cas :slight_smile:

Thanks for your answer Cas. I hope this multi-monitor bug will be fixed in an upcoming release of LWJGL. For now I’ll just have to disable my second monitor… :frowning:

Is #1 really a bug? I use dual monitors and with java full screen apps (non-lwjgl) I can move the mouse onto the second display.

With other full screen games I can’t but I think they probably have code to keep that from happening.

Technically it’s not a bug, it’s a “feature” of LWJGL - it’s just not a welcome feature for games :slight_smile: I’ll see what I can do about it.

Cas :slight_smile: