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
| Field | Value |
|---|---|
| Kind | class |
| Environment | B1 - Presentation |
| Category | classes |
| Extends | UB1UserWidgetBase |
Properties (9)
| Name | Type | Description |
|---|---|---|
Anim_Hover | any | |
Anim_Selected | any | |
BW_ActionNameText | any | Action name display text. |
BW_BoundKeyWidget | any | Bound key display (UB1ActionKeyWidget: MappingName-based auto lookup or DirectKey combo display). |
BW_KeyCaptureButton | any | Button showing the currently bound key (enters key-capture mode on focus). |
BW_Text_Dirtystate | any | Unsaved-change indicator ('*'). |
BW_Text_Empty | any | Text shown when no key is assigned ('None'). |
GameMode | EB1GameMode | The game mode this widget handles. |
InputAction | any | The InputAction this widget handles. |
Functions (6)
| Function | Parameters | Returns | Description |
|---|---|---|---|
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. |