Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  J2SE input or jinput ?  (Read 951 times)
0 Members and 1 Guest are viewing this topic.
Archimedes
Guest
« Posted 2003-07-09 06:51:38 »

Hallo,

questions on keyboard/mouse within a Jogl application - to which forum do they fit best?

The control of the mouse and keyboard does irritate me a bit - from a point of games developer. Two questions please:

a) When I use the KeyListener registered to my GLCanvas, each key has got an initial delay and then a repeat. Great for typing within text editors (and such Swing components), but not for games.
Did I miss the right method to scan the keyboard?

b) In contrast to continuing key events when they're being hold, hitting a mouse button does only fire one event (MousePressed / Typed / etc), but no event while the button is still being pressed?
Of course you can remember that is has been pressed, so that a polling TimerTask (or such) handles this information until the button is being released again.
So, do I really have to start an own TimerTask just to "poll" the mouse button? (Looks big to me for such a small task...)

So the final questions are: would Jinput help a lot? Or is it rather "just" for gamepads/controllers, which I would not need for my mouse driven application?
I looked into the CVS of Jinput but just found a very small text file. Is there an userguide? For Jogl I found a very very good one. http://jogl.dev.java.net/source/browse/jogl/doc/userguide/index.html
(thanks to the autors of it: it's a very good start point!)

Furthermore: are there any good FAQs on the topic "Java for game developers" ?
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2003-07-10 14:57:32 »

Hi
 Jinput is suposed to handle mouse, keyboard and joysticks/gamepads, under windows it works, macOS is comming, and I'm still strugling with the linux one, due to a number of reasons as described on the jinput list.

Basically, jinput is fun under windows, but it's not there for any other platform *yet*.

Cheers

Endolf

Archimedes
Guest
« Reply #2 - Posted 2003-07-11 11:08:44 »

Thanks for the clarification.
Sounds well. :-)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (27 views)
2014-09-07 01:10:19

mitcheeb (35 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!