mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 23:20:29 +01:00
Clarify the default 'off' position of a switch
So we don't need to send an "off" event for every switch on startup. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
87f3ea760c
commit
e2877acb89
1 changed files with 5 additions and 1 deletions
|
|
@ -601,7 +601,11 @@ libinput_tablet_pad_mode_group_get_user_data(
|
|||
/**
|
||||
* @ingroup device
|
||||
*
|
||||
* The state of a switch.
|
||||
* The state of a switch. The default state of a switch is @ref
|
||||
* LIBINPUT_SWITCH_STATE_OFF and no event is sent to confirm a switch in the
|
||||
* off position. If a switch is logically on during initialization, libinput
|
||||
* sends an event of type @ref LIBINPUT_EVENT_SWITCH_TOGGLE with a state
|
||||
* @ref LIBINPUT_SWITCH_STATE_ON.
|
||||
*/
|
||||
enum libinput_switch_state {
|
||||
LIBINPUT_SWITCH_STATE_OFF = 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue