Fixed (finalized?) joystick library.