There are 3 ways to implement the Joystick software, with the same hardware for all: buttons, potentiometers, led indicators … each one with his driver to connect with the Arduino. The 3 ways are: using Native Usb, using the Plugin Uniduino for Unity or using Unojoy, a game controller emulator.
- NATIVE USB: these core libraries allow a 32u4 based boards (Micro and Leonardo) or Due and Zero board to appear as a native Mouse and/or Keyboard to a connected computer (for Due and Zero it’s necessary to install a driver)
ADVANTAGES: these libraries have been created for the big Arduino’s community. There are lots of tutorials It’s an open source and it can be used with all computer programs. DESADVANTAGES: to send data out from Unity (to Arduino) you must use the serial port betwen Unity and Arduino.
- UNIDUINO: it’s a plugin for Unity, it lets you write all the program in C# in Unity.
ADVANTAGES: it centralize all code in Unity in C# and you can interact directly with Playmaker.
DESADVANTAGES: it cost 30$, it has not a community and it works only in Unity.
- UNOJOY: it’s a library that connects the Arduino with the game controller emulator.
ADVANTAGES: you don’t need to have a programmer knowledge and it works with all computer programs.
DESADVANTAGES: you can’t adjust the inputs and there are no outputs.