diff options
author | runge <runge> | 2006-07-11 18:20:23 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-11 18:20:23 +0000 |
commit | 0abd329d6a8dd17b6d0cd28a8f49607c3b03af45 (patch) | |
tree | c4548deb3da9b993ab177f9e756413d086a08d08 /x11vnc/remote.c | |
parent | 0afa1da8cc33e663a1d4162290595d14bbaf197e (diff) | |
download | libtdevnc-0abd329d6a8dd17b6d0cd28a8f49607c3b03af45.tar.gz libtdevnc-0abd329d6a8dd17b6d0cd28a8f49607c3b03af45.zip |
x11vnc: more UINPUT mode tweaks.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 22 |
1 files changed, 22 insertions, 0 deletions
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:") |