OCCRA
Go to Post No Firsting way! - Tytus Gerrish [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-01-2011, 04:37 PM
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Joystick POV hat button?

we are using the logitech extreme 3d pro because it has the twist axis. Does anyone know how to program the POV hat buttons? we want to use it to rotate the camera.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-01-2011, 06:13 PM
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Joystick POV hat button?

They should show up as axis (even though they're just momentary switches). They will either give you -1 or 1 (the Joystick class gives you -1..1, right?).

First two axis should be x and y, third will be the throttle, and if I remember correctly from when I was playing around with my 3D Pro (before it broke), the hat axis should be 4 an 5 (or 3 and 4, if the Joystick class starts enumeration at 0).
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:39 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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