Hello,
I was wondering if anyone has tried writing code to make a custom input controller work other than spoofing mouse/keyboard events?
I have used Arduino and Microsoft Gadgeteer before and written an application that sits in the tray, converting inputs into mouse/keyboard events (system-wide) but I was wondering if there was a more elegant way of doing it?
For example, my controller sends strings over virtual serial port (over USB), I have written the Java code to get this stream of strings in and parse them into "button 1 pressed/button 2 released" etc. but I am new to Minecraft modding and don't see how I can then hook this data into input events within minecraft.
Has anyone ever tried this? Or would know where to start?
I've found this controller mod on github (https://github.com/ljsimin/MinecraftJoypadSplitscreenMod/tree/master/MinecraftJoypadSplitscreenMod/src/com/shiny/joypadmod) but I'm not quite sure where it is hooking into Minecraft.
Thanks for your time!