mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-15 06:40:33 +01:00
Calling has_axis on a non-axis pointer event is a bug, note this
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
db6f1b556a
commit
3c7b83e0e0
1 changed files with 6 additions and 0 deletions
|
|
@ -668,6 +668,12 @@ libinput_event_pointer_get_seat_button_count(
|
|||
* libinput_event_pointer_get_axis_value() returns a value of 0, the event
|
||||
* is a scroll stop event.
|
||||
*
|
||||
* For pointer events that are not of type @ref LIBINPUT_EVENT_POINTER_AXIS,
|
||||
* this function returns 0.
|
||||
*
|
||||
* @note It is an application bug to call this function for events other than
|
||||
* @ref LIBINPUT_EVENT_POINTER_AXIS.
|
||||
*
|
||||
* @return Non-zero if this event contains a value for this axis
|
||||
*/
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue