Jazz2::UI::Menu::RemapControlsSection class

Base classes

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

Public static variables

static std::int32_t MaxTargetCount constexpr

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
void OnDrawItem(Canvas* canvas, ListViewItem& item, std::int32_t& charOffset, bool isSelected) override
void OnKeyPressed(const KeyboardEvent& event) override
Called when a key is pressed.
void OnHandleInput() override
void OnExecuteSelected() override
void OnTouchUp(std::int32_t newIndex, Vector2i viewSize, Vector2i touchPos) override
void OnBackPressed() override
void RefreshPreviousState()
auto HasCollision(PlayerActions action, MappingTarget target, PlayerActions& 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