Using Custom Bluetooth HID input device for Android Unity Application.
Hi everyone,
I developing custom HID device controller. I will attach my hardware to contents by 2 way. The one is using usb hid for PC, and another one is bluetooth hid for android.
For the first one, I'm approaching using "HIDSharp" library. And I success send HID report to PC from my hardware and read on Unity. But there is little bit lag for reading. I will resolving this problem separate HID report read from hardware & write on buffer function and read buffer and use it for charactor moving fuction and first is operating on background thread and second function operate on main thread( Update()).
The Second way is using bluetooth HID. USB HID for PC is relatively easy, because Test Enviroment(PC) and Release Enviroment(PC) is same. So, I used common C# USB HID library for access and read data on System buffer.
But I have no idea for using Bluetooth HID.
I want to know design of overhall system.
How can I code unity script to access and read report from bluetooth hid device? (I need more fundamental Idea not such as Plugin.)
I think maybe it need "bridge" between android Unity Application and Android Bluetooth control module(?), but I'm not sure.
Please help me. Let me know directly or link websites...
Thank you guys.
Your answer
Follow this Question
Related Questions
how to my player configure the type of input he will use. (android) 0 Answers
Please Help Im confuse im beginner in using unity. 1 Answer
Multiplayer Android game using Bluetooth connectivity 0 Answers
Is there a way to stop collecting device IDs in Android builds? 0 Answers
Player follow touch when holding down your finger on the screen (C#) 1 Answer