From 27750b9cc25543fd89e1c2cc91bfadaaf11c2f1e Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Thu, 18 Sep 2025 17:33:08 +0200 Subject: [PATCH] feat: re-add keyboard and keypress report handlers to RPC (#811) --- jsonrpc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsonrpc.go b/jsonrpc.go index a6114ba..8bcc265 100644 --- a/jsonrpc.go +++ b/jsonrpc.go @@ -1168,6 +1168,8 @@ var rpcHandlers = map[string]RPCHandler{ "renewDHCPLease": {Func: rpcRenewDHCPLease}, "getKeyboardLedState": {Func: rpcGetKeyboardLedState}, "getKeyDownState": {Func: rpcGetKeysDownState}, + "keyboardReport": {Func: rpcKeyboardReport, Params: []string{"modifier", "keys"}}, + "keypressReport": {Func: rpcKeypressReport, Params: []string{"key", "press"}}, "absMouseReport": {Func: rpcAbsMouseReport, Params: []string{"x", "y", "buttons"}}, "relMouseReport": {Func: rpcRelMouseReport, Params: []string{"dx", "dy", "buttons"}}, "wheelReport": {Func: rpcWheelReport, Params: []string{"wheelY"}},