-
Notifications
You must be signed in to change notification settings - Fork 22
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
[PACKAGE/BOARD] Add handle usb-hid gadget #55
Conversation
e6914fb
to
eb0fa2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're making these devices worth your money ;p. I did a quick test on a Win machine and np!
The python world is unknown to me but I see it has potential! AFAIK smb wrote a neat frontend in py back in the days.
0cf2e49
to
719a756
Compare
last question: why not use tarball from boppreh/keyboard? |
e31adfe
to
96ccb05
Compare
done |
How did you find hid codes for DV special keys, while everything else follows Usage ID numbering? My suggestion is to add Marking as resolved, well played. |
I have small issue on my Win machine, when before it registered device as CDC after connection but after HID gadget activation it now only register it by HID device and I can't connect handheld to old serial port. |
When the device is in HID mode serial connection won't work. I checked, and after exiting from HID mode and switching back to CDC mode serial connection works correctly on my Win machine |
https://www.usb.org/sites/default/files/hid1_11.pdf page 56 chapter 8.3 Report Format for Array Items Maybe add another function |
Great much easier to understand now.
It did not on my, even after rebooting or changing to stock SD. It always register as HID device after using gadget, I had to unregister driver from Windows and then it showed CDC again. This was on old 8.1 machine, I'll try latest Win tonight. |
this could be related that we always use the same product/vendor ID, and old Win cannot handle it |
Yes it works correct on Win 11, so I guess it's the best to leave it as it was (e507b56 - this somewhat works but I've to restart handheld to enable ms-gadget again). |
a8970e2
to
8830c02
Compare
Tunr your handheld into usb gamepad for PC
rm _usb-hid.sh & use one script file to exec
When u connect USB OTG changing mode to peripheral it seems it doesn't revert to b_idle after disconnecting devices, so the USB-HID start even when devices are not connected. On the second usb-hid.sh run every seems to go back to normal. |
in fact, it should not require device connected, but when it is in b_idle state, it hangs, so this check is a workaround to avoid such issue |
MiyooCFW rubberDucky on the way? |
Turn your handheld into usb gamepad for PC
Usage:
mappings:
dpad mapped to arrows
b mapped to l_ctrl
a mapped to space
y mapped to l_shift
x mapped to x
select mapped to backspace
start mapped to enter
lpad1 mapped to l_alt
rpad1 mapped to tab
lpad2 mapped to pg_up
rpad2 mapped to pg_down
reset not mapped, used to quit
PS Works also with phone