summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-03 18:13:24 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-03 18:13:24 +0200
commit385a3d17995dafde4f2b57f8d3a42d4d4782119d (patch)
tree13422e28afbb7e8957ad061c662d159c28a930c4 /src/config.h
parent480288ca001564fa8c9fbdd72be442bbe7ee3d97 (diff)
Now support 'real' relative input devices, introduces 'options', the virtual device name is now prefixed to help matching it with udev.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index c0c83a7..07fcdfb 100644
--- a/src/config.h
+++ b/src/config.h
@@ -5,10 +5,25 @@
#include "axis.h"
+/* Number of options that can be configured. */
+#define RELABSD_OPTIONS_COUNT 3
+
+enum relabsd_option
+{
+ RELABSD_DIRECT_OPTION,
+ RELABSD_REAL_FUZZ_OPTION,
+ RELABSD_FRAMED_OPTION
+};
+
+
struct relabsd_config_axis
{
+/* relabsd axis properties */
int enabled;
int previous_value;
+ int option[RELABSD_OPTIONS_COUNT];
+
+/* Absolute axis properties */
int min;
int max;
int fuzz;