mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user