Interface INPadRumble | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface INPadRumble

    Extended dual motor gamepad that adds seperate controls for rumble frequency and amplitude.

    Inherited Members
    IDualMotorRumble.SetMotorSpeeds(Single, Single)
    IHaptics.PauseHaptics()
    IHaptics.ResumeHaptics()
    IHaptics.ResetHaptics()
    Namespace: UnityEngine.InputSystem.Plugins.Switch
    Syntax
    public interface INPadRumble : IDualMotorRumble, IHaptics

    Methods

    SetMotorSpeedLeft(Single, Single, Single, Single)

    Set rumble for left motor

    Declaration
    void SetMotorSpeedLeft(float lowAmplitued, float lowFrequency, float highAmplitued, float highFrequency)
    Parameters
    Type Name Description
    System.Single lowAmplitued
    System.Single lowFrequency
    System.Single highAmplitued
    System.Single highFrequency

    SetMotorSpeedRight(Single, Single, Single, Single)

    Set rumble for right motor

    Declaration
    void SetMotorSpeedRight(float lowAmplitued, float lowFrequency, float highAmplitued, float highFrequency)
    Parameters
    Type Name Description
    System.Single lowAmplitued
    System.Single lowFrequency
    System.Single highAmplitued
    System.Single highFrequency

    SetMotorSpeeds(Single, Single, Single, Single)

    Set rumble for all motors

    Declaration
    void SetMotorSpeeds(float lowAmplitued, float lowFrequency, float highAmplitued, float highFrequency)
    Parameters
    Type Name Description
    System.Single lowAmplitued
    System.Single lowFrequency
    System.Single highAmplitued
    System.Single highFrequency
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023