Action selection, key capture, and binding-warning callbacks for PC input configuration.
More...
#include <frontend.h>
|
| static int | UpdateActionSelection (MenuWidget *pWidget) |
| | Draw and process the action list, updating the selected action on row activation.
|
| static int | UpdateBindingLabel (MenuWidget *pWidget) |
| | Refresh the binding label or capture prompt, measure it, and process its text-input update.
|
| static int | UpdateDuplicateBindingWarning (MenuWidget *pWidget) |
| | Update the duplicate-binding warning and highlight an affected selected action.
|
| static int | PollKeyCapture (MenuWidget *pWidget) |
| | Poll keyboard, joystick, or mouse capture, update the selected binding, and detect duplicates.
|
| static int | BeginKeyCapture (MenuWidget *pWidget) |
| | Enable key capture, clear pending character input, and reset keyboard edge state if needed.
|
| static int | OnBack (MenuActionWidget *pItem) |
| | Destroy key configuration, return to cached input options, and release the joystick device.
|
Action selection, key capture, and binding-warning callbacks for PC input configuration.
◆ UpdateActionSelection()
| int KeyConfigUI::UpdateActionSelection |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Draw and process the action list, updating the selected action on row activation.
- Parameters
-
| pWidget | A non-null borrowed widget with the action list. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x1003ec80
- Ghidra address:
- BRGlide: 0x100382a0
◆ UpdateBindingLabel()
| int KeyConfigUI::UpdateBindingLabel |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Refresh the binding label or capture prompt, measure it, and process its text-input update.
Invalid device indices preserve prior label text.
- Parameters
-
| pWidget | A non-null borrowed label widget with primary text storage. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x100400e0
- Ghidra address:
- BRGlide: 0x10039620
◆ UpdateDuplicateBindingWarning()
| int KeyConfigUI::UpdateDuplicateBindingWarning |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Update the duplicate-binding warning and highlight an affected selected action.
The primary font is measured and its text-input update is processed.
- Parameters
-
| pWidget | A non-null borrowed warning widget with primary text storage. |
- Returns
- One.
- Ghidra address:
- BRD3D: 0x1003f8d0
- Ghidra address:
- BRGlide: 0x10038e10
◆ PollKeyCapture()
| int KeyConfigUI::PollKeyCapture |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Poll keyboard, joystick, or mouse capture, update the selected binding, and detect duplicates.
A pending release marker ends capture when no keyboard code is detected. Mouse captures first wait for all raw mouse buttons to be released.
- Parameters
-
| pWidget | The unused widget pointer, possibly null. |
- Returns
- One, including while capture is inactive or the selected device is invalid.
- Ghidra address:
- BRD3D: 0x10040450
- Ghidra address:
- BRGlide: 0x10039990
◆ BeginKeyCapture()
| int KeyConfigUI::BeginKeyCapture |
( |
MenuWidget * | pWidget | ) |
|
|
static |
Enable key capture, clear pending character input, and reset keyboard edge state if needed.
- Parameters
-
| pWidget | The unused widget pointer, possibly null. |
- Returns
- One, including when capture is already active.
- Ghidra address:
- BRD3D: 0x10040680
- Ghidra address:
- BRGlide: 0x10039bc0
◆ OnBack()
Destroy key configuration, return to cached input options, and release the joystick device.
- Parameters
-
| pItem | A non-null active-screen widget, invalidated when its panels are destroyed. |
- Returns
- Zero to end the current widget update.
- Ghidra address:
- BRD3D: 0x10046560
- Ghidra address:
- BRGlide: 0x1003fa00
The documentation for this class was generated from the following file: