Isn't it possible to create a custom classloader that you can use to create multiple lwjgl gl, keyboard, sound instances that in the JWM will be seperate objects in different memory locations. Or? Just an idea...
Interesting idea however it won't work because of the assumption that was made that only a single window be involved. The Keyboard and controller classes would poll for the state, in each window, and possibly loose events or eat events that don't belong to them.
After looking closer at the source, it should be a trivial matter to make the library support multiple windows. Let's be clear about this, I'm not talking about drawing a window for a user interface. I'm talking about having more than one physical OS window.
There is no reason this would stop someone from only using a single window. But it would allow people that need/want multiple windows to have them. The main changes I see needed to do this are the following:
1> If a window isn't active the keyboard polling routines return that no keys are pressed
2> If a window isn't active the controller polling routines return that no buttons/directions are pressed
3> The mouse shouldn't be disabled when you are outside of a window. (that should never be the case regardless of whether multiple windows are supported)
4> The Keyboard and Display classes have to become instance based so you can use different instances in each window.
Probably a number of other things that I don't know about yet.
I realize this isn't going to happen but I think it is at least worth discussion.