LWJGL
May 24, 2013, 10:12:56 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Keyboard class without lwjgl?  (Read 1151 times)
frostyfrog
Newbie
*
Posts: 9


« on: July 12, 2011, 20:18:23 »

Hi, I was following the tutorials on her and I really do like lwjgl. But for my first few tests with making games in java, I would like to stick to mainly using awt and no external libraries. The first problem that I encountered was the keys repeating when using the keyPressed function. The keys worked so well when I used lwjgl.

So my question is, is it possible to use the keyboard class from lwjgl, without using lwjgl? Or could anyone point me in the right direction to re-implementing it's function?

Thanks! =D
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #1 on: July 13, 2011, 01:34:15 »

So my question is, is it possible to use the keyboard class from lwjgl, without using lwjgl? Or could anyone point me in the right direction to re-implementing it's function?

You can't use the Keyboard class standalone from LWJGL since its tied directly to the native display window. Its possible to read keys with AWT without them repeating, just google for some tutorials on it.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!