class

MKeyMapping

Module
Miri
Header
#include "Miri/Widgets/MKeyMapping.h"
Namespace
Miri

Properties

TypeNameDescription
MiriDelegate<void(int32_t, const CInputChord&)>OnBindingCapturedA keyboard capture (or a clear) on a row.
MiriDelegate<void(int32_t, const CKeyCaptureResult&)>OnBindingCaptureResultEvery capture on a row, typed: hosts that store mouse buttons and wheel notches read this, since those have no chord.
MiriDelegate<void(int32_t)>OnBindingAdded
MiriDelegate<void(int32_t)>OnBindingRemoved

Public functions

ReturnsNameDescription
MIRI_WIDGET_ARGS
voidSetBindings
const std::vector<FMiriKeyBinding>&GetBindings
voidAddBindingWhat + does: appends an empty row and starts its capture.
voidRemoveBinding
TSharedPtr<MKeyCaptureField>GetCaptureFieldThe capture field of a row, for hosts and tests.
voidSetCollapsedFolds the card to its header (the header chevron does the same).
boolIsCollapsed
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
const char*GetTypeName

Function details

MIRI_WIDGET_ARGS

C++
MIRI_WIDGET_ARGS(MKeyMapping) MIRI_ARG(std::string, Action) MIRI_ARG(std::string, ValueType) MIRI_WIDGET_ARGS_END() void Construct(const CArguments& args)

SetBindings

C++
void SetBindings(std::vector<FMiriKeyBinding> bindings)

GetBindings

C++
const std::vector<FMiriKeyBinding>& GetBindings() const

AddBinding

C++
void AddBinding()

What + does: appends an empty row and starts its capture.

RemoveBinding

C++
void RemoveBinding(int32_t index)

GetCaptureField

C++
TSharedPtr<MKeyCaptureField> GetCaptureField(int32_t index) const

The capture field of a row, for hosts and tests.

SetCollapsed

C++
void SetCollapsed(bool collapsed)

Folds the card to its header (the header chevron does the same).

IsCollapsed

C++
bool IsCollapsed() const

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from Miri/Widgets/MKeyMapping.h via miri.json · Dec 5, 2026Version 1.1.0