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

Input-device selection, default bindings, and label callbacks for PC controls. More...

#include <frontend.h>

Static Public Member Functions

static int OnRestoreDefaults (MenuWidget *pWidget)
 Reload default bindings when the selected device index is in 0..3.
static int OnCycleInputDevice (MenuWidget *pWidget)
 Cycle among device indices 0, 2, and 3 using mouse edges, then select and back up bindings.
static int UpdateInputDeviceImage (MenuWidget *pWidget)
 Select the sprite for the current input device.
static int UpdateInputDeviceLabel (MenuWidget *pWidget)
 Refresh and measure the input-device label, then process its text-input update.
static int OnBack (MenuActionWidget *pItem)
 Destroy the active input-options screen, clear its cache, and return to cached Options.

Detailed Description

Input-device selection, default bindings, and label callbacks for PC controls.

Member Function Documentation

◆ OnRestoreDefaults()

int InputOptionsUI::OnRestoreDefaults ( MenuWidget * pWidget)
static

Reload default bindings when the selected device index is in 0..3.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One, including for an out-of-range device index.
Ghidra address:
BRD3D: 0x100406c0
Ghidra address:
BRGlide: 0x10039c00

◆ OnCycleInputDevice()

int InputOptionsUI::OnCycleInputDevice ( MenuWidget * pWidget)
static

Cycle among device indices 0, 2, and 3 using mouse edges, then select and back up bindings.

Parameters
pWidgetThe unused widget pointer, possibly null.
Returns
One.
Ghidra address:
BRD3D: 0x10043400
Ghidra address:
BRGlide: 0x1003c950

◆ UpdateInputDeviceImage()

int InputOptionsUI::UpdateInputDeviceImage ( MenuWidget * pWidget)
static

Select the sprite for the current input device.

Parameters
pWidgetThe non-null borrowed input-device image widget.
Returns
One.
Ghidra address:
BRD3D: 0x10041870
Ghidra address:
BRGlide: 0x1003add0

◆ UpdateInputDeviceLabel()

int InputOptionsUI::UpdateInputDeviceLabel ( MenuWidget * pWidget)
static

Refresh and measure the input-device label, then process its text-input update.

Parameters
pWidgetThe non-null borrowed label widget with primary text storage.
Returns
One.
Ghidra address:
BRD3D: 0x1003ffd0
Ghidra address:
BRGlide: 0x10039510

◆ OnBack()

int InputOptionsUI::OnBack ( MenuActionWidget * pItem)
static

Destroy the active input-options screen, clear its cache, and return to cached Options.

Parameters
pItemA non-null active-screen widget, invalidated when its panels are destroyed.
Returns
Zero to end the current widget update.
Ghidra address:
BRD3D: 0x100465a0
Ghidra address:
BRGlide: 0x1003fa40

The documentation for this class was generated from the following file: