LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Xom on April 14, 2007, 02:00:50

Title: Input with java applet
Post by: Xom on April 14, 2007, 02:00:50
Hi I am making a java applet game with lwjgl and don't know how to get keyboard input. I tried the methods in org.lwjgl.input.Keyboard; but I get "java.lang.IllegalStateException: Display must be created" when I try to create the keyboard. So how can I/whats the best way to get keyboard input for an applet?
Title: Re: Input with java applet
Post by: Matzon on April 15, 2007, 09:02:44
you should be able to use the keyboard fine: check this test:
http://svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java?revision=2672&view=markup