Skip to content

Bugfix in "Application Programming" documentation's sample code

Phileas requested to merge main into main

The example source in the Application Programming documentation for Writing an application for the menu system didn't work on the simulator.

The line:
if self.input.right_shoulder.middle.pressed
threw an 'InputController' doesn't have a'right_shoulder' attribute. I figured out what to change (it's self.input.buttons.middle.pressed instead) and this MR updates the documentation.

The MR also updates the same access to 'right_shoulder' in the example 2b, the example 2a uses the correct attributes.

Merge request reports