summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/relabsd/debug.h8
-rw-r--r--include/relabsd/device/axis.h6
-rw-r--r--include/relabsd/device/axis_types.h5
3 files changed, 13 insertions, 6 deletions
diff --git a/include/relabsd/debug.h b/include/relabsd/debug.h
index 025c312..6745779 100644
--- a/include/relabsd/debug.h
+++ b/include/relabsd/debug.h
@@ -5,19 +5,19 @@
#include <relabsd/util/macro.h>
#ifndef RELABSD_DEBUG_PROGRAM_FLOW
- #define RELABSD_DEBUG_PROGRAM_FLOW 0
+ #define RELABSD_DEBUG_PROGRAM_FLOW 1
#endif
#ifndef RELABSD_DEBUG_CONFIG
- #define RELABSD_DEBUG_CONFIG 0
+ #define RELABSD_DEBUG_CONFIG 1
#endif
#ifndef RELABSD_DEBUG_REAL_EVENTS
- #define RELABSD_DEBUG_REAL_EVENTS 0
+ #define RELABSD_DEBUG_REAL_EVENTS 1
#endif
#ifndef RELABSD_DEBUG_VIRTUAL_EVENTS
- #define RELABSD_DEBUG_VIRTUAL_EVENTS 0
+ #define RELABSD_DEBUG_VIRTUAL_EVENTS 1
#endif
#ifndef RELABSD_ENABLE_WARNINGS_OUTPUT
diff --git a/include/relabsd/device/axis.h b/include/relabsd/device/axis.h
index e3f0794..780981c 100644
--- a/include/relabsd/device/axis.h
+++ b/include/relabsd/device/axis.h
@@ -115,3 +115,9 @@ void relabsd_axis_set_attributes_are_dirty
const int val,
struct relabsd_axis axis [const restrict static 1]
);
+
+int relabsd_axis_has_flag
+(
+ const struct relabsd_axis axis [const restrict static 1],
+ const enum relabsd_axis_flag flag
+);
diff --git a/include/relabsd/device/axis_types.h b/include/relabsd/device/axis_types.h
index 8fbb726..20ed44c 100644
--- a/include/relabsd/device/axis_types.h
+++ b/include/relabsd/device/axis_types.h
@@ -2,7 +2,7 @@
/* Number of axes that can be configured. */
#define RELABSD_AXIS_VALID_AXES_COUNT 8
-#define RELABSD_AXIS_FLAGS_COUNT 3
+#define RELABSD_AXIS_FLAGS_COUNT 4
/*
* C enumerations are always int, and the standard does specify that it starts
@@ -26,7 +26,8 @@ enum relabsd_axis_flag
{
RELABSD_DIRECT,
RELABSD_REAL_FUZZ,
- RELABSD_FRAMED
+ RELABSD_FRAMED,
+ RELABSD_NOT_ABS
};
struct relabsd_axis