Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Joystick Axis Value Not Read by JInput Until It Is Moved At Least Once!? on: 2010-12-09 13:47:33
Hi guys,

Hope someone can help me out here...

I'm using a joystick to read the user input. The code looks something like this:

------

myValue = myJoystick.getAxisValue(0); //Where 0 is the axis id of the analog stick

------

The problem is, by default, "myValue" is always equals to "-1".

It is only when I move the stick AT LEAST ONCE will "myValue" reflect the true value of the controller axis.

Can anyone please tell me how I could get "myValue" to reflect the true axis value right from the start?

Thanks very much guys. Greatly appreciate your help!

PS:

I use the Controller class from "org.lwjgl.input.Controller"
2  Game Development / Newbie & Debugging Questions / Re: How to Use Fanatech Steering Wheel With LWJGL on: 2010-11-13 03:13:24
Thanks Momoko_Fan, you're a champion! Cool
3  Game Development / Newbie & Debugging Questions / How to Use Fanatech Steering Wheel With LWJGL on: 2010-11-12 23:00:04
Hi,

Does anybody know how to control a USB racing wheel using LWJGL / JInput?

Is there a tutorial or code example?

I'm thinking of building a racing game, but don't want to limit the player to
just keyboard or mouse control.

I'm considering buying Fanatech's steering wheel to test it out. I know it's DirectX
compatible, but not sure if its gonna work on Java?

Thanks in advance dudes!

PS: Will one set of Java code works for all USB PC-Compatible racing wheels?
Or are they are all different and I have to write different codes to support different
wheels (e.g. Microsoft, Logitech, etc.)
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Pippogeek (35 views)
2014-09-24 16:13:29

Pippogeek (28 views)
2014-09-24 16:12:22

Pippogeek (17 views)
2014-09-24 16:12:06

Grunnt (40 views)
2014-09-23 14:38:19

radar3301 (23 views)
2014-09-21 23:33:17

BurntPizza (58 views)
2014-09-21 02:42:18

BurntPizza (29 views)
2014-09-21 01:30:30

moogie (34 views)
2014-09-21 00:26:15

UprightPath (47 views)
2014-09-20 20:14:06

BurntPizza (51 views)
2014-09-19 03:14:18
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!