aboutsummaryrefslogtreecommitdiffstats
path: root/libgamepad_get_absolute_axis_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgamepad_get_absolute_axis_info.c')
-rw-r--r--libgamepad_get_absolute_axis_info.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgamepad_get_absolute_axis_info.c b/libgamepad_get_absolute_axis_info.c
index a6f8220..307d85a 100644
--- a/libgamepad_get_absolute_axis_info.c
+++ b/libgamepad_get_absolute_axis_info.c
@@ -2,4 +2,8 @@
#include "common.h"
-extern inline const struct input_absinfo *libgamepad_get_absolute_axis_info(struct libgamepad_device *, uint16_t);
+const struct input_absinfo *
+libgamepad_get_absolute_axis_info(struct libgamepad_device *device, uint16_t code)
+{
+ return libevdev_get_abs_info(device->dev, (unsigned int)code);
+}