Jazz2::UI::Menu::RemapControlsSection class

Base classes

template<class TItem>
class ScrollableMenuSection<RemapControlsItem>
Simplifies creation of unified scrollable menu sections.

Constructors, destructors, conversion operators

RemapControlsSection(std::int32_t playerIndex)
~RemapControlsSection() override

Public functions

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.

Protected functions

void OnLayoutItem(Canvas* canvas, ListViewItem& item) override
Called when an item layout should be calculated.
void OnDrawItem(Canvas* canvas, ListViewItem& item, std::int32_t& charOffset, bool isSelected) override
Called when an item should be drawn.
void OnKeyPressed(const KeyboardEvent& event) override
Called when a key is pressed.
void OnHandleInput() override
Called when input should be handled.
void OnExecuteSelected() override
Called when the selected item should be executed.
void OnTouchUp(std::int32_t newIndex, Vector2i viewSize, Vector2i touchPos) override
Called when a touch event is released.
void OnBackPressed() override
Called when back button is pressed.
void RefreshPreviousState()
auto HasCollision(PlayerAction action, MappingTarget target, PlayerAction& collidingAction, std::int32_t& collidingAssignment) -> bool

Protected variables

std::int32_t _selectedColumn
std::int32_t _playerIndex
float _timeout
float _hintAnimation
JoyMappedState _joyStatesLast
bool _isDirty
bool _waitForInput
bool _waitForInputPrev

Constants

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