Joystick switch code should theoretically work now

pending testing