LWJGL Keyboard question

Hi everyone.

First of all, i’d like to say that english is not my native language, i’ll try to make me understand.

I discovered LWJGL a few days ago, and i’d like to port my Java2D game (a puzzle bobble clone) to it, just for fun.

I started the port by using the LWJGL timer instead of the standard java one.

it worked, and the game is far better timed !

so cool.

Then i tried to use the LWJGL Keyboard polling system, with no success at all.

The JVM crashes, having just the time to tell that “The display has not yet been created.”.

So my question is :

Can i use the LWJGL Keyboard system without creating a LWJGL Display ?

Thanks in advance.

From the docs:
““Create” the keyboard. The display must first have been created. The reason for this is so the keyboard has a window to “focus” in.”

So no :stuck_out_tongue: How would you expect it to work otherwise? You’ll have to port your display/drawing code first.

How would you expect it to work otherwise?

I didn’t expect it to work a particular way, was just wondering.

I’ll probably try to port the display process so…

Thanks for clarifying that point.