Compare commits

...

2 Commits

Author SHA1 Message Date
rmschooley 16815a71b1
Update utils.go
Removed abs() function since lint states it is no longer used.
2025-05-17 20:46:23 -05:00
rmschooley f085e5e501
Update hid_mouse_absolute.go
Attempt to fix line reported as improperly formatted by lint.
2025-05-17 20:42:23 -05:00
2 changed files with 1 additions and 9 deletions

View File

@ -113,7 +113,7 @@ func (u *UsbGadget) AbsMouseWheelReport(wheelY int8) error {
}
err := u.absMouseWriteHidFile([]byte{
2, // Report ID 2
2, // Report ID 2
byte(wheelY), // Wheel Y (signed)
})

View File

@ -7,14 +7,6 @@ import (
"path/filepath"
)
// Helper function to get absolute value of float64
func abs(x float64) float64 {
if x < 0 {
return -x
}
return x
}
func joinPath(basePath string, paths []string) string {
pathArr := append([]string{basePath}, paths...)
return filepath.Join(pathArr...)