Jazz2::UI::Menu::RemapControlsSection class

Remap controls menu section.

Lists the player actions and lets the player rebind the individual control mappings for a given player by assigning new keyboard, gamepad, or touch inputs. Built on top of WidgetSection with each action row drawn through a CanvasWidget; the bespoke 2D (row/column) navigation and input capture are driven by the section.

Base classes

class WidgetSection
Base class of a declarative menu section.

Public static variables

static std::int32_t MaxTargetCount constexpr
Maximum number of mapping targets.

Constructors, destructors, conversion operators

RemapControlsSection(std::int32_t playerIndex)
Creates a new instance for the specified player.
~RemapControlsSection() override

Public functions

void OnShow(IMenuContainer* root) override
Called when the section is shown.
void OnUpdate(float timeMult) override
Called when the section should be updated.
void OnDraw(Canvas* canvas) override
Called when the section should be drawn — the bottom background layer.
void OnKeyPressed(const nCine::KeyboardEvent& event) override
Called when a key is pressed.
auto GetNavigationFlags() const -> NavigationFlags override
Allows to override navigation behavior.

Protected functions

void OnBackPressed() override
Called when the back button is pressed; leaves the section by default.