factoriax.playground.menu.controls_menu

factoriax.playground.menu.controls_menu#

The settings menu: the keyboard, the controller, the display, and a reset.

The menu holds two panels, as factoriax.playground.menu.main_menu does. The left panel lists the four pages. The right panel shows the page that the user selects.

The keyboard page and the controller page group their rows under Movement, Actions, and Menus. The display page holds a row for fullscreen and a row for the UI scale. The reset page holds one action.

factoriax.playground.menu.controls_menu.run_controls_menu(screen: Surface, config: PlayerConfig) → tuple[bool, int]#

Run the settings menu and return (fullscreen, ui_scale).

Binding edits are written into config.keyboard / config.controller in place. The caller is responsible for persistence.