forked from sin365/AxibugEmuOnline
28 lines
918 B
C#
28 lines
918 B
C#
#if UNITY_EDITOR || UNITY_SWITCH
|
|
using UnityEngine.InputSystem.Haptics;
|
|
|
|
namespace UnityEngine.InputSystem.Switch
|
|
{
|
|
/// <summary>
|
|
/// Extended dual motor gamepad that adds seperate controls for rumble frequency and amplitude.
|
|
/// </summary>
|
|
public interface INPadRumble : IDualMotorRumble
|
|
{
|
|
/// <summary>
|
|
/// Set rumble for all motors
|
|
/// </summary>
|
|
void SetMotorSpeeds(float lowAmplitude, float lowFrequency, float highAmplitude, float highFrequency);
|
|
|
|
/// <summary>
|
|
/// Set rumble for left motor
|
|
/// </summary>
|
|
void SetMotorSpeedLeft(float lowAmplitude, float lowFrequency, float highAmplitude, float highFrequency);
|
|
|
|
/// <summary>
|
|
/// Set rumble for right motor
|
|
/// </summary>
|
|
void SetMotorSpeedRight(float lowAmplitude, float lowFrequency, float highAmplitude, float highFrequency);
|
|
}
|
|
}
|
|
#endif
|