Table of Contents

Class GameControllerDeviceExtensions

Namespace
Stride.Input
Assembly
Stride.Input.dll

Provides easier ways to set vibration levels on a controller, rather than setting 4 motors

public static class GameControllerDeviceExtensions
Inheritance
GameControllerDeviceExtensions

Methods

IsButtonDown(IGameControllerDevice, int)

Determines whether the specified button is being pressed down

public static bool IsButtonDown(this IGameControllerDevice controller, int button)

Parameters

controller IGameControllerDevice

The controller

button int

The button

Returns

bool

true if the specified button is being pressed down; otherwise, false.

IsButtonPressed(IGameControllerDevice, int)

Determines whether the specified button is pressed since the previous update.

public static bool IsButtonPressed(this IGameControllerDevice controller, int button)

Parameters

controller IGameControllerDevice

The controller

button int

The button

Returns

bool

true if the specified button is pressed; otherwise, false.

IsButtonReleased(IGameControllerDevice, int)

Determines whether the specified button is released since the previous update.

public static bool IsButtonReleased(this IGameControllerDevice controller, int button)

Parameters

controller IGameControllerDevice

The controller

button int

The button

Returns

bool

true if the specified button is released; otherwise, false.