From 169bd7eb0396cd8d9474e47b669f5db7bcaf38bf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 17 Sep 2013 12:52:43 +0200 Subject: proto-libevdev: End bulk updates with EV_SYN --- ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftnoir_protocol_libevdev') diff --git a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp index 3f74f462..f0950d80 100644 --- a/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp +++ b/ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp @@ -93,6 +93,8 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose int normalized = std::max(std::min(max_input, value), min_input); (void) libevdev_uinput_write_event(uidev, EV_ABS, axes[i], normalized); } + + (void) libevdev_uinput_write_event(uidev, EV_SYN, SYN_REPORT, 0); } extern "C" FTNOIR_PROTOCOL_BASE_EXPORT IProtocol* CALLING_CONVENTION GetConstructor() -- cgit v1.2.3