mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 12:50:33 +01:00
tablet: clarify tablet axis behavior in regards to proximity
We send the axis state in the proximity event so we don't send another axis event for the same state. The first axis event is sent whenever the tool moves. This is largely of note for test cases, in real-world usage a tool cannot be held still enough to never send axis updates. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
f035def401
commit
480a72829a
1 changed files with 7 additions and 0 deletions
|
|
@ -267,6 +267,13 @@ enum libinput_event_type {
|
|||
* LIBINPUT_DEVICE_CAP_TABLET capability. This event is only sent
|
||||
* when the tool is in proximity, see @ref
|
||||
* LIBINPUT_EVENT_TABLET_PROXIMITY for details.
|
||||
*
|
||||
* The proximity event contains the initial state of the axis as the
|
||||
* tool comes into proximity. An event of type @ref
|
||||
* LIBINPUT_EVENT_TABLET_AXIS is only sent when an axis value
|
||||
* changes from this initial state. It is possible for a tool to
|
||||
* enter and leave proximity without sending an event of type @ref
|
||||
* LIBINPUT_EVENT_TABLET_AXIS.
|
||||
*/
|
||||
LIBINPUT_EVENT_TABLET_AXIS = 600,
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue