From a4841776b6e1751232d46482731836a7c17b896f Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 3 Jan 2020 03:50:24 +0100 Subject: Still working on it... --- src/device/axis/axis.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/device/axis/axis.c') diff --git a/src/device/axis/axis.c b/src/device/axis/axis.c index 75afad8..2659c84 100644 --- a/src/device/axis/axis.c +++ b/src/device/axis/axis.c @@ -1,6 +1,9 @@ /**** POSIX *******************************************************************/ #include +/**** LIBEVDEV ****************************************************************/ +#include + /**** RELABSD *****************************************************************/ #include @@ -21,7 +24,7 @@ void relabsd_axis_initialize void relabsd_axis_to_absinfo ( - struct relabsd_axis axis [const restrict static 1] + struct relabsd_axis axis [const restrict static 1], struct input_absinfo absinfo [const restrict static 1] ) { @@ -32,3 +35,13 @@ void relabsd_axis_to_absinfo absinfo->flat = (__s32) axis->flat; absinfo->resolution = (__s32) axis->resolution; } + +void relabsd_axis_enable +( + struct relabsd_axis axis [const restrict static 1] +) +{ + axis->is_enabled = 1; +} + + -- cgit v1.2.3-70-g09d2