refactor(usb): move usbconfig to a seperated package

This commit is contained in:
Siyuan Miao
2025-03-10 02:08:47 +01:00
parent c088534d34
commit d1948adca8
16 changed files with 1045 additions and 604 deletions

11
internal/usbgadget/hid.go Normal file
View File

@@ -0,0 +1,11 @@
package usbgadget
import "time"
func (u *UsbGadget) resetUserInputTime() {
u.lastUserInput = time.Now()
}
func (u *UsbGadget) GetLastUserInputTime() time.Time {
return u.lastUserInput
}