Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (683)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (751)
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  
  APIs for gamepads  (Read 3518 times)
0 Members and 1 Guest are viewing this topic.
Offline longino

Junior Devvie


Medals: 1



« Posted 2012-06-22 00:43:59 »

Hi,

Is there any Java API for the 360 controller on the PC?

I saw a project called JInput around, but is it abandoned? Does it work with the 360 gamepad?

Any recommendation?
Offline ra4king

JGO Kernel


Medals: 435
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-06-22 00:46:34 »

Yup, JInput is the best for the job and it's not abandoned. It's still maintained by our very own Endolf.

Offline longino

Junior Devvie


Medals: 1



« Reply #2 - Posted 2012-06-22 01:51:30 »

Awesome! I am going to try it out then.

Are there any pointers to documentation that I should see?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 435
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-06-22 02:26:25 »

http://www.java-gaming.org/topics/jinput-introduction/4971/view

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #4 - Posted 2012-06-22 08:08:32 »

Who me?, nope, not me, nothing to do with me ......., I blame Pointing them! ...

Offline princec

« JGO Spiffy Duke »


Medals: 785
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2012-06-22 09:46:08 »

There's also a bit of a wrapper around it in LWJGL which makes it fractionally easier.
I'm using it here and it's pretty nifty. About the only thing missing that would be good is the ability to hot plug / unplug controllers.

Cas Smiley

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #6 - Posted 2012-06-22 10:04:37 »

About the only thing missing that would be good is the ability to hot plug / unplug controllers.

Feel free to submit the patch Smiley, had a few requests for this, but no-one deemed it important enough to implement Smiley

Endolf

Offline princec

« JGO Spiffy Duke »


Medals: 785
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2012-06-22 10:58:22 »

Sadly now I earn a living from making games instead of merely tinkering I spend all my programming time, well, making games, instead of tinkering with the APIs underneath :/

Cas Smiley

Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #8 - Posted 2012-06-22 10:59:06 »

I'll take that as another 'not important enough to justify the expense' Smiley

Endolf

Offline princec

« JGO Spiffy Duke »


Medals: 785
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2012-06-22 11:41:21 »

Pretty much yes.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 435
Projects: 3
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2012-06-22 12:13:55 »

Disappointing... Tongue

Offline Nate

« JGO Bitwise Duke »


Medals: 167
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #11 - Posted 2012-06-23 11:01:12 »

About the only thing missing that would be good is the ability to hot plug / unplug controllers.

Feel free to submit the patch Smiley, had a few requests for this, but no-one deemed it important enough to implement Smiley

Endolf

I looked at it. Thar be dragons in JInput!

There is code her for Xbox 360 controllers:
https://code.google.com/p/pg3b/source/browse/#svn%2Ftrunk%2FJava%2Fsrc%2Fcom%2Fesotericsoftware%2Fcontroller%2Finput
Uses Microsoft's crap via JNI on Windows, because it is the only thing that has sane trigger axis. Otherwise it falls back to JInput.

Offline gouessej
« Reply #12 - Posted 2012-06-28 22:40:52 »

JInput works fine with JogAmp too, we have to implement some nice features to ease its integration in existing applications using NEWT (our native windowing system).

Offline Oskuro

JGO Knight


Medals: 59
Exp: 6 years


Coding in Style


« Reply #13 - Posted 2012-08-27 09:22:37 »

About the only thing missing that would be good is the ability to hot plug / unplug controllers.

I find that ability missing in many games (Even high profile ones), so I'm guessing it isn't that trivial.

I'm actually tinkering with JInput and with JNI in general, I might take a look... But I make no promises. Roll Eyes

Offline princec

« JGO Spiffy Duke »


Medals: 785
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #14 - Posted 2012-08-27 14:30:04 »

I suspect it is trivial, just not many people bother with it. But solve it once in JInput and it's solved for a lot of people all at the same time...

Cas Smiley

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #15 - Posted 2012-08-27 15:28:58 »

I suspect it is trivial, just not many people bother with it. But solve it once in JInput and it's solved for a lot of people all at the same time...

Cas Smiley

This is true. JInput is used by a crap-ton of people.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
orrenravid (210 views)
2016-07-16 03:57:23

theagentd (281 views)
2016-07-11 14:28:54

Hydroque (366 views)
2016-07-06 05:56:57

Hydroque (520 views)
2016-07-03 08:52:54

GrandCastle (393 views)
2016-07-01 09:13:47

GrandCastle (385 views)
2016-07-01 09:09:45

CopyableCougar4 (437 views)
2016-06-25 16:56:52

Hydroque (413 views)
2016-06-22 02:17:53

SwampChicken (379 views)
2016-06-20 13:22:57

SwampChicken (303 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17
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!