Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
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 1696 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: 292
Projects: 2


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: 292
Projects: 2


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
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


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
« League of Dukes »

JGO Kernel


Medals: 197
Projects: 3


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
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


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
« League of Dukes »

JGO Kernel


Medals: 197
Projects: 3


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
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


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
« League of Dukes »

JGO Kernel


Medals: 197
Projects: 3


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: 292
Projects: 2


I'm the King!


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

Disappointing... Tongue

Offline Nate

JGO Wizard


Medals: 88
Projects: 3


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

JGO Ninja


Medals: 35
Projects: 1


TUER


« 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 Coder


Medals: 21


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
« League of Dukes »

JGO Kernel


Medals: 197
Projects: 3


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: 23
Projects: 3


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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (17 views)
2013-06-19 14:55:23

BrassApparatus (27 views)
2013-06-19 08:52:37

NegativeZero (30 views)
2013-06-19 03:31:52

NegativeZero (33 views)
2013-06-19 03:24:09

Jesse_Attard (36 views)
2013-06-18 22:03:02

HeroesGraveDev (73 views)
2013-06-15 23:35:23

Vermeer (74 views)
2013-06-14 20:08:06

davedes (75 views)
2013-06-14 16:03:55

alaslipknot (66 views)
2013-06-13 07:56:31

Roquen (90 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
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!