Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Gamepad SetMotorSpeeds not working on mobile with a Bluetooth connected gamepad

Discussion in 'Input System' started by PandaArcade, Aug 12, 2020.

  1. PandaArcade

    PandaArcade

    Joined:
    Jan 2, 2017
    Posts:
    119
    Hi :D

    I'm having trouble getting Gamepad.current.SetMotorSpeeds(lowFrequency, highFrequency) to working on iOS. It works perfectly in the editor but in a build, the Bluetooth connected gamepad does not rumble.

    Have you got this to work?

    Thanks for reading :)
     
  2. loodberg

    loodberg

    Joined:
    Apr 17, 2017
    Posts:
    2
    Hi, I am wondering the same thing. I have rumble working on Mac and Windows editors when using a wired connection. Controller work on iOS and tvOS and the api:s seem to indicate that rumble should work. Over bluetooth the controllers don't rumble on Mac or Windows either.

    if((Gamepad)playerInput.devices[0] is IDualMotorRumble rumble)
    rumble.SetMotorSpeeds(0.0f, 1.0f);
     
  3. loodberg

    loodberg

    Joined:
    Apr 17, 2017
    Posts:
    2
    PS. This is on Unity 2021.2.5f1 using InputSystem 1.2.0
     
  4. BillyWM

    BillyWM

    Joined:
    Dec 29, 2018
    Posts:
    14
    The docs don't mention this in the "known limitations" section but they call it out in the Gamepad reference instead:

    So for iOS it's simply not supported.
     
  5. rossiegulgowski

    rossiegulgowski

    Joined:
    Dec 21, 2021
    Posts:
    2
    Any updates on this? I'm looking for a solution for myself too!