Skip to content

IInputContext.IsGamepadAxisPressed(GamepadAxis, int) Method

Definition

Namespace: Brine2D.Input

Returns true if the gamepad axis crossed the deadzone threshold this frame (was inactive last frame, active now).

bool IsGamepadAxisPressed(Brine2D.Input.GamepadAxis axis, int gamepadIndex=0);

Parameters

axis GamepadAxis

gamepadIndex System.Int32

Returns

System.Boolean