machine/usb/hid/joystick: move joystick under HID as it belongs and also remove duplicate code

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-03-31 15:40:40 +02:00
committed by Ron Evans
parent 7d83e76833
commit 9e97566b5f
6 changed files with 80 additions and 150 deletions
+2
View File
@@ -50,6 +50,8 @@ func handler() {
}
}
var DefaultSetupHandler = setupHandler
func setupHandler(setup usb.Setup) bool {
ok := false
if setup.BmRequestType == usb.SET_REPORT_TYPE && setup.BRequest == usb.SET_IDLE {