river_libinput_config_v1 ↗
Copyright
SPDX-FileCopyrightText: © 2025 Isaac Freund SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- river_libinput_config_v1 — libinput config global interface
- river_libinput_device_v1 — a libinput device
- river_libinput_accel_config_v1 — acceleration config
- river_libinput_result_v1 — config application result
configure libinput devices
This protocol exposes libinput device configuration APIs. The libinput documentation should be referred to for detailed information on libinput's behavior.
Note that the compositor will not be able to expose libinput devices through this protocol when it does not have access to the hardware, for example when running nested in another Wayland compositor or X11 session.
This protocol is designed so that (hopefully) any backwards compatible change to libinput's API can be matched with a backwards compatible change to this protocol.
Note: the libinput API uses floating point types (float and double in C) which are not (yet?) natively supported by the Wayland protocol. However, the Wayland protocol does support sending arbitrary bytes through the array argument type. This protocol uses e.g. type="array" summary="double" to indicate a native-endian IEEE-754 64-bit double value.
The key words "must", "must not", "required", "shall", "shall not", "should", "should not", "recommended", "may", and "optional" in this document are to be interpreted as described in IETF RFC 2119.
river_libinput_config_v1
river_libinput_config_v1
- error
- stop — stop sending events
- finished — the server has finished with the object
- destroy — destroy the river_libinput_config_v1 object
- libinput_device — new libinput device
- create_accel_config — create a acceleration config
libinput config global interface
Global interface for configuring libinput devices. This global should only be advertised if river_input_manager_v1 is advertised as well.
river_libinput_config_v1
river_libinput_device_v1
- error
- destroy — destroy the libinput device object
- removed — the libinput device is removed
- input_device — corresponding river input device
- send_events_modes
- send_events_support — supported send events modes
- send_events_default — default send events mode
- send_events_current — current send events mode
- set_send_events — set send events mode
- tap_state
- tap_support — tap-to-click/drag support
- tap_default — default tap-to-click state
- tap_current — current tap-to-click state
- set_tap — enable/disable tap-to-click
- tap_button_map
- tap_button_map_default — default tap-to-click button map
- tap_button_map_current — current tap-to-click button map
- set_tap_button_map — set tap-to-click button map
- drag_state
- drag_default — default tap-and-drag state
- drag_current — current tap-and-drag state
- set_drag — set tap-and-drag state
- drag_lock_state
- drag_lock_default — default drag lock state
- drag_lock_current — current drag lock state
- set_drag_lock — set drag lock state
- three_finger_drag_support — three finger drag support
- three_finger_drag_state
- three_finger_drag_default — default three finger drag state
- three_finger_drag_current — current three finger drag state
- set_three_finger_drag — set three finger drag state
- calibration_matrix_support — support for a calibration matrix
- calibration_matrix_default — default calibration matrix
- calibration_matrix_current — current calibration matrix
- set_calibration_matrix — set calibration matrix
- accel_profile
- accel_profiles
- accel_profiles_support — supported acceleration profiles
- accel_profile_default — default acceleration profile
- accel_profile_current — current acceleration profile
- set_accel_profile — set acceleration profile
- accel_speed_default — default acceleration speed
- accel_speed_current — current acceleration speed
- set_accel_speed — set acceleration speed
- apply_accel_config — apply acceleration config
- natural_scroll_support — support for natural scroll
- natural_scroll_state
- natural_scroll_default — default natural scroll
- natural_scroll_current — current natural scroll state
- set_natural_scroll — set natural scroll state
- left_handed_support — support for left-handed mode
- left_handed_state
- left_handed_default — default left-handed mode
- left_handed_current — current left-handed mode state
- set_left_handed — set left-handed mode state
- click_method
- click_methods
- click_method_support — supported click methods
- click_method_default — default click method
- click_method_current — current click method
- set_click_method — set click method
- clickfinger_button_map
- clickfinger_button_map_default — default clickfinger button map
- clickfinger_button_map_current — current clickfinger button map
- set_clickfinger_button_map — set clickfinger button map
- middle_emulation_support — support for middle mouse button emulation
- middle_emulation_state
- middle_emulation_default — default middle mouse button emulation
- middle_emulation_current — current middle mouse button emulation state
- set_middle_emulation — set middle mouse button emulation state
- scroll_method
- scroll_methods
- scroll_method_support — supported scroll methods
- scroll_method_default — default scroll method
- scroll_method_current — current scroll method
- set_scroll_method — set scroll method
- scroll_button_default — default scroll button
- scroll_button_current — current scroll button
- set_scroll_button — set scroll button
- scroll_button_lock_state
- scroll_button_lock_default — default scroll button lock state
- scroll_button_lock_current — current scroll button lock state
- set_scroll_button_lock — set scroll button lock state
- dwt_support — support for disable-while-typing
- dwt_state
- dwt_default — default disable-while-typing state
- dwt_current — current disable-while-typing state
- set_dwt — set disable-while-typing state
- dwtp_support — support for disable-while-trackpointing
- dwtp_state
- dwtp_default — default disable-while-trackpointing state
- dwtp_current — current disable-while-trackpointing state
- set_dwtp — set disable-while-trackpointing state
- rotation_support — support for rotation
- rotation_default — default rotation angle
- rotation_current — current rotation angle
- set_rotation — set rotation angle
- done — all information has been sent
a libinput device
In general, *_support events will be sent exactly once directly after the river_libinput_device_v1 is created. *_default events will be sent after *_support events if the config option is supported, and *_current events willl be sent after the *_default events and again whenever the config option is changed.
river_libinput_config_v1
river_libinput_accel_config_v1
- error
- destroy — destroy the accel object
- accel_type
- set_points — define custom acceleration function
acceleration config
The result returned by libinput on setting configuration for a device.
river_libinput_config_v1
river_libinput_result_v1
- success — config success
- unsupported — config unsupported
- invalid — config invalid
config application result
The result returned by libinput on setting configuration for a device.