mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 06:38:02 +02:00
doc/user: document keypad slide switch support
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1428>
This commit is contained in:
parent
659967488e
commit
3428edf1ea
2 changed files with 21 additions and 4 deletions
|
|
@ -4,9 +4,9 @@
|
||||||
Switches
|
Switches
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
libinput supports the lid and tablet-mode switches. Unlike button events
|
libinput supports the lid, tablet-mode, and keypad slide switches. Unlike
|
||||||
that come in press and release pairs, switches are usually toggled once and
|
button events that come in press and release pairs, switches are usually
|
||||||
left at the setting for an extended period of time.
|
toggled once and left at the setting for an extended period of time.
|
||||||
|
|
||||||
Only some switches are handled by libinput, see **libinput_switch** for a
|
Only some switches are handled by libinput, see **libinput_switch** for a
|
||||||
list of supported switches. Switch events are exposed to the caller, but
|
list of supported switches. Switch events are exposed to the caller, but
|
||||||
|
|
@ -59,3 +59,20 @@ tablet mode is disengaged.
|
||||||
|
|
||||||
This handling of tablet mode switches is transparent to the user, no
|
This handling of tablet mode switches is transparent to the user, no
|
||||||
notifications are sent and the device appears as enabled at all times.
|
notifications are sent and the device appears as enabled at all times.
|
||||||
|
|
||||||
|
.. _switches_keypad_slide:
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
Keypad slide switch handling
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Where available, libinput listens to devices providing a keypad slide switch.
|
||||||
|
This is usually available on devices that have an always-attached physical
|
||||||
|
keyboard which can slide under the screen. An example of such a device is the
|
||||||
|
Nokia N900.
|
||||||
|
|
||||||
|
The event sent by the kernel is ``EV_SW`` ``SW_KEYPAD_SLIDE`` and is provided
|
||||||
|
as **LIBINPUT_SWITCH_KEYPAD_SLIDE**. The keypad slide switch does not cause any
|
||||||
|
other input devices to be enabled nor disabled in response, since on some
|
||||||
|
devices the kernel event is sent while the keyboard is partially visible and
|
||||||
|
thus usable.
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ Handled device types
|
||||||
- Mice
|
- Mice
|
||||||
- Keyboards
|
- Keyboards
|
||||||
- Virtual absolute pointing devices such as those used by QEMU or VirtualBox
|
- Virtual absolute pointing devices such as those used by QEMU or VirtualBox
|
||||||
- Switches (Lid Switch and Tablet Mode switch)
|
- Switches (Lid Switch, Tablet Mode switch, and Keypad Slide switch)
|
||||||
- Graphics tablets
|
- Graphics tablets
|
||||||
- :ref:`Trackpoints`
|
- :ref:`Trackpoints`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue