- Home /
Bluetooth Controller Input
Hello,
I bought myself a Bluetooth gaming controller for iOS and Android, it was pretty cheap to be honest. But I'm interested in connecting it to my Unity Project. However, I'm not really sure how to get it to communicate to Unity, let alone get the Inputs.
I've connected the controller to my mac, and I tried printing the Input.GetAxis, but it's retrieving 0. Will Unity pick up this controller input by default?
Do I need any middle-program running to port the bluetooth to Unity?
Thanks.
Update --
I've downloaded a Joystick mapper for mac (https://yukkurigames.com/enjoyable/) and that is picking up my Input from the controller. However Unity is not. It works if I map the Joystick axis to Left/Right/Up/Down arrows. But this is not a solution.
Thanks
i am also having the same problem. any solution please?
Answer by Thorny2000 · Dec 15, 2016 at 07:57 PM
Restart Unity so it detects the newly connected controller.
Hello, this didn't make a difference. I'm checking the Input via:
print("Vertical : " + Input.GetAxis("Vertical"));
print("Horizontal : " + Input.GetAxis("Horizontal"));
Still at 0, and my Input is at: