libinput
0.5.0
A wrapper library for input devices
|
Enable, disable, change and/or check for device-specific features. More...
Enumerations | |
enum | libinput_config_status { LIBINPUT_CONFIG_STATUS_SUCCESS, LIBINPUT_CONFIG_STATUS_UNSUPPORTED, LIBINPUT_CONFIG_STATUS_INVALID } |
Status codes returned when applying configuration settings. More... | |
enum | libinput_config_tap_state { LIBINPUT_CONFIG_TAP_DISABLED, LIBINPUT_CONFIG_TAP_ENABLED } |
Functions | |
const char * | libinput_config_status_to_str (enum libinput_config_status status) |
Return a string describing the error. More... | |
int | libinput_device_config_tap_get_finger_count (struct libinput_device *device) |
Check if the device supports tap-to-click. More... | |
enum libinput_config_status | libinput_device_config_tap_set_enabled (struct libinput_device *device, enum libinput_config_tap_state enable) |
Enable or disable tap-to-click on this device, with a default mapping of 1, 2, 3 finger tap mapping to left, right, middle click, respectively. More... | |
enum libinput_config_tap_state | libinput_device_config_tap_get_enabled (struct libinput_device *device) |
Check if tap-to-click is enabled on this device. More... | |
enum libinput_config_tap_state | libinput_device_config_tap_get_default_enabled (struct libinput_device *device) |
Return the default setting for whether tapping is enabled on this device. More... | |
Enable, disable, change and/or check for device-specific features.
For all features, libinput assigns a default based on the hardware configuration. This default can be obtained with the respective get_default call.
Some configuration option may be dependent on or mutually exclusive with with other options. The behavior in those cases is implementation-defined, the caller must ensure that the options are set in the right order.
const char* libinput_config_status_to_str | ( | enum libinput_config_status | status | ) |
Return a string describing the error.
status | The status to translate to a string |
enum libinput_config_tap_state libinput_device_config_tap_get_default_enabled | ( | struct libinput_device * | device | ) |
Return the default setting for whether tapping is enabled on this device.
device | The device to configure |
enum libinput_config_tap_state libinput_device_config_tap_get_enabled | ( | struct libinput_device * | device | ) |
Check if tap-to-click is enabled on this device.
If the device does not support tapping, this function always returns 0.
device | The device to configure |
int libinput_device_config_tap_get_finger_count | ( | struct libinput_device * | device | ) |
Check if the device supports tap-to-click.
See libinput_device_config_tap_set_enabled() for more information.
device | The device to configure |
enum libinput_config_status libinput_device_config_tap_set_enabled | ( | struct libinput_device * | device, |
enum libinput_config_tap_state | enable | ||
) |
Enable or disable tap-to-click on this device, with a default mapping of 1, 2, 3 finger tap mapping to left, right, middle click, respectively.
Tapping is limited by the number of simultaneous touches supported by the device, see libinput_device_config_tap_get_finger_count().
device | The device to configure |
enable | LIBINPUT_CONFIG_TAP_ENABLED to enable tapping or LIBINPUT_CONFIG_TAP_DISABLED to disable tapping |