2 Axis Joystick

A 2 axis joystick has 3 signal pins. Two analog inputs, one for each axis, and one digital input for the button click.

Wire up your joystick as in the diagram below.

This library item uses built in nodes to read the 2 analog input pins and 1 digital input pin. Create a new agent and name it something like "joystick", then add this library item. You can then drag the Joystick agent onto another agent to use, the horizontal and vertical, left, right, up, down, and click outputs are all already exposed.

To use this node in your Embrio project, either add it from the Library toolbar or copy the XML in the below box and paste it into a node screen.