From 118fd0798d41cf0941d638a4552d3222b15c3911 Mon Sep 17 00:00:00 2001 From: rmschooley Date: Thu, 15 May 2025 23:09:35 -0500 Subject: [PATCH] Update jsonrpc.go Added support for mouse wheel horizontal scrolling. --- jsonrpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonrpc.go b/jsonrpc.go index 3c805e4..9534af1 100644 --- a/jsonrpc.go +++ b/jsonrpc.go @@ -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},