| summaryrefslogtreecommitdiff | 
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-07-31 21:14:05 +0200 | 
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-07-31 21:14:05 +0200 | 
| commit | 038b03bbf519bdc44d1b8a3fce34901943c9bc7b (patch) | |
| tree | 6087a4fea8d78da04bd5c682b7520a3807351404 /include | |
| parent | 6ca39654bfc65eee45cb38cbc53ce838d1f656a0 (diff) | |
Implementing what is needed for rel axis renaming.
Diffstat (limited to 'include')
| -rw-r--r-- | include/relabsd/debug.h | 8 | ||||
| -rw-r--r-- | include/relabsd/device/axis.h | 6 | ||||
| -rw-r--r-- | include/relabsd/device/axis_types.h | 5 | 
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 | 


