diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-06-09 19:48:19 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-06-26 17:47:28 +1000 |
commit | eda87cdf919fb65eb630d33d387a091ed866391c (patch) | |
tree | c1aafccf7d043e1f26ec33ba593c7e273cff2f30 /libevdev/libevdev.h | |
parent | 965e2250a0f18ad4d4709ae0a6d748cbcd73401e (diff) | |
download | libevdev-eda87cdf919fb65eb630d33d387a091ed866391c.tar.gz |
Add an API to get the repeat values
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'libevdev/libevdev.h')
-rw-r--r-- | libevdev/libevdev.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index 9fd16d8..f3fe5ba 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -536,4 +536,14 @@ const char * libevdev_get_input_prop_name(unsigned int prop); */ int libevdev_get_event_type_max(unsigned int type); +/** + * Get the repeat delay and repeat period values for this device. + * + * @param delay If not null, set to the repeat delay value + * @param period If not null, set to the repeat period value + * + * @return 0 on success, -1 if this device does not have repeat settings. + */ +int libevdev_get_repeat(struct libevdev *dev, int *delay, int *period); + #endif /* libevdev_H */ |