summaryrefslogtreecommitdiff
path: root/src/libinput.sym
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-04-22 14:36:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-04-23 10:32:31 +1000
commit4996076a7c59690ad02162923b23b763a3b76bcd (patch)
tree20f119742e19543f989840ced032bb5d2a92f39e /src/libinput.sym
parent5c671e0375cc03032fcac26efe4a7835a74c8bfc (diff)
Add libinput_device_keyboard_has_key()
Similar to libinput_device_pointer_has_button(), this function returns whether a given device has a specific keycode. This enables a caller to determine if the device is really a keyboard (check for KEY_A-KEY_Z) or just a media key device (check for KEY_PLAY or somesuch), depending on the context required. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'src/libinput.sym')
-rw-r--r--src/libinput.sym5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libinput.sym b/src/libinput.sym
index 431870f..9c11174 100644
--- a/src/libinput.sym
+++ b/src/libinput.sym
@@ -135,3 +135,8 @@ global:
libinput_device_config_middle_emulation_is_available;
libinput_device_config_middle_emulation_set_enabled;
} LIBINPUT_0.12.0;
+
+LIBINPUT_0.15.0 {
+global:
+ libinput_device_keyboard_has_key;
+} LIBINPUT_0.14.0;