coastline 0.0.4
Loading...
Searching...
No Matches
KeyConfigUI Class Reference

Action selection, key capture, and binding-warning callbacks for PC input configuration. More...

#include <frontend.h>

Static Public Member Functions

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.

Detailed Description

Action selection, key capture, and binding-warning callbacks for PC input configuration.

Member Function Documentation

◆ UpdateActionSelection()

int KeyConfigUI::UpdateActionSelection ( MenuWidget * pWidget)
static

Draw and process the action list, updating the selected action on row activation.

Parameters
pWidgetA 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
pWidgetA 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
pWidgetA 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
pWidgetThe 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
pWidgetThe unused widget pointer, possibly null.
Returns
One, including when capture is already active.
Ghidra address:
BRD3D: 0x10040680
Ghidra address:
BRGlide: 0x10039bc0

◆ OnBack()

int KeyConfigUI::OnBack ( MenuActionWidget * pItem)
static

Destroy key configuration, return to cached input options, and release the joystick device.

Parameters
pItemA 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: