dfaa87994a
- USB-Input via evdev wird nur auf Linux gebaut (build tag linux) - Windows bekommt USB-Stub (build tag !linux) - Binaries: sportscore-linux-amd64 (ELF 64-bit), sportscore-windows-amd64.exe (PE32+) - Alle Tests bestanden
13 lines
355 B
Go
13 lines
355 B
Go
// Package usb provides keyboard input handling.
|
|
// Platform-independent types and interfaces.
|
|
package usb
|
|
|
|
// Key represents a keyboard key event.
|
|
type Key struct {
|
|
Code uint16 // Linux input event code
|
|
Type string // "press", "release"
|
|
}
|
|
|
|
// Keyboard represents an input device (keyboard).
|
|
// The concrete type is defined per-platform via build tags.
|