| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-01 22:48:51 +0200 |
| commit | 1af58bb8886673ac115f019094853fa763e79187 (patch) | |
| tree | c2ab030898e74288f82c557287272546a990e932 /src/axis.h | |
Initial commit.
Diffstat (limited to 'src/axis.h')
| -rw-r--r-- | src/axis.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/axis.h b/src/axis.h new file mode 100644 index 0000000..6d4f7f5 --- /dev/null +++ b/src/axis.h @@ -0,0 +1,23 @@ +#ifndef RELABSD_AXIS_H +#define RELABSD_AXIS_H + +enum relabsd_axis +{ + RELABSD_X, + RELABSD_Y, + RELABSD_Z, + RELABSD_RX, + RELABSD_RY, + RELABSD_RZ, + RELABSD_UNKNOWN +}; + +enum relabsd_axis relabsd_axis_name_to_enum (char * const name); +char * relabsd_axis_enum_to_name (enum relabsd_axis const e); +enum relabsd_axis relabsd_axis_convert_evdev_rel +( + unsigned int const rel_code, + unsigned int * const abs_code +); + +#endif |


