Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (669)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  LWJGL Keyboard question  (Read 1863 times)
0 Members and 1 Guest are viewing this topic.
Offline emike

Junior Newbie

Java games rock!

« Posted 2003-04-27 02:19:43 »

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.

Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #1 - Posted 2003-04-27 07:45:09 »

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 Tongue How would you expect it to work otherwise? You'll have to port your display/drawing code first.

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline emike

Junior Newbie

Java games rock!

« Reply #2 - Posted 2003-04-27 14:55:47 »

>> 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.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (34 views)
2016-04-18 14:18:53

KaiHH (34 views)
2016-04-18 08:35:41

KaiHH (66 views)
2016-04-15 12:43:58

theagentd (64 views)
2016-04-14 02:16:17

theagentd (71 views)
2016-04-14 02:15:43

IanParcs (63 views)
2016-04-12 03:51:16

IanParcs (35 views)
2016-04-12 03:50:03

IanParcs (32 views)
2016-04-12 03:49:54

IanParcs (27 views)
2016-04-12 03:49:52

IanParcs (36 views)
2016-04-12 03:49:52
List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!