From ad6154021e6e3de019cc1f66d2e5f8808542e9ca Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 25 Apr 2023 21:07:04 +0800 Subject: [PATCH] u --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 47e3149..1677672 100644 --- a/server.c +++ b/server.c @@ -193,7 +193,7 @@ static void rfb_key_hook(rfbBool down, rfbKeySym keysym, rfbClientPtr cl) { fprintf(stderr, "Keysym %04x not found in our keymap\n", keysym); return; } - printf("key %s, keysym %04x, keycode %u\n", down ? "down" : "up", keysym, search.keycode); + //printf("key %s, keysym %04x, keycode %u\n", down ? "down" : "up", keysym, search.keycode); if (search.keycode >= UINPUT_MAX_KEY) { fprintf(stderr, "Keycode %d >= %d\n", search.keycode, UINPUT_MAX_KEY); return; @@ -222,7 +222,7 @@ static void rfb_key_hook(rfbBool down, rfbKeySym keysym, rfbClientPtr cl) { } static void rfb_ptr_hook(int mask, int screen_x, int screen_y, rfbClientPtr cl) { - printf("pointer to %d, %d\n", screen_x, screen_y); + //printf("pointer to %d, %d\n", screen_x, screen_y); float global_x = (float)screen_x; float global_y = (float)screen_y; int touch_x = round(global_x / resolution.x * UINPUT_ABS_MAX);