Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Joystick Hat (http://www.chiefdelphi.com/forums/showthread.php?t=101593)

eddie12390 30-01-2012 23:25

Joystick Hat
 
Does anyone know of a way to use the Joystick Hat as a regular button?

Keyreaper 31-01-2012 01:33

Re: Joystick Hat
 
I believe if you are at talking about the FOV hat on top of the joystick in this sort of fashsion...

http://imageshack.us/photo/my-images...ystick0mm.jpg/

They are normally the axis's 5 and 6 and typically only return -1,0,1 values. In order to make it a button function just take the output of the axis and compare it to see if it is greater than say '.99'. Or at least that's how they function on our Saitek Joysticks.

eddie12390 31-01-2012 11:03

Re: Joystick Hat
 
Quote:

Originally Posted by Keyreaper (Post 1116923)
I believe if you are at talking about the FOV hat on top of the joystick in this sort of fashsion...

http://imageshack.us/photo/my-images...ystick0mm.jpg/

They are normally the axis's 5 and 6 and typically only return -1,0,1 values. In order to make it a button function just take the output of the axis and compare it to see if it is greater than say '.99'. Or at least that's how they function on our Saitek Joysticks.

I'm not worried about returning values other than -1, 0, and 1. Thank you for your help. I was unaware that it was possible to read axes other than X and Y but I've just noticed that you can getRawAxis.


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

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