joystick

jdhartman/things/joystick

No description
joystick
@/joystick
x portport
Analog port the joysticks x-axis is connected to.
Switch portport
Digital port the joystick switch is connected to.
y portport
Analog port the joysticks y-axis is connected to.
joystick
-x
+x
mc
latch
-y
+y
x port
Switch port
y port
+ynumber
Joystick positive y-axis value.
-ynumber
Joystick negative y-axis value.
latchboolean
Latched value of the joystick button ie. - Each press changes the value (boolean).
mcboolean
Momentary contact value of the joystick button ie. -whether or not it is currently pressed (boolean).
+xnumber
Joystick positive x-axis value.
-xnumber
Joystick negative x-axis value.
To use the node in your project you should have the jdhartman/things library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.