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

Android device can't support two joystick

Discussion in 'Android' started by AtwoodYen, Oct 25, 2014.

  1. AtwoodYen

    AtwoodYen

    Joined:
    Aug 13, 2014
    Posts:
    7
    Dear Friend..

    We are the beginner of Unity 3D, want to use two Joystick/GamePad devices on Unity, the situation now is two Joystick/GamePad can work fine on PC/MAC platform (Detect joystick 1 xxx and Joystick 2 xxx), but when we porting the APK to android device, We can only got one Joystick/GamePad.
    The same source code without change, but switch to Samsung SmartTV platform, It will work just fine !
    So, Is there anyone can help us, What's should we do on Android platform for support two Joystick/GamePad ?

    Thanks!
     
  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    Perhaps it's as easy as enabling multitouch. I think it's Input.MultiTouchEnabled = true; in the awake or start of a script, enabled on android. If my memory serves me right I had to do that a couple times.
     
  3. AtwoodYen

    AtwoodYen

    Joined:
    Aug 13, 2014
    Posts:
    7
    Thanks you MD_Reptile again !

    We try your suggestion these days, But unfortunately it's not work too, The detail situation is we can get 1P & 2P's 4 direction button, but only 1P's button (Like 1,2,3,4 or A,B,X,Y and L1,R1,L2,R2,Start...) can be detected, 2P will still not work.

    Any suggestion ?
     
  4. SIO_BA

    SIO_BA

    Joined:
    Jun 23, 2014
    Posts:
    2
    We found this while searching: https://github.com/CMZCODE/GamePadSampleUnity

    But we haven't tried it as of yet.

    From the readme:
    We'll report back once we have evaluated it.
     
  5. SIO_BA

    SIO_BA

    Joined:
    Jun 23, 2014
    Posts:
    2
  6. AtwoodYen

    AtwoodYen

    Joined:
    Aug 13, 2014
    Posts:
    7
    Dear SIO_BA..

    Thank you very much and we will try it today !!
     
  7. hiteshmedia

    hiteshmedia

    Joined:
    Apr 22, 2019
    Posts:
    1
    @AtwoodYen Did you get the solution actually i am also facing same issue .I have created a project on Unity 2021.3 where I have used new input System. I have created two joystick both joystick and controls are working properly but in unity remote testing where joystick working individually but not working simultaneously. I think the input system detecting only single touch. can you help me to resolve it.