diff --git a/src/machine/usb/hid/keyboard/keyboard.go b/src/machine/usb/hid/keyboard/keyboard.go index f0d253f6..2dc36e68 100644 --- a/src/machine/usb/hid/keyboard/keyboard.go +++ b/src/machine/usb/hid/keyboard/keyboard.go @@ -63,6 +63,12 @@ func init() { } } +// New returns the USB hid-keyboard port. +// Deprecated, better to just use Port() +func New() *keyboard { + return Port() +} + // Port returns the USB hid-keyboard port. func Port() *keyboard { return Keyboard diff --git a/src/machine/usb/hid/mouse/mouse.go b/src/machine/usb/hid/mouse/mouse.go index 0d63d717..4d80add4 100644 --- a/src/machine/usb/hid/mouse/mouse.go +++ b/src/machine/usb/hid/mouse/mouse.go @@ -27,6 +27,12 @@ func init() { } } +// New returns the USB hid-mouse port. +// Deprecated, better to just use Port() +func New() *mouse { + return Port() +} + // Port returns the USB hid-mouse port. func Port() *mouse { return Mouse diff --git a/src/machine/usb/midi/midi.go b/src/machine/usb/midi/midi.go index 9815cb3a..58f802b5 100644 --- a/src/machine/usb/midi/midi.go +++ b/src/machine/usb/midi/midi.go @@ -24,6 +24,12 @@ func init() { } } +// New returns the USB MIDI port. +// Deprecated, better to just use Port() +func New() *midi { + return Port() +} + // Port returns the USB midi port. func Port() *midi { return Midi