Struct DualMotorRumble
Common implementation of dual motor rumbling.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: UnityEngine.Experimental.Input.Haptics
Syntax
public struct DualMotorRumble
Properties
highFrequencyMotorSpeed
Declaration
public float highFrequencyMotorSpeed { get; }
Property Value
Type | Description |
---|---|
System.Single |
isRumbling
Declaration
public bool isRumbling { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
lowFrequencyMotorSpeed
Declaration
public float lowFrequencyMotorSpeed { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
PauseHaptics(InputDevice)
Declaration
public void PauseHaptics(InputDevice device)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device |
ResetHaptics(InputDevice)
Declaration
public void ResetHaptics(InputDevice device)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device |
ResumeHaptics(InputDevice)
Declaration
public void ResumeHaptics(InputDevice device)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device |
SetMotorSpeeds(InputDevice, Single, Single)
Declaration
public void SetMotorSpeeds(InputDevice device, float lowFrequency, float highFrequency)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device | |
System.Single | lowFrequency | |
System.Single | highFrequency |