View Single Post
  #7  
Old 08-01-2003, 10:03 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Here is a list of the available commands in the sid library, I believe the hat command is what you are looking for.

get
This returns a list of three values. The first value is the x position of the joystick. The second value is the y position of the joystick. The third value is a number where each bit represents whether a certain button is down.

trigger
This returns whether the trigger button has been pressed

buttons
This returns a number where each bit represents whether a button is down

angle
This is a helper function that returns the angle the joystick is pointed at.

slider
This returns the position of the slider

hat
This returns the value of the hat switch

aux
This returns some auxillary values

set
This sets the value for force feedback
Reply With Quote