Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 2291 times)
0 Members and 1 Guest are viewing this topic.
Offline longino

Junior Member


Medals: 1



« Posted 2012-06-22 02: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: 342
Projects: 2
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2012-06-22 02: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 Member


Medals: 1



« Reply #2 - Posted 2012-06-22 03: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: 342
Projects: 2
Exp: 5 years


I'm the King!


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

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

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


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

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

Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2012-06-22 11: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


Current project release date: sometime in 3003


« Reply #6 - Posted 2012-06-22 12: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 Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2012-06-22 12: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


Current project release date: sometime in 3003


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

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

Endolf

Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2012-06-22 13: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: 342
Projects: 2
Exp: 5 years


I'm the King!


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

Disappointing... Tongue

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #11 - Posted 2012-06-23 13: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-29 00: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: 39
Exp: 6 years


Coding in Style


« Reply #13 - Posted 2012-08-27 11: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 Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #14 - Posted 2012-08-27 16: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 17: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.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (25 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

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

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

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54
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!