From 0abd329d6a8dd17b6d0cd28a8f49607c3b03af45 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 11 Jul 2006 18:20:23 +0000 Subject: x11vnc: more UINPUT mode tweaks. --- x11vnc/remote.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'x11vnc/remote.c') diff --git a/x11vnc/remote.c b/x11vnc/remote.c index cd80538..a090d49 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -3463,6 +3463,17 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("set_uinput_accel: %s\n", p); set_uinput_accel(p); + } else if (strstr(p, "uinput_thresh") == p) { + COLON_CHECK("uinput_thresh:") + if (query) { + snprintf(buf, bufn, "ans=%s%s%s", p, co, + NONUL(get_uinput_thresh())); + goto qry; + } + p += strlen("uinput_thresh:"); + rfbLog("set_uinput_thresh: %s\n", p); + set_uinput_thresh(p); + } else if (strstr(p, "uinput_reset") == p) { COLON_CHECK("uinput_reset:") p += strlen("uinput_reset:"); @@ -3474,6 +3485,17 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("set_uinput_reset: %s\n", p); set_uinput_reset(atoi(p)); + } else if (strstr(p, "uinput_always") == p) { + COLON_CHECK("uinput_always:") + p += strlen("uinput_always:"); + if (query) { + snprintf(buf, bufn, "ans=%s%s%d", p, co, + get_uinput_always()); + goto qry; + } + rfbLog("set_uinput_always: %s\n", p); + set_uinput_always(atoi(p)); + } else if (strstr(p, "progressive") == p) { int f; COLON_CHECK("progressive:") -- cgit v1.2.1