Click or drag to resize

GCControllerDualShock4Extension Class

Allows access to controller-specific functions.
Inheritance Hierarchy
SystemObject
  RewiredControllerExtension
    Rewired.Platforms.Apple.GameControllerGCControllerExtension
      Rewired.Platforms.Apple.GameControllerGCControllerDualShock4Extension

Namespace:  Rewired.Platforms.Apple.GameController
Assembly:  Rewired_OSX (in Rewired_OSX.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GCControllerDualShock4Extension : GCControllerExtension, 
	IDualShock4Extension, IControllerVibrator

The GCControllerDualShock4Extension type exposes the following members.

Properties
  NameDescription
Public propertycontroller
The parent controller of this extension.
(Inherited from ControllerExtension.)
Public propertymaxTouches
Number of simultaneous touches supported by this device.
Public propertynativeDevicePointer
Gets the native pointer to the GCController object. This is only useful for direct interaction with the Game Controller framework. If the pointer is unavailable or invalid, returns IntPtr.Zero.
(Inherited from GCControllerExtension.)
Public propertynativePlayerIndex
Gets the native player index. This corresponds to playerIndex in the Game Controller framework. This is only useful for direct interaction with the Game Controller framework.
(Inherited from GCControllerExtension.)
Public propertytouchCount
The current touch count.
Public propertyvibrationMotorCount
The number of vibration motors in this controller.
Top
Methods
  NameDescription
Public methodGetAccelerometerValue
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.
Public methodGetAccelerometerValueRaw
Gets the raw value from the accelerometer as reported by the device. Note: Device coordinate system does not match Unity's.
Public methodGetElementLocalizedName
Gets the native localized name of a controller element. If the element has been remapped by the user in the OS, this will return the remapped localized name.
(Inherited from GCControllerExtension.)
Public methodGetElementSfSymbolsName
Gets the native system symbol name of a controller element. If the element has been remapped by the user in the OS, this will return the remapped symbol name.
(Inherited from GCControllerExtension.)
Public methodGetElementUnmappedLocalizedName
Gets the native un-remapped localized name of a controller element.
(Inherited from GCControllerExtension.)
Public methodGetElementUnmappedSfSymbolsName
Gets the native un-remapped system symbol name of a controller element.
(Inherited from GCControllerExtension.)
Public methodGetGyroscopeValue
Gets the value from the gyroscope converted to Unity's coordinate system.
Public methodGetGyroscopeValueRaw
Gets the raw value from the gyroscope as reported by the device. Note: Device coordinate system does not match Unity's.
Public methodGetOrientation
Gets the orientation converted to Unity's coordinate system.
Public methodGetTouchId
Gets the touch id for the touch at the specified index.
Public methodGetTouchPosition
Gets the touch position for a particular index normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
Public methodGetTouchPositionByTouchId
Gets the touch position for a particular touch id normalized to a 0 - 1 range. (Left = 0, Bottom = 0)
Public methodGetVibration
Gets vibration level for a motor at a specified index.
Public methodIsTouching
Determines if the current touch id is valid for any currently active touch.
Public methodIsTouchingByTouchId
Determines if the current touch id is valid for any currently active touch.
Public methodResetOrientation
Resets the orientation.
Public methodSetLightColor(Color)
Sets the light color. Alpha can be used to set intensity.
Public methodSetLightColor(Single, Single, Single)
Sets the light color.
Public methodSetLightColor(Single, Single, Single, Single)
Sets the light color.
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(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(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 level for left and right motors.
Public methodStopVibration
Stops vibration on all motors.
Top
See Also