Class GameControllerDeviceExtensions
Provides easier ways to set vibration levels on a controller, rather than setting 4 motors
public static class GameControllerDeviceExtensions- Inheritance
- 
      objectGameControllerDeviceExtensions
Methods
IsButtonDown(IGameControllerDevice, int)
Determines whether the specified button is being pressed down
public static bool IsButtonDown(this IGameControllerDevice controller, int button)Parameters
- controllerIGameControllerDevice
- The controller 
- buttonint
- The button 
Returns
- bool
- trueif 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
- controllerIGameControllerDevice
- The controller 
- buttonint
- The button 
Returns
- bool
- trueif 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
- controllerIGameControllerDevice
- The controller 
- buttonint
- The button 
Returns
- bool
- trueif the specified button is released; otherwise,- false.