Skip to content

IInputLayer.ProcessGamepadInput(IInputContext, bool) Method

Definition

Namespace: Brine2D.Input

Process gamepad input. Return true to consume and prevent lower layers from acting on it. Defaults to false; override when a layer needs to block gamepad input (e.g., a modal dialog that should intercept confirm/cancel buttons).

bool ProcessGamepadInput(Brine2D.Input.IInputContext input, bool consumed);

Parameters

input IInputContext

The input context for the current frame.

consumed System.Boolean

True if a higher-priority layer already consumed gamepad input.

Returns

System.Boolean