libogc icon indicating copy to clipboard operation
libogc copied to clipboard

basic usb HID controller driver based on the usb keyboard driver

Open DacoTaco opened this issue 4 years ago • 0 comments

This is a draft PR so everyone can review, pitch ideas & opinions about something i (to me feelings?) threw together. I would love to hear the opinions so i can change or investigate something , so we can make this better!

the driver is based on the usb keyboard driver so it works with an event handler that reports what is pressed/unpressed and what the value is. Personally i would like it to work like the WPAD/PAD functions but with every controller having different interfaces (amount of buttons, axis, hat's) i have no idea if that would even work without a shit ton of defines & high memory usage?

the event is something like 'button number 2 was pressed' , 'Axis Moved, new value = X' or 'button 15 is released'

the consuming homebrew would only need to init the driver, open the controller, do a scan to poll and interpret the events in their handler.

as an example : https://0bin.net/paste/Tf1F1hNO#gVoUmD0k6ojeVv2xnwvgc-347HwRP6rDOz7ifrClp1Y

this does not support dualshock controller or the Wii GC adapter , currently unknown if those could work with this or what would need to change to support them

DacoTaco avatar May 13 '21 10:05 DacoTaco