Handle Joystick input in a new thread