IDualSenseExtension Methods |
The IDualSenseExtension type exposes the following members.
Name | Description | |
---|---|---|
GetAccelerometerValue |
Gets the value from the accelerometer converted to Unity's coordinate system.
The value returned could be thought of as a gravity vector and user acceleration combined.
If using this value to apply a force in the direction of the vector, invert each axis first.
This value represents the last value reported by the accelerometer.
(Inherited from IDualShock4Extension.) | |
GetAccelerometerValueRaw |
Gets the raw value from the accelerometer as reported by the device.
Note: Device coordinate system does not match Unity's.
(Inherited from IDualShock4Extension.) | |
GetGyroscopeValue |
Gets the value from the gyroscope converted to Unity's coordinate system.
(Inherited from IDualShock4Extension.) | |
GetGyroscopeValueRaw |
Gets the raw value from the gyroscope as reported by the device.
Note: Device coordinate system does not match Unity's.
(Inherited from IDualShock4Extension.) | |
GetOrientation |
Gets the orientation converted to Unity's coordinate system.
(Inherited from IDualShock4Extension.) | |
GetTouchId |
Gets the touch id for the touch at the specified index.
(Inherited from IDualShock4Extension.) | |
GetTouchPosition |
Gets the touch position for a particular index normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
(Inherited from IDualShock4Extension.) | |
GetTouchPositionByTouchId |
Gets the touch position for a particular touch id normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
(Inherited from IDualShock4Extension.) | |
GetTriggerEffectStates |
Gets the current trigger effect states.
| |
GetVibration |
Gets vibration level for a motor at a specified index.
(Inherited from IControllerVibrator.) | |
IsTouching |
Determines if the current touch id is valid for any currently active touch.
(Inherited from IDualShock4Extension.) | |
IsTouchingByTouchId |
Determines if the current touch id is valid for any currently active touch.
(Inherited from IDualShock4Extension.) | |
ResetOrientation |
Resets the orientation.
(Inherited from IDualShock4Extension.) | |
SetLightColor(Color) |
Sets the light color. Alpha can be used to set intensity.
(Inherited from IDualShock4Extension.) | |
SetLightColor(Single, Single, Single) |
Sets the light color.
(Inherited from IDualShock4Extension.) | |
SetLightColor(Single, Single, Single, Single) |
Sets the light color.
(Inherited from IDualShock4Extension.) | |
SetTriggerEffect |
Sets a trigger effect.
| |
SetVibration(Single, Single) |
Sets vibration level for left and right motors.
(Inherited from IDualShock4Extension.) | |
SetVibration(Int32, Single) |
Sets vibration level for a motor at a specified index.
(Inherited from IControllerVibrator.) | |
SetVibration(Int32, Single, Boolean) |
Sets vibration level for a motor at a specified index.
(Inherited from IControllerVibrator.) | |
SetVibration(Int32, Single, Single) |
Sets vibration level for a motor at a specified index with a timeout.
(Inherited from IControllerVibrator.) | |
SetVibration(Single, Single, Single, Single) |
Sets vibration level for left and right motors.
(Inherited from IDualShock4Extension.) | |
SetVibration(Int32, Single, Single, Boolean) |
Sets vibration level for a motor at a specified index with a timeout.
(Inherited from IControllerVibrator.) | |
StopVibration |
Stops vibration on all motors.
(Inherited from IControllerVibrator.) |