summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_libevdev
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-17 12:52:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-17 12:52:43 +0200
commit169bd7eb0396cd8d9474e47b669f5db7bcaf38bf (patch)
tree1daab56fdb7c1430e80dec19a5ca3e21562e449d /ftnoir_protocol_libevdev
parentb3f2cfa87ba25a85e486f4e45ce419fc0e823ca2 (diff)
proto-libevdev: End bulk updates with EV_SYN
Diffstat (limited to 'ftnoir_protocol_libevdev')
-rw-r--r--ftnoir_protocol_libevdev/ftnoir_protocol_libevdev.cpp2
1 files changed, 2 insertions, 0 deletions
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()