Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Dual analog controller (http://www.chiefdelphi.com/forums/showthread.php?t=92327)

ArchVince 19-02-2011 14:53

Dual analog controller
 
Alright, I was wondering if I could use a USB dual analog controller we have. I've been using the Joystick class thus far, but to my knowledge it allows only three axis of movement to be recorded. Is there a different class I should be using, or is there a way to do it with the Joystick class?

Thanks.

Robby Unruh 19-02-2011 15:08

Re: Dual analog controller
 
Take a look at Joystick.GetRawAxis(int).

You'll have to find the axis' number yourself VIA run->joy.cpl

ArchVince 19-02-2011 15:22

Re: Dual analog controller
 
Time for testing : D Thanks for the help.

EDIT: I added in the new code. It works perfectly. Thanks for the help!


All times are GMT -5. The time now is 11:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi