Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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  
  Is JInput mature enough?  (Read 2883 times)
0 Members and 1 Guest are viewing this topic.
Offline Java Cool Dude

Senior Member




Java forever


« Posted 2004-03-02 22:35:25 »

A friend of mine has made some comments about how choppy some of my demos run because of the bad combination that is AWT events and JoGL rendering.
So I was thinking about using JInput and ditch AWT for keyboard and mouse interaction.
Question is, are the binaries for Mac, Win and Linux mature and stable enough?
Is it worth making the complete switch to Jinput over AWT?
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #1 - Posted 2004-03-03 00:02:44 »

We are just settling some issues to work towards a 1.0 release.
If you build the latest from CVS it is decent.   Mouse input seems to be working fine, but you may be a bogus report of 2 buttons on a Mac that really only has one button.  Keyboard support is finally worked well on the Mac, but key names on the Mac are bogus "Key 34" instead of something like 'W', 'Z', etc..

Gamepad support on Mac is coming soon... if I can figure out some HID stuff before G.P. gets to it that is Smiley

By all means try it and report any problems... best they get worked out prior to 1.0.

Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2004-03-03 02:34:47 »

I have a mac guy now whose offered to help us.  Im going tos end him the KB and tarck pad issues tomorrow.


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2004-03-03 12:09:03 »

Tell him to look at the "HID keyboard input" thread on Apple's mac-games-dev mailing list...  I posted the issue there and got some good feedback.

Offline Java Cool Dude

Senior Member




Java forever


« Reply #4 - Posted 2004-03-03 14:46:05 »

Problem is, I can't get the thing to work even if the sample code that I have compiles.
I tried placing the dxinput dll file into various places with D:\JDK\jre\bin being the standard path where I usually place all my dlls (JoGL, OpenAL, LWJGL etc..), and yet I always get  0 devices ....
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #5 - Posted 2004-03-03 15:49:37 »

The JAR and DLL for the controller should go in a 'controller' folder where you run the app from.
If you are using webstart - look at the examples in the threads here.  I think they are working. (I can't remember if I had jinput installed as an extension when I tried them last.)

Offline Jeff

JGO Coder




Got any cats?


« Reply #6 - Posted 2004-03-04 03:19:53 »

This is why we need a manual. Honestly, Im working on it!

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Raghar

Junior Member




Ue ni taete 'ru hitomi ni kono mi wa dou utsuru


« Reply #7 - Posted 2004-04-01 18:19:38 »

Actually we need
mouse=Envirenment.getDefaultMouse();
if(mouse.button[1]=1)...
and
...
up=mouse.wheel
...

mouse.update() //optional operation.

And get rid of than ugly ./controler folder. It took me 4 hours to get everything straight, and I was forced to read comment in the documentation.

Is something wrong with attempt to seek in the application directory?

Sixth button on my mouse doesn't work in Jinput.

Recommendation: merge it with LWJGL, and create few different interfaces to make everyone happy.


Offline Jeff

JGO Coder




Got any cats?


« Reply #8 - Posted 2004-04-01 21:55:00 »

On most of this I am not following you.  the APi is purpsoefully generic to allow the discovery of arbitrary devices.  You are certainly free to buidl mroe specific interfaces on top of it that meet your needs.

There is a -D flag for setting a directory to find the controllers in.  Its been mentioend ehre multipel times and I also suspect its in the java docs. (yes Endolf?)

LWJGL in fact has its own input system which is already merged with it.  if thats important to you you might want to look at that.  When we desigedn this API we felt it was an important design goal specifically *not* to needlessly tie this functionality to any other such that it could be used with any other technologies you chose to.
Thats the same reason it is not tied to AWT, even though that makes writing virtul drivers a bit trickier.

But thanks for the suggestions  Grin


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #9 - Posted 2004-04-01 21:56:39 »

Or was this all an April 1 gag?   Sorry, took my reading that bit about your 6th button twice for that to occur to me  Cheesy

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #10 - Posted 2004-04-02 06:46:51 »

Quote
There is a -D flag for setting a directory to find the controllers in.  Its been mentioend ehre multipel times and I also suspect its in the java docs. (yes Endolf?)


/me doubts it's documented yet  Roll Eyes

I'll have a poke sunday maybe, i've got some other stuff I want to do to the linux one so I might do the javadoc then.

Endolf

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #11 - Posted 2004-04-02 07:10:36 »

Ok

 There is some bad documentation on the three properties in the package.html now, so new javadoc is needed for people to read it. It just says

Use -D jinput.plugins (or net.java.games.input.plugins) and specifiy a list of class name to over ride the plugins system. This will force the classes passed to be loaded first, then plugins will be searched for in the default manner (./controller/*.jar)
Use -D jinput.controllerPluginPath to change the path the plugins mechanism will use to search for plugin Jars.

Hope thats a start.

Cheers

Endolf

Offline Raghar

Junior Member




Ue ni taete 'ru hitomi ni kono mi wa dou utsuru


« Reply #12 - Posted 2004-04-04 18:10:38 »

Quote
Or was this all an April 1 gag?   Sorry, took my reading that bit about your 6th button twice for that to occur to me  Cheesy

<big grin> I have six button mouse. And I actually seen mouse with two mouse wheels, alas not for USB.

How would JInput handle mouse with four way mouse wheel? (I don't have this one, it was too expensive.)

And what about 10 button mouse?
Offline Jeff

JGO Coder




Got any cats?


« Reply #13 - Posted 2004-04-04 21:23:06 »

really it all depends  on what the OS tells us it is.

My guess is that the OS would either tell us its a generic input device or wouls tell us its a normal mouse plus some additional input device with the unusual controls on it.

But at the end it really all comes dwon to how these thinsga re reported up by the OS layer (DirectInput on Win32, HID manager on OSX.)



Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #14 - Posted 2004-04-05 05:04:22 »

Hi
 Under both windows and Linux it can cope with one wheel, but up to (if memory serves) 7 buttons. This is just for mice, and is down to the codes used for each part, on any other device there is no coded limit.

HTH

Endolf

Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #15 - Posted 2004-04-15 19:41:08 »

looks like JInput is sometimes "over"-mature Smiley



@endolf:
I knew you said that this would be possible so I used my last kernel uprade to see whether you said the truth.

I wonder why my scanner is not showing up in this list? Yeah, I know this is senseless but ... my scanner has 3 buttons ... Is there any way to have let this device show up as an event device?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #16 - Posted 2004-04-16 07:17:04 »

If there is a device node created and useable in /dev/input then it should already be picked up, if there is no device node there, then it's not possible.

HTH

Endolf

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.

TehJavaDev (13 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (31 views)
2014-08-16 06:45:27

Tekkerue (31 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
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!