Search Unity

Question Can you get Haptic/Vibrate on mobile paired controllers?

Discussion in 'Input System' started by petey, Sep 30, 2022.

  1. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,824
    Hi there,

    Just working with pairing controllers to a mobile game. Input seems to be working okay, is there a way to use the trigger the haptic or vibrate feedback on a controller device?

    Thanks,
    Pete
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,048
    Depends on the controller.
    If the controller using xinput or directInput and has a motor, probably yes
     
  3. petey

    petey

    Joined:
    May 20, 2009
    Posts:
    1,824
    Ahhh damn, just found this in the docs. Looks like it won't work. :(

    Note: Only the following combinations of Devices/OSes currently support rumble:

    • PS4, Xbox, and Switch controllers, when connected to their respective consoles. Only supported if you install console-specific input packages in your Project.
    • PS4 controllers, when connected to Mac or Windows/UWP computers.
    • Xbox controllers on Windows.

    Apple has been doing a pretty good job of adding support for these devices over the past few years. Even switch controllers are compatible now so hopefully someone makes an asset to get this stuff working.
     
    DevDunk likes this.