Command Center - Mouse Control – Piper

Command Center - Mouse Control

In order to sketch with processing, you need to learn how to register the “mouse” movement with code. In this case, the joystick moves in place of the mouse by using the same sketch as you would with a mouse. 

 

STEP 1

Make sure the default firmware is loaded into your Command Center.  Once it has been loaded, make sure it it in "Mouse" mode.  If it is in "Keyboard" mode, use the center button to change it.

     

    STEP 2

    • Look at the following example:

      STEP 3

      The circle size changes with the speed of the mouse cursor. Find the line of code of the circle size and experiment by changing the values.

      How else can you adjust the code?