From 038b03bbf519bdc44d1b8a3fce34901943c9bc7b Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 31 Jul 2020 21:14:05 +0200 Subject: Implementing what is needed for rel axis renaming. --- include/relabsd/debug.h | 8 ++++---- include/relabsd/device/axis.h | 6 ++++++ include/relabsd/device/axis_types.h | 5 +++-- 3 files changed, 13 insertions(+), 6 deletions(-) (limited to 'include') 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 #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 -- cgit v1.2.3-70-g09d2