Skip to main content

UB1KeyboardKeyBindWidget

Overview

  • Keyboard key binding widget. The action is fixed and the user binds a key by pressing it (action -> key), the opposite direction of the gamepad.

Metadata

FieldValue
Kindclass
EnvironmentB1 - Presentation
Categoryclasses
ExtendsUB1UserWidgetBase

Properties (9)

NameTypeDescription
Anim_Hoverany
Anim_Selectedany
BW_ActionNameTextanyAction name display text.
BW_BoundKeyWidgetanyBound key display (UB1ActionKeyWidget: MappingName-based auto lookup or DirectKey combo display).
BW_KeyCaptureButtonanyButton showing the currently bound key (enters key-capture mode on focus).
BW_Text_DirtystateanyUnsaved-change indicator ('*').
BW_Text_EmptyanyText shown when no key is assigned ('None').
GameModeEB1GameModeThe game mode this widget handles.
InputActionanyThe InputAction this widget handles.

Functions (6)

FunctionParametersReturnsDescription
CancelKeyCapture--
ClearBinding--Clears the current binding.
InitializeWidget--Initializes the widget (call after setting the InputAction).
OnKeyCaptureButtonClicked--Button-click event handler.
RefreshWidget--Refreshes the UI with the currently bound key info.
StartKeyCapture--Starts/cancels key-capture mode.