Custom input hardware, how to integrate with unity

Currently we have a custom Android device with a piece of custom hardware (basically a single axis joystick with a sort of haptic feedback) that we talk to over I2C. We are looking in to using Unity to develop games for our system instead of using a custom in house game engine, but we need to be able to get input from this custom device, and send output to it.

I found some links showing that it may be possible to do this, but I can’t figure out how. I have not seen any examples on how to get custom input in to unity from android. Currently the input driver is some java code, but it looks like unity is all in C#?

Can anyone help me with my nooby confusion?

Thanks!
Mike

We decided to switch to a custom HID device, still having the same issues though, I can’t find any examples on how to access a HID device on Android… Any help? Please? :slight_smile:

Hi, you should be able to achieve what you want using the plugin. You can create a java or c++ plugin and import it to Unity project. Please see this manual page for more information about the plugins Unity - Manual: Create and use plug-ins in Android