summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3658adb..6d59395 100644
--- a/src/main.c
+++ b/src/main.c
@@ -65,6 +65,22 @@ static void convert_input
while (RELABSD_RUN == 1)
{
+ if (conf->enable_timeout)
+ {
+ switch (relabsd_device_wait_next_event(dev, conf))
+ {
+ case 1:
+ break;
+
+ case 0:
+ relabsd_device_set_axes_to_zero(dev, conf);
+ break;
+
+ case -1:
+ continue;
+ }
+ }
+
if (relabsd_input_read(input, &input_type, &input_code, &value) < 0)
{
/*