| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/device/axis/axis.c')
| -rw-r--r-- | src/device/axis/axis.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/device/axis/axis.c b/src/device/axis/axis.c new file mode 100644 index 0000000..75afad8 --- /dev/null +++ b/src/device/axis/axis.c @@ -0,0 +1,34 @@ +/**** POSIX *******************************************************************/ +#include <string.h> + +/**** RELABSD *****************************************************************/ +#include <relabsd/device/axis.h> + +/******************************************************************************/ +/**** LOCAL FUNCTIONS *********************************************************/ +/******************************************************************************/ + +/******************************************************************************/ +/**** EXPORTED FUNCTIONS ******************************************************/ +/******************************************************************************/ +void relabsd_axis_initialize +( + struct relabsd_axis axis [const restrict static 1] +) +{ + (void) memset(axis, 0, sizeof(struct relabsd_axis)); +} + +void relabsd_axis_to_absinfo +( + struct relabsd_axis axis [const restrict static 1] + struct input_absinfo absinfo [const restrict static 1] +) +{ + absinfo->value = (__s32) 0; + absinfo->minimum = (__s32) axis->min; + absinfo->maximum = (__s32) axis->max; + absinfo->fuzz = (__s32) axis->fuzz; + absinfo->flat = (__s32) axis->flat; + absinfo->resolution = (__s32) axis->resolution; +} |


