Compare commits

..

No commits in common. "756dac38ed6cc0f488edd202fd0f11fbcd08de21" and "69dc5b8b5ab776f42f0a0920574f3945830c4dda" have entirely different histories.

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"}}, "keyboardReport": {Func: rpcKeyboardReport, Params: []string{"modifier", "keys"}},
"absMouseReport": {Func: rpcAbsMouseReport, Params: []string{"x", "y", "buttons"}}, "absMouseReport": {Func: rpcAbsMouseReport, Params: []string{"x", "y", "buttons"}},
"relMouseReport": {Func: rpcRelMouseReport, Params: []string{"dx", "dy", "buttons"}}, "relMouseReport": {Func: rpcRelMouseReport, Params: []string{"dx", "dy", "buttons"}},
"wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY", "wheelX"}}, "wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY"}},
"getVideoState": {Func: rpcGetVideoState}, "getVideoState": {Func: rpcGetVideoState},
"getUSBState": {Func: rpcGetUSBState}, "getUSBState": {Func: rpcGetUSBState},
"unmountImage": {Func: rpcUnmountImage}, "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) return gadget.RelMouseReport(dx, dy, buttons)
} }
func rpcWheelReport(wheelY, wheelX int8) error { func rpcWheelReport(wheelY int8) error {
return gadget.AbsMouseWheelReport(wheelY, wheelX) return gadget.AbsMouseWheelReport(wheelY)
} }
var usbState = "unknown" var usbState = "unknown"