From ab3379003d5253997402703790c05191d3423c97 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 24 Feb 2019 09:19:44 -0400 Subject: [PATCH] Fixed run code in mac warning --- event/dispatch_proc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event/dispatch_proc.h b/event/dispatch_proc.h index fddf9c0..a598b21 100644 --- a/event/dispatch_proc.h +++ b/event/dispatch_proc.h @@ -31,7 +31,7 @@ void dispatch_proc(iohook_event * const event) { case EVENT_KEY_RELEASED: case EVENT_KEY_TYPED: sprintf(buffer, - "{\"id\":%i,\"time\":%" PRIu64 ",\"mask\":%hu,\"reserved\":%hu,\"keycode\":%hu,\"rawcode\":%hu,\"keychar\":%hu}", + "{\"id\":%i,\"time\":%" PRIu64 ",\"mask\":%hu,\"reserved\":%hu,\"keycode\":%hu,\"rawcode\":%hu,\"keychar\":%d}", event->type, event->time, event->mask,event->reserved, event->data.keyboard.keycode, event->data.keyboard.rawcode, @@ -52,7 +52,7 @@ void dispatch_proc(iohook_event * const event) { break; case EVENT_MOUSE_WHEEL: sprintf(buffer, - "{\"id\":%i,\"time\":%" PRIu64 ",\"mask\":%hu,\"reserved\":%hu,\"clicks\":%hu,\"x\":%hd,\"y\":%hd,\"type\":%hu,\"ammount\":%hu,\"rotation\":%hd,\"direction\":%hu}", + "{\"id\":%i,\"time\":%" PRIu64 ",\"mask\":%hu,\"reserved\":%hu,\"clicks\":%hu,\"x\":%hd,\"y\":%hd,\"type\":%d,\"ammount\":%hu,\"rotation\":%hu,\"direction\":%d}", event->type, event->time, event->mask, event->reserved, event->data.wheel.clicks, event->data.wheel.x,