Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to use mini Wireless Bluetooth Joystick with iOS and VR?

Discussion in 'AR/VR (XR) Discussion' started by Slyrfecso1, Apr 3, 2016.

  1. Slyrfecso1

    Slyrfecso1

    Joined:
    Jul 16, 2012
    Posts:
    100
    Hi,

    I'd like use this controller in my project, but unfortunately nothing is happening after
    I paired them in my project. On Android is working well, but on iOS something is missing...

    This is the joystick what I want to use.



    I have changed the Horizontal Axis to "3rd axis (Joysticks and Scrollwheel)"
    I have changed the Vertical Axis to "4th axis (Joysticks)"

    Code (CSharp):
    1. void Update() {
    2.     float h = Input.GetAxis("Horizontal");
    3.     float v = Input.GetAxis("Vertical");
    4.     transform.position += new Vector3 (h * 0.1f, 0f, v * 0.1f);
    5.  
    6.     }
    Any Idea will be helpful.
     
  2. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    Currently Unity only supports mFi controllers on IOS.
     
  3. Taishou

    Taishou

    Joined:
    Jun 24, 2014
    Posts:
    21
    I had the same issue. The reason is that Apple supports certified bluetooth controllers only.