Sync peripheral API with latest fixes from joystick add-on