Fixed the hat code, getJoystickInput seem to work fine, just need to start
to work on how to use joystate to send data through serial communication to
a micro controller. Then configuration files for each joysticks. Then also
serial communications need to be fixed. Ontop of that a test program for
an arduino should be created. Also an configuration for the serial communication.