Click or drag to resize

XboxOneGamepadExtension Class

Allows access to platform-specific controller functions such as vibration.
Inheritance Hierarchy
SystemObject
  RewiredControllerExtension
    Rewired.Platforms.XboxOneXboxOneGamepadExtension

Namespace: Rewired.Platforms.XboxOne
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class XboxOneGamepadExtension : ControllerExtension, 
	IControllerVibrator

The XboxOneGamepadExtension type exposes the following members.

Properties
 NameDescription
Public propertycontroller The parent controller of this extension.
(Inherited from ControllerExtension)
Public propertyvibrationMotorCount The number of vibration motors in this controller.
Public propertyxboxOneJoystickId The Xbox One joystick id for this controller.
Public propertyxboxOneUserId The Xbox One user id to which this controller is assigned.
Top
Methods
 NameDescription
Public methodGetVibration(Int32) Gets vibration level for a motor at a specified index.
Public methodGetVibration(XboxOneGamepadMotorType) Gets vibration level for a specific motor.
Public methodPulseVibrateMotor Pulses the vibration motor for a specified duration.
Public methodSetVibration(Int32, Single) Sets vibration level for a motor at a specified index.
Public methodSetVibration(Single, Single) Sets vibration level for left and right motors.
Public methodSetVibration(XboxOneGamepadMotorType, Single) Sets vibration leves on an individual motor.
Public methodSetVibration(Int32, Single, Boolean) Sets vibration level for a motor at a specified index.
Public methodSetVibration(Int32, Single, Single) Sets vibration level for a motor at a specified index with a timeout.
Public methodSetVibration(Single, Single, Boolean) Sets vibration level for left and right motors.
Public methodSetVibration(XboxOneGamepadMotorType, Single, Boolean) Sets vibration level on an individual motor.
Public methodSetVibration(XboxOneGamepadMotorType, Single, Single) 
Public methodSetVibration(Int32, Single, Single, Boolean) Sets vibration level for a motor at a specified index with a timeout.
Public methodSetVibration(Single, Single, Single, Single) Sets vibration levels on all 4 motors.
Public methodSetVibration(XboxOneGamepadMotorType, Single, Single, Boolean) 
Public methodStopVibration Stops vibration on all motors.
Top
See Also