Lines Matching refs:event
99 * @ingroup event
102 * The base event type. Use libinput_event_get_pointer_event() or similar to
103 * get the actual event type.
111 * @ingroup event
114 * An event notifying the caller of a device being added or removed.
122 * A keyboard event representing a key press/release.
130 * A pointer event representing relative or absolute pointer movement,
139 * Touch event representing a touch down, move or up, as well as a touch
140 * cancel and touch frame events. Valid event types for this event are @ref
151 * Tablet tool event representing an axis update, button press, or tool
152 * update. Valid event types for this event are @ref
165 * Tablet pad event representing a button press, or ring/strip update on
166 * the tablet pad itself. Valid event types for this event are @ref
254 * The source for a libinput_pointer_axis event. See
258 * the event types
265 * The event is caused by the rotation of a wheel.
269 * The event is caused by the movement of one or more fingers on a
274 * The event is caused by the motion of some device.
278 * The event is caused by the tilting of a mouse wheel rather than
292 * The source for a @ref LIBINPUT_EVENT_TABLET_PAD_RING event. See
300 * The event is caused by the movement of one or more fingers on
309 * The source for a @ref LIBINPUT_EVENT_TABLET_PAD_STRIP event. See
317 * The event is caused by the movement of one or more fingers on
454 * libinput_event_tablet_pad_get_mode_group(), provided the event was
514 * in the event queue will return the modes 1, 2 and 3, respectively.
663 * LIBINPUT_SWITCH_STATE_OFF and no event is sent to confirm a switch in the
665 * sends an event of type @ref LIBINPUT_EVENT_SWITCH_TOGGLE with a state
711 * A switch event representing a changed state in a switch.
724 * This is not a real event type, and is only used to tell the user that
725 * no new event is available in the queue. See
742 * associated device will be in the queue or be queued after this event.
752 * A scroll event from various sources.
754 * This event is deprecated as of libinput 1.19. Use
760 * source of a scroll event. For libinput versions 1.19 and later,
761 * the source is encoded in the event type.
763 * This event is sent **in addition** to events of type
767 * Do not mix and match, either use the old event or the new events.
769 * @ref LIBINPUT_EVENT_POINTER_AXIS and the new event types
773 * multiple zero, one or more new events per legacy event.
775 * @warning Ignore this event if you are processing
783 * A scroll event from a wheel. This event is sent is sent **in
785 * event for all events with a
788 * LIBINPUT_EVENT_POINTER_AXIS if you are processing this event.
797 * A scroll event caused by the movement of one or more fingers on a
798 * device. This event is sent is sent **in addition** to the @ref
799 * LIBINPUT_EVENT_POINTER_AXIS event for all events with a
802 * LIBINPUT_EVENT_POINTER_AXIS if you are processing this event.
811 * A scroll event from a continuous scroll source, e.g. button
812 * scrolling. This event is sent is sent **in
814 * event for all events with a
817 * LIBINPUT_EVENT_POINTER_AXIS if you are processing this event.
831 * time. This event has no coordinate information attached.
837 * LIBINPUT_DEVICE_CAP_TABLET_TOOL capability. This event is only sent
841 * The proximity event contains the initial state of the axis as the
842 * tool comes into proximity. An event of type @ref
845 * enter and leave proximity without sending an event of type @ref
848 * An event of type @ref LIBINPUT_EVENT_TABLET_TOOL_AXIS is sent
871 * event.
877 * proximity out event.
888 * LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY for the tip down event, and
889 * immediately before for the tip up event.
894 * @ref LIBINPUT_EVENT_TABLET_TOOL_TIP event includes the changed
895 * axes and no additional axis event is sent for this state change.
913 * same logical hardware event, the order of the @ref
915 * LIBINPUT_EVENT_TABLET_TOOL_AXIS event is device-specific.
917 * This event is not to be confused with the button events emitted
936 * This event is not to be confused with the button events emitted
990 * @defgroup event Accessing and destruction of events
994 * @ingroup event
996 * Destroy the event, freeing all associated resources. Resources obtained
997 * from this event must be considered invalid after this call.
1001 * destroy the event.
1003 * @param event An event retrieved by libinput_get_event().
1006 libinput_event_destroy(struct libinput_event *event);
1009 * @ingroup event
1011 * Get the type of the event.
1013 * @param event An event retrieved by libinput_get_event().
1016 libinput_event_get_type(struct libinput_event *event);
1019 * @ingroup event
1021 * Get the libinput context from the event.
1023 * @param event The libinput event
1024 * @return The libinput context for this event.
1027 libinput_event_get_context(struct libinput_event *event);
1030 * @ingroup event
1032 * Return the device associated with this event. For device added/removed
1034 * this is the device that generated the event.
1036 * This device is not refcounted and its lifetime is that of the event. Use
1039 * @return The device associated with this event
1043 libinput_event_get_device(struct libinput_event *event);
1046 * @ingroup event
1048 * Return the pointer event that is this input event. If the event type does
1049 * not match the pointer event types, this function returns NULL.
1053 * @return A pointer event, or NULL for other events
1056 libinput_event_get_pointer_event(struct libinput_event *event);
1059 * @ingroup event
1061 * Return the keyboard event that is this input event. If the event type does
1062 * not match the keyboard event types, this function returns NULL.
1066 * @return A keyboard event, or NULL for other events
1069 libinput_event_get_keyboard_event(struct libinput_event *event);
1072 * @ingroup event
1074 * Return the touch event that is this input event. If the event type does
1075 * not match the touch event types, this function returns NULL.
1079 * @return A touch event, or NULL for other events
1082 libinput_event_get_touch_event(struct libinput_event *event);
1085 * @ingroup event
1087 * Return the gesture event that is this input event. If the event type does
1088 * not match the gesture event types, this function returns NULL.
1091 * with their own event types. Begin is sent when the fingers are first set
1095 * termination of the gesture, an end event is sent.
1099 * @return A gesture event, or NULL for other events
1102 libinput_event_get_gesture_event(struct libinput_event *event);
1105 * @ingroup event
1107 * Return the tablet tool event that is this input event. If the event type
1108 * does not match the tablet tool event types, this function returns NULL.
1112 * @return A tablet tool event, or NULL for other events
1117 libinput_event_get_tablet_tool_event(struct libinput_event *event);
1120 * @ingroup event
1122 * Return the tablet pad event that is this input event. If the event type does not
1123 * match the tablet pad event types, this function returns NULL.
1127 * @return A tablet pad event, or NULL for other events
1130 libinput_event_get_tablet_pad_event(struct libinput_event *event);
1133 * @ingroup event
1135 * Return the switch event that is this input event. If the event type does
1136 * not match the switch event types, this function returns NULL.
1140 * @return A switch event, or NULL for other events
1145 libinput_event_get_switch_event(struct libinput_event *event);
1148 * @ingroup event
1150 * Return the device event that is this input event. If the event type does
1151 * not match the device event types, this function returns NULL.
1156 * @return A device event, or NULL for other events
1159 libinput_event_get_device_notify_event(struct libinput_event *event);
1162 * @ingroup event
1164 * @return The generic libinput_event of this event
1167 libinput_event_device_notify_get_base_event(struct libinput_event_device_notify *event);
1182 * @return The event time for this event
1185 libinput_event_keyboard_get_time(struct libinput_event_keyboard *event);
1193 * @return The event time for this event in microseconds
1196 libinput_event_keyboard_get_time_usec(struct libinput_event_keyboard *event);
1201 * @return The keycode that triggered this key event
1204 libinput_event_keyboard_get_key(struct libinput_event_keyboard *event);
1212 libinput_event_keyboard_get_key_state(struct libinput_event_keyboard *event);
1217 * @return The generic libinput_event of this event
1220 libinput_event_keyboard_get_base_event(struct libinput_event_keyboard *event);
1225 * For the key of a @ref LIBINPUT_EVENT_KEYBOARD_KEY event, return the total number
1226 * of keys pressed on all devices on the associated seat after the event was
1232 * @return The seat wide pressed key count for the key of this event
1236 struct libinput_event_keyboard *event);
1251 * @return The event time for this event
1254 libinput_event_pointer_get_time(struct libinput_event_pointer *event);
1262 * @return The event time for this event in microseconds
1265 libinput_event_pointer_get_time_usec(struct libinput_event_pointer *event);
1270 * Return the delta between the last event and the current event. For pointer
1283 * @return The relative x movement since the last event
1286 libinput_event_pointer_get_dx(struct libinput_event_pointer *event);
1291 * Return the delta between the last event and the current event. For pointer
1304 * @return The relative y movement since the last event
1307 libinput_event_pointer_get_dy(struct libinput_event_pointer *event);
1313 * current event. For pointer events that are not of type @ref
1328 * @return The unaccelerated relative x movement since the last event
1332 struct libinput_event_pointer *event);
1338 * current event. For pointer events that are not of type @ref
1353 * @return The unaccelerated relative y movement since the last event
1357 struct libinput_event_pointer *event);
1362 * Return the current absolute x coordinate of the pointer event, in mm from
1375 libinput_event_pointer_get_absolute_x(struct libinput_event_pointer *event);
1380 * Return the current absolute y coordinate of the pointer event, in mm from
1393 libinput_event_pointer_get_absolute_y(struct libinput_event_pointer *event);
1398 * Return the current absolute x coordinate of the pointer event, transformed to
1408 * @param event The libinput pointer event
1414 struct libinput_event_pointer *event,
1420 * Return the current absolute y coordinate of the pointer event, transformed to
1430 * @param event The libinput pointer event
1436 struct libinput_event_pointer *event,
1442 * Return the button that triggered this event.
1449 * @return The button triggering this event
1452 libinput_event_pointer_get_button(struct libinput_event_pointer *event);
1457 * Return the button state that triggered this event.
1464 * @return The button state triggering this event
1467 libinput_event_pointer_get_button_state(struct libinput_event_pointer *event);
1472 * For the button of a @ref LIBINPUT_EVENT_POINTER_BUTTON event, return the
1474 * after the event was triggered.
1480 * @return The seat wide pressed button count for the key of this event
1484 struct libinput_event_pointer *event);
1489 * Check if the event has a valid value for the given axis.
1492 * libinput_event_pointer_get_axis_value() returns a value of 0, the event
1493 * is a scroll stop event.
1506 * @return Non-zero if this event contains a value for this axis
1509 libinput_event_pointer_has_axis(struct libinput_event_pointer *event,
1518 * @ref LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, the value of the event is in
1532 * @return The axis value of this event
1537 libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event,
1543 * Return the source for a given axis event. Axis events (scroll events) can
1556 * event is guaranteed (though it may happen).
1578 * @note This function is superfluous as of libinput 1.19. The event
1582 * the event type.
1584 * @return The source for this axis event
1587 libinput_event_pointer_get_axis_source(struct libinput_event_pointer *event);
1592 * Return the axis value in discrete steps for a given axis event. How a
1600 * If the event is not of type @ref LIBINPUT_EVENT_POINTER_AXIS, this
1609 * @return The discrete value for the given event.
1615 libinput_event_pointer_get_axis_value_discrete(struct libinput_event_pointer *event,
1624 * @ref LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL, the value of the event is in
1629 * If the event is @ref LIBINPUT_EVENT_POINTER_SCROLL_FINGER, libinput
1636 * If the event is @ref LIBINPUT_EVENT_POINTER_SCROLL_WHEEL, no terminating
1637 * event is guaranteed (though it may happen).
1645 * If the event is @ref LIBINPUT_EVENT_POINTER_SCROLL_CONTINUOUS, libinput
1660 * @return The axis value of this event
1667 libinput_event_pointer_get_scroll_value(struct libinput_event_pointer *event,
1707 libinput_event_pointer_get_scroll_value_v120(struct libinput_event_pointer *event,
1713 * @return The generic libinput_event of this event
1716 libinput_event_pointer_get_base_event(struct libinput_event_pointer *event);
1730 * @return The event time for this event
1733 libinput_event_touch_get_time(struct libinput_event_touch *event);
1741 * @return The event time for this event in microseconds
1744 libinput_event_touch_get_time_usec(struct libinput_event_touch *event);
1749 * Get the slot of this touch event. See the kernel's multitouch
1752 * If the touch event has no assigned slot, for example if it is from a
1763 * @return The slot of this touch event
1766 libinput_event_touch_get_slot(struct libinput_event_touch *event);
1771 * Get the seat slot of the touch event. A seat slot is a non-negative seat
1785 * @return The seat slot of the touch event
1788 libinput_event_touch_get_seat_slot(struct libinput_event_touch *event);
1793 * Return the current absolute x coordinate of the touch event, in mm from
1804 * @param event The libinput touch event
1808 libinput_event_touch_get_x(struct libinput_event_touch *event);
1813 * Return the current absolute y coordinate of the touch event, in mm from
1824 * @param event The libinput touch event
1828 libinput_event_touch_get_y(struct libinput_event_touch *event);
1833 * Return the current absolute x coordinate of the touch event, transformed to
1843 * @param event The libinput touch event
1848 libinput_event_touch_get_x_transformed(struct libinput_event_touch *event,
1854 * Return the current absolute y coordinate of the touch event, transformed to
1864 * @param event The libinput touch event
1869 libinput_event_touch_get_y_transformed(struct libinput_event_touch *event,
1875 * @return The generic libinput_event of this event
1878 libinput_event_touch_get_base_event(struct libinput_event_touch *event);
1886 * event. All following gesture events will be of the
1900 * @return The event time for this event
1903 libinput_event_gesture_get_time(struct libinput_event_gesture *event);
1911 * @return The event time for this event in microseconds
1914 libinput_event_gesture_get_time_usec(struct libinput_event_gesture *event);
1919 * @return The generic libinput_event of this event
1922 libinput_event_gesture_get_base_event(struct libinput_event_gesture *event);
1940 libinput_event_gesture_get_finger_count(struct libinput_event_gesture *event);
1957 libinput_event_gesture_get_cancelled(struct libinput_event_gesture *event);
1962 * Return the delta between the last event and the current event. For gesture
1972 * @return the relative x movement since the last event
1975 libinput_event_gesture_get_dx(struct libinput_event_gesture *event);
1980 * Return the delta between the last event and the current event. For gesture
1990 * @return the relative y movement since the last event
1993 libinput_event_gesture_get_dy(struct libinput_event_gesture *event);
1999 * current event. For gesture events that are not of type
2011 * @return the unaccelerated relative x movement since the last event
2015 struct libinput_event_gesture *event);
2021 * current event. For gesture events that are not of type
2033 * @return the unaccelerated relative y movement since the last event
2037 struct libinput_event_gesture *event);
2053 * of the most recent @ref LIBINPUT_EVENT_GESTURE_PINCH_UPDATE event (if
2066 libinput_event_gesture_get_scale(struct libinput_event_gesture *event);
2072 * LIBINPUT_EVENT_GESTURE_PINCH_UPDATE event. For gesture events that
2080 * to the 1 resp. 7 location in a single event then the angle delta is
2087 * @return the angle delta since the last event
2090 libinput_event_gesture_get_angle_delta(struct libinput_event_gesture *event);
2112 * @return The generic libinput_event of this event
2117 libinput_event_tablet_tool_get_base_event(struct libinput_event_tablet_tool *event);
2122 * Check if the x axis was updated in this event.
2133 * @param event The libinput tablet tool event
2140 struct libinput_event_tablet_tool *event);
2145 * Check if the y axis was updated in this event.
2156 * @param event The libinput tablet tool event
2163 struct libinput_event_tablet_tool *event);
2168 * Check if the pressure axis was updated in this event.
2179 * @param event The libinput tablet tool event
2186 struct libinput_event_tablet_tool *event);
2191 * Check if the distance axis was updated in this event.
2204 * @param event The libinput tablet tool event
2211 struct libinput_event_tablet_tool *event);
2216 * Check if the tilt x axis was updated in this event.
2227 * @param event The libinput tablet tool event
2234 struct libinput_event_tablet_tool *event);
2239 * Check if the tilt y axis was updated in this event.
2250 * @param event The libinput tablet tool event
2257 struct libinput_event_tablet_tool *event);
2261 * Check if the z-rotation axis was updated in this event.
2272 * @param event The libinput tablet tool event
2279 struct libinput_event_tablet_tool *event);
2283 * Check if the slider axis was updated in this event.
2294 * @param event The libinput tablet tool event
2301 struct libinput_event_tablet_tool *event);
2306 * Check if the size major axis was updated in this event.
2317 * @param event The libinput tablet tool event
2322 struct libinput_event_tablet_tool *event);
2327 * Check if the size minor axis was updated in this event.
2338 * @param event The libinput tablet tool event
2343 struct libinput_event_tablet_tool *event);
2348 * Check if the wheel axis was updated in this event.
2359 * @param event The libinput tablet tool event
2366 struct libinput_event_tablet_tool *event);
2379 * @param event The libinput tablet tool event
2385 libinput_event_tablet_tool_get_x(struct libinput_event_tablet_tool *event);
2398 * @param event The libinput tablet tool event
2404 libinput_event_tablet_tool_get_y(struct libinput_event_tablet_tool *event);
2409 * Return the delta between the last event and the current event.
2417 * @param event The libinput tablet event
2418 * @return The relative x movement since the last event
2423 libinput_event_tablet_tool_get_dx(struct libinput_event_tablet_tool *event);
2428 * Return the delta between the last event and the current event.
2436 * @param event The libinput tablet event
2437 * @return The relative y movement since the last event
2442 libinput_event_tablet_tool_get_dy(struct libinput_event_tablet_tool *event);
2452 * @param event The libinput tablet tool event
2458 libinput_event_tablet_tool_get_pressure(struct libinput_event_tablet_tool *event);
2468 * @param event The libinput tablet tool event
2474 libinput_event_tablet_tool_get_distance(struct libinput_event_tablet_tool *event);
2488 * @param event The libinput tablet tool event
2494 libinput_event_tablet_tool_get_tilt_x(struct libinput_event_tablet_tool *event);
2508 * @param event The libinput tablet tool event
2514 libinput_event_tablet_tool_get_tilt_y(struct libinput_event_tablet_tool *event);
2530 * @param event The libinput tablet tool event
2536 libinput_event_tablet_tool_get_rotation(struct libinput_event_tablet_tool *event);
2548 * @param event The libinput tablet tool event
2554 libinput_event_tablet_tool_get_slider_position(struct libinput_event_tablet_tool *event);
2568 * @param event The libinput tablet tool event
2572 libinput_event_tablet_tool_get_size_major(struct libinput_event_tablet_tool *event);
2586 * @param event The libinput tablet tool event
2590 libinput_event_tablet_tool_get_size_minor(struct libinput_event_tablet_tool *event);
2597 * @param event The libinput tablet tool event
2598 * @return The delta of the wheel, in degrees, compared to the last event
2604 struct libinput_event_tablet_tool *event);
2611 * @param event The libinput tablet tool event
2612 * @return The delta of the wheel, in discrete steps, compared to the last event
2620 struct libinput_event_tablet_tool *event);
2625 * Return the current absolute x coordinate of the tablet tool event,
2630 * libinput always includes all device axes in the event.
2635 * @param event The libinput tablet tool event
2642 libinput_event_tablet_tool_get_x_transformed(struct libinput_event_tablet_tool *event,
2648 * Return the current absolute y coordinate of the tablet tool event,
2653 * libinput always includes all device axes in the event.
2658 * @param event The libinput tablet tool event
2665 libinput_event_tablet_tool_get_y_transformed(struct libinput_event_tablet_tool *event,
2671 * Returns the tool that was in use during this event.
2685 * @param event The libinput tablet tool event
2686 * @return The new tool triggering this event
2691 libinput_event_tablet_tool_get_tool(struct libinput_event_tablet_tool *event);
2696 * Returns the new proximity state of a tool from a proximity event.
2698 * event of type @ref LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY.
2714 * @param event The libinput tablet tool event
2715 * @return The new proximity state of the tool from the event.
2720 libinput_event_tablet_tool_get_proximity_state(struct libinput_event_tablet_tool *event);
2725 * Returns the new tip state of a tool from a tip event.
2728 * event of type @ref LIBINPUT_EVENT_TABLET_TOOL_TIP.
2730 * @param event The libinput tablet tool event
2731 * @return The new tip state of the tool from the event.
2736 libinput_event_tablet_tool_get_tip_state(struct libinput_event_tablet_tool *event);
2741 * Return the button that triggered this event. For events that are not of
2747 * @param event The libinput tablet tool event
2748 * @return the button triggering this event
2753 libinput_event_tablet_tool_get_button(struct libinput_event_tablet_tool *event);
2758 * Return the button state of the event.
2763 * @param event The libinput tablet tool event
2764 * @return the button state triggering this event
2769 libinput_event_tablet_tool_get_button_state(struct libinput_event_tablet_tool *event);
2774 * For the button of a @ref LIBINPUT_EVENT_TABLET_TOOL_BUTTON event, return the total
2776 * the event was triggered.
2781 * @param event The libinput tablet tool event
2782 * @return the seat wide pressed button count for the key of this event
2787 libinput_event_tablet_tool_get_seat_button_count(struct libinput_event_tablet_tool *event);
2795 * @param event The libinput tablet tool event
2796 * @return The event time for this event
2801 libinput_event_tablet_tool_get_time(struct libinput_event_tablet_tool *event);
2809 * @param event The libinput tablet tool event
2810 * @return The event time for this event in microseconds
2815 libinput_event_tablet_tool_get_time_usec(struct libinput_event_tablet_tool *event);
3106 * @return The generic libinput_event of this event
3111 libinput_event_tablet_pad_get_base_event(struct libinput_event_tablet_pad *event);
3121 * libinput sends a terminating event with a ring value of -1 when the
3129 * @param event The libinput tablet pad event
3136 libinput_event_tablet_pad_get_ring_position(struct libinput_event_tablet_pad *event);
3149 * @param event The libinput tablet pad event
3155 libinput_event_tablet_pad_get_ring_number(struct libinput_event_tablet_pad *event);
3168 * @param event The libinput tablet pad event
3174 libinput_event_tablet_pad_get_ring_source(struct libinput_event_tablet_pad *event);
3184 * libinput sends a terminating event with a ring value of -1 when the
3192 * @param event The libinput tablet pad event
3199 libinput_event_tablet_pad_get_strip_position(struct libinput_event_tablet_pad *event);
3212 * @param event The libinput tablet pad event
3218 libinput_event_tablet_pad_get_strip_number(struct libinput_event_tablet_pad *event);
3231 * @param event The libinput tablet pad event
3237 libinput_event_tablet_pad_get_strip_source(struct libinput_event_tablet_pad *event);
3242 * Return the button number that triggered this event, starting at 0.
3254 * @param event The libinput tablet pad event
3255 * @return the button triggering this event
3260 libinput_event_tablet_pad_get_button_number(struct libinput_event_tablet_pad *event);
3265 * Return the button state of the event.
3271 * @param event The libinput tablet pad event
3272 * @return the button state triggering this event
3277 libinput_event_tablet_pad_get_button_state(struct libinput_event_tablet_pad *event);
3282 * Return the key code that triggered this event, e.g. KEY_CONTROLPANEL. The
3283 * list of key codes is defined in linux/input-event-codes.h.
3292 * @param event The libinput tablet pad event
3293 * @return the key code triggering this event
3298 libinput_event_tablet_pad_get_key(struct libinput_event_tablet_pad *event);
3303 * Return the key state of the event.
3309 * @param event The libinput tablet pad event
3310 * @return the key state triggering this event
3315 libinput_event_tablet_pad_get_key_state(struct libinput_event_tablet_pad *event);
3320 * Returns the mode the button, ring, or strip that triggered this event is
3321 * in, at the time of the event.
3331 * on the tablet. This function returns the mode that this event's button,
3333 * and the button event caused a new mode to be toggled, the mode returned
3337 * event. The returned mode may thus be different to the mode returned by
3341 * @param event The libinput tablet pad event
3343 * the event
3350 libinput_event_tablet_pad_get_mode(struct libinput_event_tablet_pad *event);
3356 * this event is considered in. The mode is a virtual grouping of
3368 * @param event The libinput tablet pad event
3369 * @return the mode group of the button, ring or strip that caused this event
3376 libinput_event_tablet_pad_get_mode_group(struct libinput_event_tablet_pad *event);
3384 * @param event The libinput tablet pad event
3385 * @return The event time for this event
3390 libinput_event_tablet_pad_get_time(struct libinput_event_tablet_pad *event);
3398 * @param event The libinput tablet pad event
3399 * @return The event time for this event in microseconds
3404 libinput_event_tablet_pad_get_time_usec(struct libinput_event_tablet_pad *event);
3415 * Return the switch that triggered this event.
3422 * @param event The libinput switch event
3423 * @return The switch triggering this event
3428 libinput_event_switch_get_switch(struct libinput_event_switch *event);
3433 * Return the switch state that triggered this event.
3440 * @param event The libinput switch event
3441 * @return The switch state triggering this event
3446 libinput_event_switch_get_switch_state(struct libinput_event_switch *event);
3451 * @return The generic libinput_event of this event
3456 libinput_event_switch_get_base_event(struct libinput_event_switch *event);
3464 * @param event The libinput switch event
3465 * @return The event time for this event
3470 libinput_event_switch_get_time(struct libinput_event_switch *event);
3478 * @param event The libinput switch event
3479 * @return The event time for this event in microseconds
3484 libinput_event_switch_get_time_usec(struct libinput_event_switch *event);
3622 * the @ref LIBINPUT_EVENT_DEVICE_REMOVED event marks the end of events for
3649 * Main event dispatchment function. Reads events of the file descriptors
3669 * Retrieve the next event from libinput's internal event queue.
3671 * After handling the retrieved event, the caller must destroy it using
3675 * @return The next available event, or NULL if no event is available.
3683 * Return the type of the next event in the internal queue. This function
3684 * does not pop the event off the queue and the next call to
3685 * libinput_get_event() returns that event.
3688 * @return The event type of the next available event or @ref
3689 * LIBINPUT_EVENT_NONE if no event is available.
4211 * @ref LIBINPUT_EVENT_DEVICE_REMOVED event and this @ref libinput_device is
4214 * A @ref LIBINPUT_EVENT_DEVICE_ADDED event is generated with a new @ref
4302 * given code (see linux/input-event-codes.h).
4317 * given code (see linux/input-event-codes.h).
4418 * given code (see linux/input-event-codes.h).
4574 * @return The number of fingers that can generate a tap event, or 0 if the
4760 * tap immediately followed by a finger down results in a button down event,
5009 * The send-event mode of a device defines when a device may generate events
5044 * Return the possible send-event modes for this device. These modes define
5061 * Set the send-event mode for this device. The mode defines when the device
5074 * returns success. Changing the send-event mode on a device that has been
5093 * Get the send-event mode for this device. The mode defines when the device
5103 * @return The current bitmask of the send-event mode for this device.
5115 * Get the default send-event mode for this device. The mode defines when
5119 * @return The bitmask of the send-event mode for this device.
5770 * button event. Releasing the buttons generates a middle mouse button