Name: JJoyStick2Obj

Library: JJoyStick2Obj.lib

Author: Mike Fusco

Date: February 2003

Version: 1.1 (viewable under module properties)

Input: top:  "clock”<integer> with maximum one connection.

Output: right: "num buttons down"<integer>, "button 1"<integer> through "button 32"<integer>, "POV angle deg * 100"<integer>, "joy 1 x"<integer>, "joy 1 y"<integer>, "joy 2 x"<integer>, "joy 2 y"<integer>, "joy 3 x"<integer>, "joy 3 y"<integer>, all outputs allow an unlimited number of connections.

Function: When receiving a signal (value changes) event on "clock" the logical joystick device indicated by property “port” is read and its values used to update the values of the appropriate output channels.  All channels are updated regardless of whether they are available on the physical joystick or whether they have changed since the last update.  If there is no logical joystick device the label “joy1” or “joy2” will be drawn in gray and the object will not update its output ports.  The values of outputs that are not supported by the physical joystick are probably set to 0, but this may be system dependent.

Properties: "moduleColor" set the background color. “port” set the number (joy1,joy2).  Joy1 is the first logical joystick, joy2 is only. “version” displays the version of the object you are using (non-editable), supported for versions 1.1 and later.