This commit is contained in:
JerryXiao 2023-04-25 21:07:04 +08:00
parent 2b8ebc5148
commit ad6154021e
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5

View file

@ -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);