summaryrefslogtreecommitdiffstats
path: root/x11vnc/uinput.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-18 00:40:00 +0000
committerrunge <runge>2006-07-18 00:40:00 +0000
commit901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (patch)
tree5ccae39a0740461dde0b2875d3b1e8398b6e1357 /x11vnc/uinput.c
parent6e2fa292297af38a12ab6a0bac1a2873b2fb289c (diff)
downloadlibtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.tar.gz
libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.zip
x11vnc: enable --without-x builds for -rawfb only binaries.
Diffstat (limited to 'x11vnc/uinput.c')
-rw-r--r--x11vnc/uinput.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/x11vnc/uinput.c b/x11vnc/uinput.c
index bdd41c2..656d7c5 100644
--- a/x11vnc/uinput.c
+++ b/x11vnc/uinput.c
@@ -6,6 +6,7 @@
#include "xinerama.h"
#include "screen.h"
#include "pointer.h"
+#include "keyboard.h"
#include "allowed_input_t.h"
#if LIBVNCSERVER_HAVE_SYS_IOCTL_H
@@ -120,6 +121,7 @@ static void init_key_tracker(void) {
static int mod_is_down(void) {
int i;
+ if (0) {key_is_down();}
for (i = 0; i < 256; i++) {
if (key_pressed[i] && key_ismod[i]) {
return 1;
@@ -281,7 +283,7 @@ void set_uinput_reset(int ms) {
rfbLog("set_uinput_reset: %d\n", ms);
}
-int set_uinput_always(int a) {
+void set_uinput_always(int a) {
uinput_always = a;
}
@@ -315,7 +317,6 @@ void parse_uinput_str(char *in) {
}
uinput_dev = strdup(p);
} else if (strstr(p, "accel=") == p) {
- double fx, fy;
q = p + strlen("accel=");
if (! set_uinput_accel(q)) {
clean_up_exit(1);