Thread: Joystick Hat
View Single Post
  #2   Spotlight this post!  
Unread 31-01-2012, 01:33
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
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.
Reply With Quote