Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic usb HID controller driver based on the usb keyboard driver #115

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DacoTaco
Copy link
Member

@DacoTaco DacoTaco commented May 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant