| summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/relabsd_device.h')
| -rw-r--r-- | src/relabsd_device.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/relabsd_device.h b/src/relabsd_device.h index b3f2d51..8e83196 100644 --- a/src/relabsd_device.h +++ b/src/relabsd_device.h @@ -10,6 +10,7 @@ struct relabsd_device { struct libevdev * dev; struct libevdev_uinput * uidev; + int fd; }; /* @@ -50,4 +51,20 @@ int relabsd_device_write_evdev_event int const value ); +/* + * Send an event for each enabled axis, setting it to zero. + * An EV_SYN event is sent afterwards. + */ +void relabsd_device_set_axes_to_zero +( + const struct relabsd_device * const dev, + const struct relabsd_config * const config +); + +int relabsd_device_wait_next_event +( + const struct relabsd_device * const dev, + const struct relabsd_config * const config +); + #endif |


