Compare commits

...

2 Commits

Author SHA1 Message Date
rmschooley 756dac38ed
Add mouse wheel horizontal scroll support 2025-05-16 12:02:39 -05:00
rmschooley 63e96cf5bb
Add mouse wheel horizontal scroll support 2025-05-16 12:01:11 -05:00
2 changed files with 3 additions and 3 deletions

View File

@ -994,7 +994,7 @@ var rpcHandlers = map[string]RPCHandler{
"keyboardReport": {Func: rpcKeyboardReport, Params: []string{"modifier", "keys"}},
"absMouseReport": {Func: rpcAbsMouseReport, Params: []string{"x", "y", "buttons"}},
"relMouseReport": {Func: rpcRelMouseReport, Params: []string{"dx", "dy", "buttons"}},
"wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY"}},
"wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY", "wheelX"}},
"getVideoState": {Func: rpcGetVideoState},
"getUSBState": {Func: rpcGetUSBState},
"unmountImage": {Func: rpcUnmountImage},

4
usb.go
View File

@ -38,8 +38,8 @@ func rpcRelMouseReport(dx, dy int8, buttons uint8) error {
return gadget.RelMouseReport(dx, dy, buttons)
}
func rpcWheelReport(wheelY int8) error {
return gadget.AbsMouseWheelReport(wheelY)
func rpcWheelReport(wheelY, wheelX int8) error {
return gadget.AbsMouseWheelReport(wheelY, wheelX)
}
var usbState = "unknown"