Skip to content

UICanvas.ProcessGamepadInput(IInputContext, bool, int) Method

Definition

Namespace: Brine2D.UI

Processes gamepad input for UI navigation. Returns true if input was consumed. D-Pad/left-stick up/down cycles focus; left/right nudges sliders or switches tabs. A activates the focused widget; B dismisses the active modal dialog. Navigation is scoped to the dialog when one is active.

C#
public bool ProcessGamepadInput(Brine2D.Input.IInputContext input, bool consumed, int gamepadIndex=0);

Parameters

input IInputContext

consumed System.Boolean

gamepadIndex System.Int32

Returns

System.Boolean