Add USB HID joystick support (#3366)

machine/usb: add USB HID joystick support
This commit is contained in:
irieda
2023-01-08 06:30:40 +09:00
committed by GitHub
parent 0566bbfeb4
commit a7ff2731b9
10 changed files with 482 additions and 14 deletions
+3 -2
View File
@@ -2,11 +2,12 @@ package midi
import (
"machine"
"machine/usb"
)
const (
midiEndpointOut = 5 // from PC
midiEndpointIn = 6 // to PC
midiEndpointOut = usb.MIDI_ENDPOINT_OUT // from PC
midiEndpointIn = usb.MIDI_ENDPOINT_IN // to PC
)
var Midi *midi