class

FMiriGraphicsPlayerStacks

One screen stack per local player (split screen). Player 0 is the host's own stack, passed in; the others are owned here. Each stack has its own screens, focus, router and (optionally) input action system, and each overlay is laid out inside that player's pane, so safe zone and scale are per pane too.

Module
MiriGraphics
Header
#include "MiriGraphics/FMiriGraphicsPlayerStacks.h"
Namespace
Mowo

Type aliases

AliasDescription
using FStackSetup = std::function<void(CMiriGraphicsScreenStack& stack, int32_t playerIndex)>

Constructors

SignatureNameDescription
FMiriGraphicsPlayerStacks()FMiriGraphicsPlayerStacks
~FMiriGraphicsPlayerStacks()~FMiriGraphicsPlayerStacks
FMiriGraphicsPlayerStacks(const FMiriGraphicsPlayerStacks&) = deleteFMiriGraphicsPlayerStacks

Public functions

ReturnsNameDescription
FMiriGraphicsPlayerStacks&operator=
voidConfigureBuilds the extra stacks (calling setup on each so the host installs its resolvers) and the host widget that panes them.
voidClear
int32_tCount
boolIsSplit
CMiriGraphicsScreenStack*Get
Miri::TSharedPtr<Miri::MWidget>GetHost
voidSetPaneRectsNormalized pane per player.
FMiriGraphicsPaneRectGetPaneRect
voidAssignGamepadPad slot -> player; -1 clears.
int32_tPlayerForGamepad
boolFeedGamepadButton
boolFeedGamepadAxis
voidSetSafeInsetsAll
voidTickExtrasTicks the extra stacks; the host ticks player 0 itself.

Function details

FMiriGraphicsPlayerStacks

C++
FMiriGraphicsPlayerStacks()

~FMiriGraphicsPlayerStacks

C++
~FMiriGraphicsPlayerStacks()

FMiriGraphicsPlayerStacks

C++
FMiriGraphicsPlayerStacks(const FMiriGraphicsPlayerStacks&) = delete

operator=

C++
FMiriGraphicsPlayerStacks& operator=(const FMiriGraphicsPlayerStacks&) = delete

Configure

C++
void Configure(CMiriGraphicsScreenStack* primary, int32_t playerCount, const FStackSetup& setup)

Builds the extra stacks (calling setup on each so the host installs its resolvers) and the host widget that panes them. count <= 1 is a no-op.

Clear

C++
void Clear()

Count

C++
int32_t Count() const

IsSplit

C++
bool IsSplit() const

Get

C++
CMiriGraphicsScreenStack* Get(int32_t playerIndex) const

GetHost

C++
Miri::TSharedPtr<Miri::MWidget> GetHost() const

SetPaneRects

C++
void SetPaneRects(const std::vector<FMiriGraphicsPaneRect>& rects)

Normalized pane per player. Rebuilds the layout only when one changed.

GetPaneRect

C++
FMiriGraphicsPaneRect GetPaneRect(int32_t playerIndex) const

AssignGamepad

C++
void AssignGamepad(int32_t playerIndex, int32_t gamepadSlot, InputActionSystem* actions)

Pad slot -> player; -1 clears. A player with a slot also uses actions (its own InputActionSystem) for UI.* actions.

PlayerForGamepad

C++
int32_t PlayerForGamepad(int32_t gamepadSlot) const

FeedGamepadButton

C++
bool FeedGamepadButton(int32_t gamepadSlot, uint8_t sdlButton, bool down)

FeedGamepadAxis

C++
bool FeedGamepadAxis(int32_t gamepadSlot, uint8_t sdlAxis, int16_t value)

SetSafeInsetsAll

C++
void SetSafeInsetsAll(const FMiriGraphicsSafeInsets& insets)

TickExtras

C++
void TickExtras(float deltaSeconds)

Ticks the extra stacks; the host ticks player 0 itself.

Generated from MiriGraphics/FMiriGraphicsPlayerStacks.h via mirigraphics.json · Dec 5, 2026Version 1.1.0