mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-20 10:14:18 +01:00
refactor(usb): move usbconfig to a seperated package
This commit is contained in:
11
internal/usbgadget/hid.go
Normal file
11
internal/usbgadget/hid.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user