Move switch statement to correct position (used by Joystick Bricklet)