libinput.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Jonas Ådahl
3  * Copyright © 2013-2015 Red Hat, Inc.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef LIBINPUT_H
26 #define LIBINPUT_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #include <stdlib.h>
33 #include <stdint.h>
34 #include <stdarg.h>
35 #include <libudev.h>
36 
37 #define LIBINPUT_ATTRIBUTE_PRINTF(_format, _args) \
38  __attribute__ ((format (printf, _format, _args)))
39 #define LIBINPUT_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated))
40 
48 struct libinput;
49 
58 
68 
77 
97 
109 
117 
125 
134 
146 
160 
173 
183 };
184 
199 };
200 
210 };
211 
221 };
222 
232 };
233 
249 };
250 
277 };
278 
294 };
295 
311 };
312 
347 };
348 
368 };
369 
384 };
385 
414 
430 int
432 
457  unsigned int index);
458 
471 unsigned int
473 
491 unsigned int
493 
513 unsigned int
515 
528 int
530  unsigned int button);
531 
544 int
546  unsigned int ring);
547 
560 int
562  unsigned int strip);
563 
582 int
584  unsigned int button);
585 
599  struct libinput_tablet_pad_mode_group *group);
600 
614  struct libinput_tablet_pad_mode_group *group);
615 
629 void
631  struct libinput_tablet_pad_mode_group *group,
632  void *user_data);
633 
645 void *
647  struct libinput_tablet_pad_mode_group *group);
648 
663 };
664 
679 
695 };
696 
705 struct libinput_event_switch;
706 
719 
729 
735 
737 
742 
752 
843 
867 
875 
888 
895 
900 };
901 
918 void
920 
930 
939 struct libinput *
941 
955 struct libinput_device *
957 
968 struct libinput_event_pointer *
970 
983 
994 struct libinput_event_touch *
996 
1014 struct libinput_event_gesture *
1016 
1031 
1044 
1057 struct libinput_event_switch *
1059 
1073 
1079 struct libinput_event *
1081 
1097 uint32_t
1099 
1108 uint64_t
1110 
1116 uint32_t
1118 
1124 enum libinput_key_state
1126 
1132 struct libinput_event *
1134 
1147 uint32_t
1149  struct libinput_event_keyboard *event);
1150 
1166 uint32_t
1168 
1177 uint64_t
1179 
1198 double
1200 
1219 double
1221 
1243 double
1245  struct libinput_event_pointer *event);
1246 
1268 double
1270  struct libinput_event_pointer *event);
1271 
1287 double
1289 
1305 double
1307 
1325 double
1327  struct libinput_event_pointer *event,
1328  uint32_t width);
1329 
1347 double
1349  struct libinput_event_pointer *event,
1350  uint32_t height);
1351 
1364 uint32_t
1366 
1381 
1395 uint32_t
1397  struct libinput_event_pointer *event);
1398 
1416 int
1418  enum libinput_pointer_axis axis);
1419 
1444 double
1446  enum libinput_pointer_axis axis);
1447 
1494 
1511 double
1513  enum libinput_pointer_axis axis);
1514 
1520 struct libinput_event *
1522 
1537 uint32_t
1539 
1548 uint64_t
1550 
1570 int32_t
1572 
1592 int32_t
1594 
1612 double
1614 
1632 double
1634 
1652 double
1654  uint32_t width);
1655 
1673 double
1675  uint32_t height);
1676 
1682 struct libinput_event *
1684 
1707 uint32_t
1708 libinput_event_gesture_get_time(struct libinput_event_gesture *event);
1709 
1718 uint64_t
1719 libinput_event_gesture_get_time_usec(struct libinput_event_gesture *event);
1720 
1726 struct libinput_event *
1727 libinput_event_gesture_get_base_event(struct libinput_event_gesture *event);
1728 
1744 int
1745 libinput_event_gesture_get_finger_count(struct libinput_event_gesture *event);
1746 
1761 int
1762 libinput_event_gesture_get_cancelled(struct libinput_event_gesture *event);
1763 
1779 double
1780 libinput_event_gesture_get_dx(struct libinput_event_gesture *event);
1781 
1797 double
1798 libinput_event_gesture_get_dy(struct libinput_event_gesture *event);
1799 
1818 double
1820  struct libinput_event_gesture *event);
1821 
1840 double
1842  struct libinput_event_gesture *event);
1843 
1870 double
1871 libinput_event_gesture_get_scale(struct libinput_event_gesture *event);
1872 
1894 double
1895 libinput_event_gesture_get_angle_delta(struct libinput_event_gesture *event);
1896 
1921 struct libinput_event *
1923 
1943 int
1945  struct libinput_event_tablet_tool *event);
1946 
1966 int
1968  struct libinput_event_tablet_tool *event);
1969 
1989 int
1991  struct libinput_event_tablet_tool *event);
1992 
2014 int
2016  struct libinput_event_tablet_tool *event);
2017 
2037 int
2039  struct libinput_event_tablet_tool *event);
2040 
2060 int
2062  struct libinput_event_tablet_tool *event);
2082 int
2084  struct libinput_event_tablet_tool *event);
2104 int
2106  struct libinput_event_tablet_tool *event);
2107 
2125 int
2127  struct libinput_event_tablet_tool *event);
2128 
2146 int
2148  struct libinput_event_tablet_tool *event);
2149 
2169 int
2171  struct libinput_event_tablet_tool *event);
2172 
2189 double
2191 
2208 double
2210 
2227 double
2229 
2246 double
2248 
2262 double
2264 
2278 double
2280 
2298 double
2300 
2318 double
2320 
2340 double
2342 
2358 double
2360 
2376 double
2378 
2394 double
2396 
2407 double
2409  struct libinput_event_tablet_tool *event);
2410 
2423 int
2425  struct libinput_event_tablet_tool *event);
2426 
2446 double
2448  uint32_t width);
2449 
2469 double
2471  uint32_t height);
2472 
2495 struct libinput_tablet_tool *
2497 
2526 
2542 
2557 uint32_t
2559 
2575 
2591 uint32_t
2593 
2605 uint32_t
2607 
2619 uint64_t
2621 
2647 
2667 uint64_t
2669 
2683 struct libinput_tablet_tool *
2685 
2700 struct libinput_tablet_tool *
2702 
2713 int
2715 
2726 int
2728 
2739 int
2741 
2752 int
2754 
2765 int
2767 
2779 int
2781 
2792 int
2794 
2808 int
2810  uint32_t code);
2811 
2828 int
2830 
2867 uint64_t
2869 
2882 void *
2884 
2895 void
2897  void *user_data);
2898 
2915 struct libinput_event *
2917 
2940 double
2942 
2959 unsigned int
2961 
2980 
3003 double
3005 
3022 unsigned int
3024 
3043 
3064 uint32_t
3066 
3083 
3102 uint32_t
3104 
3119 enum libinput_key_state
3121 
3154 unsigned int
3156 
3182 
3194 uint32_t
3196 
3208 uint64_t
3210 
3232 enum libinput_switch
3234 
3252 
3260 struct libinput_event *
3262 
3274 uint32_t
3276 
3288 uint64_t
3290 
3318  int (*open_restricted)(const char *path, int flags, void *user_data);
3326  void (*close_restricted)(int fd, void *user_data);
3327 };
3328 
3342 struct libinput *
3343 libinput_udev_create_context(const struct libinput_interface *interface,
3344  void *user_data,
3345  struct udev *udev);
3346 
3368 int
3370  const char *seat_id);
3371 
3391 struct libinput *
3392 libinput_path_create_context(const struct libinput_interface *interface,
3393  void *user_data);
3394 
3415 struct libinput_device *
3417  const char *path);
3418 
3437 void
3439 
3448 int
3450 
3468 int
3470 
3482 struct libinput_event *
3484 
3498 
3510 void
3512  void *user_data);
3513 
3524 void *
3526 
3538 int
3540 
3550 void
3552 
3562 struct libinput *
3563 libinput_ref(struct libinput *libinput);
3564 
3596 struct libinput *
3598 
3614 void
3616  enum libinput_log_priority priority);
3617 
3634 
3649 typedef void (*libinput_log_handler)(struct libinput *libinput,
3650  enum libinput_log_priority priority,
3651  const char *format, va_list args)
3653 
3669 void
3671  libinput_log_handler log_handler);
3672 
3694 struct libinput_seat *
3695 libinput_seat_ref(struct libinput_seat *seat);
3696 
3708 struct libinput_seat *
3709 libinput_seat_unref(struct libinput_seat *seat);
3710 
3722 void
3723 libinput_seat_set_user_data(struct libinput_seat *seat, void *user_data);
3724 
3734 void *
3736 
3745 struct libinput *
3747 
3764 const char *
3766 
3776 const char *
3778 
3794 struct libinput_device *
3795 libinput_device_ref(struct libinput_device *device);
3796 
3808 struct libinput_device *
3809 libinput_device_unref(struct libinput_device *device);
3810 
3822 void
3823 libinput_device_set_user_data(struct libinput_device *device, void *user_data);
3824 
3834 void *
3836 
3845 struct libinput *
3847 
3908 struct libinput_device_group *
3910 
3922 const char *
3924 
3938 const char *
3940 
3949 unsigned int
3951 
3960 unsigned int
3962 
3982 const char *
3984 
4005 struct libinput_seat *
4007 
4033 int
4035  const char *name);
4036 
4056 struct udev_device *
4058 
4069 void
4071  enum libinput_led leds);
4072 
4080 int
4082  enum libinput_device_capability capability);
4083 
4098 int
4100  double *width,
4101  double *height);
4102 
4115 int
4116 libinput_device_pointer_has_button(struct libinput_device *device, uint32_t code);
4117 
4130 int
4132  uint32_t code);
4133 
4147 int
4149 
4164 int
4166  enum libinput_switch sw);
4167 
4182 int
4184 
4199 int
4201 
4216 int
4218 
4233 int
4235  uint32_t code);
4236 
4249 struct libinput_device_group *
4251 
4265 struct libinput_device_group *
4267 
4279 void
4281  void *user_data);
4282 
4293 void *
4295 
4347 };
4348 
4358 const char *
4360 
4369 };
4370 
4386 int
4388 
4411  enum libinput_config_tap_state enable);
4412 
4431 
4448 
4459 };
4460 
4494 
4516 
4538 
4559 };
4560 
4581  enum libinput_config_drag_state enable);
4582 
4600 
4620 
4629 };
4630 
4655  enum libinput_config_drag_lock_state enable);
4656 
4676 
4699 
4712 int
4714 
4766  const float matrix[6]);
4767 
4784 int
4786  float matrix[6]);
4787 
4808 int
4810  float matrix[6]);
4811 
4845 };
4846 
4861 uint32_t
4863 
4894  uint32_t mode);
4895 
4915 uint32_t
4917 
4931 uint32_t
4933 
4947 int
4949 
4972  double speed);
4973 
4989 double
4991 
5006 double
5008 
5028 
5034 };
5035 
5048 uint32_t
5050 
5066  enum libinput_config_accel_profile mode);
5067 
5081 
5095 
5125 int
5127 
5144  int enable);
5158 int
5160 
5174 int
5176 
5190 int
5192 
5218  int left_handed);
5219 
5233 int
5235 
5249 int
5251 
5273 };
5274 
5290 uint32_t
5292 
5315  enum libinput_config_click_method method);
5333 
5351 
5366 };
5367 
5388 int
5390  struct libinput_device *device);
5391 
5416  struct libinput_device *device,
5418 
5444  struct libinput_device *device);
5445 
5472  struct libinput_device *device);
5473 
5501 };
5502 
5520 uint32_t
5522 
5549  enum libinput_config_scroll_method method);
5550 
5569 
5588 
5626  uint32_t button);
5627 
5652 uint32_t
5654 
5675 uint32_t
5677 
5681 };
5682 
5707 
5732 
5752 
5761 };
5762 
5778 int
5780 
5804  enum libinput_config_dwt_state enable);
5805 
5823 
5841 
5856 int
5858 
5893  unsigned int degrees_cw);
5894 
5911 unsigned int
5913 
5930 unsigned int
5932 
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936 #endif /* LIBINPUT_H */
@ LIBINPUT_EVENT_NONE
This is not a real event type, and is only used to tell the user that no new event is available in th...
Definition: libinput.h:718
@ LIBINPUT_LED_NUM_LOCK
Definition: libinput.h:218
enum libinput_config_status libinput_device_config_scroll_set_button(struct libinput_device *device, uint32_t button)
struct libinput_event * libinput_event_device_notify_get_base_event(struct libinput_event_device_notify *event)
libinput_config_middle_emulation_state
Definition: libinput.h:5355
double libinput_event_gesture_get_angle_delta(struct libinput_event_gesture *event)
int libinput_device_keyboard_has_key(struct libinput_device *device, uint32_t code)
int libinput_event_tablet_tool_distance_has_changed(struct libinput_event_tablet_tool *event)
uint64_t libinput_event_keyboard_get_time_usec(struct libinput_event_keyboard *event)
libinput_config_click_method
Definition: libinput.h:5259
libinput_led
Definition: libinput.h:217
enum libinput_tablet_tool_proximity_state libinput_event_tablet_tool_get_proximity_state(struct libinput_event_tablet_tool *event)
struct libinput * libinput_seat_get_context(struct libinput_seat *seat)
struct libinput_event * libinput_event_pointer_get_base_event(struct libinput_event_pointer *event)
int libinput_event_tablet_tool_size_minor_has_changed(struct libinput_event_tablet_tool *event)
@ LIBINPUT_EVENT_TOUCH_MOTION
Definition: libinput.h:745
uint32_t libinput_event_keyboard_get_seat_key_count(struct libinput_event_keyboard *event)
@ LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN
Send scroll events when a button is down and the device moves along a scroll-capable axis.
Definition: libinput.h:5500
@ LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE
An adaptive acceleration profile.
Definition: libinput.h:5033
enum libinput_config_accel_profile libinput_device_config_accel_get_default_profile(struct libinput_device *device)
@ LIBINPUT_DEVICE_CAP_GESTURE
Definition: libinput.h:197
unsigned int libinput_tablet_pad_mode_group_get_mode(struct libinput_tablet_pad_mode_group *group)
struct libinput_event * libinput_event_gesture_get_base_event(struct libinput_event_gesture *event)
libinput_config_dwt_state
Definition: libinput.h:5758
uint64_t libinput_event_tablet_tool_get_time_usec(struct libinput_event_tablet_tool *event)
struct libinput_event_touch * libinput_event_get_touch_event(struct libinput_event *event)
enum libinput_config_tap_state libinput_device_config_tap_get_default_enabled(struct libinput_device *device)
int libinput_device_switch_has_switch(struct libinput_device *device, enum libinput_switch sw)
libinput_config_scroll_method
Definition: libinput.h:5480
libinput_pointer_axis
Definition: libinput.h:246
Definition: libinput.h:48
int32_t libinput_event_touch_get_slot(struct libinput_event_touch *event)
uint32_t libinput_event_tablet_tool_get_seat_button_count(struct libinput_event_tablet_tool *event)
int libinput_device_pointer_has_button(struct libinput_device *device, uint32_t code)
@ LIBINPUT_EVENT_TOUCH_DOWN
Definition: libinput.h:743
@ LIBINPUT_TABLET_PAD_STRIP_SOURCE_FINGER
The event is caused by the movement of one or more fingers on the strip.
Definition: libinput.h:310
enum libinput_config_status libinput_device_config_tap_set_enabled(struct libinput_device *device, enum libinput_config_tap_state enable)
int libinput_tablet_tool_has_button(struct libinput_tablet_tool *tool, uint32_t code)
@ LIBINPUT_TABLET_TOOL_TYPE_ERASER
Eraser.
Definition: libinput.h:337
unsigned int libinput_tablet_pad_mode_group_get_index(struct libinput_tablet_pad_mode_group *group)
int libinput_device_config_calibration_get_matrix(struct libinput_device *device, float matrix[6])
int libinput_device_tablet_pad_get_num_rings(struct libinput_device *device)
double libinput_event_gesture_get_scale(struct libinput_event_gesture *event)
libinput_config_status
Definition: libinput.h:4342
int libinput_tablet_tool_has_wheel(struct libinput_tablet_tool *tool)
Definition: libinput.h:133
enum libinput_key_state libinput_event_keyboard_get_key_state(struct libinput_event_keyboard *event)
uint32_t libinput_event_pointer_get_button(struct libinput_event_pointer *event)
enum libinput_config_scroll_method libinput_device_config_scroll_get_default_method(struct libinput_device *device)
struct udev_device * libinput_device_get_udev_device(struct libinput_device *device)
struct libinput_seat * libinput_seat_ref(struct libinput_seat *seat)
struct libinput_event * libinput_event_switch_get_base_event(struct libinput_event_switch *event)
@ LIBINPUT_DEVICE_CAP_POINTER
Definition: libinput.h:193
enum libinput_config_dwt_state libinput_device_config_dwt_get_default_enabled(struct libinput_device *device)
@ LIBINPUT_EVENT_POINTER_AXIS
Definition: libinput.h:741
enum libinput_config_tap_state libinput_device_config_tap_get_enabled(struct libinput_device *device)
@ LIBINPUT_LOG_PRIORITY_DEBUG
Definition: libinput.h:180
uint64_t libinput_event_touch_get_time_usec(struct libinput_event_touch *event)
enum libinput_config_middle_emulation_state libinput_device_config_middle_emulation_get_default_enabled(struct libinput_device *device)
unsigned int libinput_device_config_rotation_get_angle(struct libinput_device *device)
struct libinput_tablet_tool * libinput_tablet_tool_ref(struct libinput_tablet_tool *tool)
enum libinput_config_click_method libinput_device_config_click_get_method(struct libinput_device *device)
@ LIBINPUT_EVENT_KEYBOARD_KEY
Definition: libinput.h:736
enum libinput_config_status libinput_device_config_scroll_set_natural_scroll_enabled(struct libinput_device *device, int enable)
double libinput_event_tablet_tool_get_dx(struct libinput_event_tablet_tool *event)
double libinput_event_tablet_tool_get_tilt_y(struct libinput_event_tablet_tool *event)
struct libinput_event_pointer * libinput_event_get_pointer_event(struct libinput_event *event)
@ LIBINPUT_CONFIG_STATUS_UNSUPPORTED
Configuration not available on this device.
Definition: libinput.h:4344
#define LIBINPUT_ATTRIBUTE_PRINTF(_format, _args)
Definition: libinput.h:37
double libinput_event_tablet_tool_get_size_minor(struct libinput_event_tablet_tool *event)
libinput_button_state
Definition: libinput.h:229
enum libinput_config_status libinput_device_config_accel_set_speed(struct libinput_device *device, double speed)
int(* open_restricted)(const char *path, int flags, void *user_data)
Open the device at the given path with the flags provided and return the fd.
Definition: libinput.h:3318
struct libinput_device_group * libinput_device_group_unref(struct libinput_device_group *group)
int libinput_device_tablet_pad_has_key(struct libinput_device *device, uint32_t code)
@ LIBINPUT_EVENT_TOUCH_FRAME
Signals the end of a set of touchpoints at one device sample time.
Definition: libinput.h:751
@ LIBINPUT_EVENT_DEVICE_ADDED
Signals that a device has been added to the context.
Definition: libinput.h:728
enum libinput_config_tap_button_map libinput_device_config_tap_get_default_button_map(struct libinput_device *device)
double libinput_event_pointer_get_axis_value(struct libinput_event_pointer *event, enum libinput_pointer_axis axis)
unsigned int libinput_tablet_pad_mode_group_get_num_modes(struct libinput_tablet_pad_mode_group *group)
enum libinput_config_status libinput_device_config_tap_set_button_map(struct libinput_device *device, enum libinput_config_tap_button_map map)
struct libinput_device * libinput_device_ref(struct libinput_device *device)
const char * libinput_device_get_output_name(struct libinput_device *device)
double libinput_event_pointer_get_dy(struct libinput_event_pointer *event)
@ LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT
A flat acceleration profile.
Definition: libinput.h:5027
@ LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_DISABLED
Definition: libinput.h:5679
double libinput_event_gesture_get_dy_unaccelerated(struct libinput_event_gesture *event)
@ LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER
The number of fingers decides which button press to generate.
Definition: libinput.h:5272
@ LIBINPUT_DEVICE_CAP_TABLET_TOOL
Definition: libinput.h:195
@ LIBINPUT_EVENT_DEVICE_REMOVED
Signals that a device has been removed.
Definition: libinput.h:734
double libinput_event_touch_get_x(struct libinput_event_touch *event)
void * libinput_tablet_pad_mode_group_get_user_data(struct libinput_tablet_pad_mode_group *group)
int libinput_event_gesture_get_finger_count(struct libinput_event_gesture *event)
int libinput_tablet_tool_has_rotation(struct libinput_tablet_tool *tool)
enum libinput_config_status libinput_device_config_scroll_set_method(struct libinput_device *device, enum libinput_config_scroll_method method)
libinput_key_state
Definition: libinput.h:207
uint32_t libinput_event_tablet_tool_get_button(struct libinput_event_tablet_tool *event)
@ LIBINPUT_POINTER_AXIS_SOURCE_CONTINUOUS
The event is caused by the motion of some device.
Definition: libinput.h:270
@ LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_IN
Definition: libinput.h:367
int libinput_tablet_tool_has_slider(struct libinput_tablet_tool *tool)
double libinput_event_gesture_get_dx_unaccelerated(struct libinput_event_gesture *event)
enum libinput_config_status libinput_device_config_accel_set_profile(struct libinput_device *device, enum libinput_config_accel_profile mode)
double libinput_event_tablet_pad_get_ring_position(struct libinput_event_tablet_pad *event)
unsigned int libinput_device_get_id_vendor(struct libinput_device *device)
struct libinput_device_group * libinput_device_get_device_group(struct libinput_device *device)
@ LIBINPUT_CONFIG_DRAG_LOCK_ENABLED
Drag lock is to be enabled, or is currently disabled.
Definition: libinput.h:4628
int libinput_tablet_tool_has_size(struct libinput_tablet_tool *tool)
@ LIBINPUT_EVENT_GESTURE_PINCH_UPDATE
Definition: libinput.h:893
@ LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED
Middle mouse button emulation is to be enabled, or is currently enabled.
Definition: libinput.h:5365
enum libinput_key_state libinput_event_tablet_pad_get_key_state(struct libinput_event_tablet_pad *event)
uint32_t libinput_device_config_scroll_get_default_button(struct libinput_device *device)
enum libinput_button_state libinput_event_tablet_pad_get_button_state(struct libinput_event_tablet_pad *event)
double libinput_event_tablet_tool_get_x(struct libinput_event_tablet_tool *event)
libinput_tablet_pad_ring_axis_source
Definition: libinput.h:287
int libinput_tablet_tool_has_distance(struct libinput_tablet_tool *tool)
@ LIBINPUT_EVENT_TABLET_TOOL_TIP
Signals that a tool has come in contact with the surface of a device with the LIBINPUT_DEVICE_CAP_TAB...
Definition: libinput.h:824
enum libinput_config_tap_button_map libinput_device_config_tap_get_button_map(struct libinput_device *device)
int libinput_event_tablet_tool_slider_has_changed(struct libinput_event_tablet_tool *event)
struct libinput_tablet_pad_mode_group * libinput_device_tablet_pad_get_mode_group(struct libinput_device *device, unsigned int index)
enum libinput_switch_state libinput_event_switch_get_switch_state(struct libinput_event_switch *event)
double libinput_event_pointer_get_dx(struct libinput_event_pointer *event)
@ LIBINPUT_EVENT_POINTER_MOTION
Definition: libinput.h:738
enum libinput_config_drag_state libinput_device_config_tap_get_default_drag_enabled(struct libinput_device *device)
libinput_device_capability
Definition: libinput.h:191
uint32_t libinput_event_gesture_get_time(struct libinput_event_gesture *event)
int libinput_event_tablet_tool_size_major_has_changed(struct libinput_event_tablet_tool *event)
double libinput_event_tablet_tool_get_size_major(struct libinput_event_tablet_tool *event)
double libinput_event_pointer_get_absolute_y_transformed(struct libinput_event_pointer *event, uint32_t height)
void libinput_path_remove_device(struct libinput_device *device)
void libinput_suspend(struct libinput *libinput)
uint32_t libinput_device_config_scroll_get_button(struct libinput_device *device)
struct libinput * libinput_path_create_context(const struct libinput_interface *interface, void *user_data)
struct libinput_tablet_pad_mode_group * libinput_tablet_pad_mode_group_ref(struct libinput_tablet_pad_mode_group *group)
@ LIBINPUT_CONFIG_DRAG_DISABLED
Drag is to be disabled, or is currently disabled.
Definition: libinput.h:4553
void libinput_set_user_data(struct libinput *libinput, void *user_data)
@ LIBINPUT_LOG_PRIORITY_INFO
Definition: libinput.h:181
@ LIBINPUT_CONFIG_SCROLL_EDGE
Send scroll events when a finger moves along the bottom or right edge of a device.
Definition: libinput.h:5495
Definition: libinput.h:159
@ LIBINPUT_EVENT_GESTURE_PINCH_END
Definition: libinput.h:894
@ LIBINPUT_TABLET_TOOL_TYPE_MOUSE
A mouse bound to the tablet.
Definition: libinput.h:342
enum libinput_switch libinput_event_switch_get_switch(struct libinput_event_switch *event)
int libinput_udev_assign_seat(struct libinput *libinput, const char *seat_id)
void libinput_tablet_pad_mode_group_set_user_data(struct libinput_tablet_pad_mode_group *group, void *user_data)
struct libinput_event_gesture * libinput_event_get_gesture_event(struct libinput_event *event)
int libinput_dispatch(struct libinput *libinput)
struct libinput_tablet_pad_mode_group * libinput_tablet_pad_mode_group_unref(struct libinput_tablet_pad_mode_group *group)
uint32_t libinput_event_pointer_get_seat_button_count(struct libinput_event_pointer *event)
double libinput_event_touch_get_y(struct libinput_event_touch *event)
@ LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE
If an external pointer device is plugged in, do not send events from this device.
Definition: libinput.h:4844
enum libinput_pointer_axis_source libinput_event_pointer_get_axis_source(struct libinput_event_pointer *event)
enum libinput_tablet_pad_ring_axis_source libinput_event_tablet_pad_get_ring_source(struct libinput_event_tablet_pad *event)
int libinput_tablet_tool_has_tilt(struct libinput_tablet_tool *tool)
@ LIBINPUT_BUTTON_STATE_RELEASED
Definition: libinput.h:230
@ LIBINPUT_CONFIG_SCROLL_2FG
Send scroll events when two fingers are logically down on the device.
Definition: libinput.h:5490
@ LIBINPUT_TABLET_TOOL_TIP_UP
Definition: libinput.h:382
@ LIBINPUT_EVENT_TOUCH_UP
Definition: libinput.h:744
enum libinput_config_status libinput_device_config_tap_set_drag_enabled(struct libinput_device *device, enum libinput_config_drag_state enable)
@ LIBINPUT_EVENT_POINTER_BUTTON
Definition: libinput.h:740
enum libinput_config_dwt_state libinput_device_config_dwt_get_enabled(struct libinput_device *device)
void * libinput_tablet_tool_get_user_data(struct libinput_tablet_tool *tool)
const char * libinput_seat_get_logical_name(struct libinput_seat *seat)
@ LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE
Definition: libinput.h:890
libinput_switch_state
Definition: libinput.h:660
@ LIBINPUT_TABLET_TOOL_TYPE_TOTEM
A rotary device with positional and rotation data.
Definition: libinput.h:344
struct libinput_event * libinput_event_tablet_pad_get_base_event(struct libinput_event_tablet_pad *event)
enum libinput_config_status libinput_device_config_rotation_set_angle(struct libinput_device *device, unsigned int degrees_cw)
double libinput_event_pointer_get_absolute_x(struct libinput_event_pointer *event)
@ LIBINPUT_CONFIG_DRAG_ENABLED
Drag is to be enabled, or is currently enabled.
Definition: libinput.h:4558
@ LIBINPUT_SWITCH_STATE_ON
Definition: libinput.h:662
struct libinput_event * libinput_event_touch_get_base_event(struct libinput_event_touch *event)
@ LIBINPUT_SWITCH_TABLET_MODE
This switch indicates whether the device is in normal laptop mode or behaves like a tablet-like devic...
Definition: libinput.h:694
double libinput_event_pointer_get_axis_value_discrete(struct libinput_event_pointer *event, enum libinput_pointer_axis axis)
@ LIBINPUT_CONFIG_SEND_EVENTS_ENABLED
Send events from this device normally.
Definition: libinput.h:4824
Definition: libinput.h:108
struct libinput * libinput_event_get_context(struct libinput_event *event)
@ LIBINPUT_TABLET_TOOL_TIP_DOWN
Definition: libinput.h:383
@ LIBINPUT_CONFIG_STATUS_INVALID
Invalid parameter range.
Definition: libinput.h:4346
void * libinput_device_get_user_data(struct libinput_device *device)
@ LIBINPUT_LED_CAPS_LOCK
Definition: libinput.h:219
@ LIBINPUT_CONFIG_TAP_DISABLED
Tapping is to be disabled, or is currently disabled.
Definition: libinput.h:4365
libinput_tablet_tool_type
Definition: libinput.h:335
void(* close_restricted)(int fd, void *user_data)
Close the file descriptor.
Definition: libinput.h:3326
@ LIBINPUT_CONFIG_MIDDLE_EMULATION_DISABLED
Middle mouse button emulation is to be disabled, or is currently disabled.
Definition: libinput.h:5360
struct libinput_seat * libinput_device_get_seat(struct libinput_device *device)
const char * libinput_device_get_name(struct libinput_device *device)
uint64_t libinput_event_switch_get_time_usec(struct libinput_event_switch *event)
int libinput_event_pointer_has_axis(struct libinput_event_pointer *event, enum libinput_pointer_axis axis)
@ LIBINPUT_LED_SCROLL_LOCK
Definition: libinput.h:220
int libinput_event_tablet_tool_pressure_has_changed(struct libinput_event_tablet_tool *event)
@ LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL
Definition: libinput.h:247
int libinput_device_config_middle_emulation_is_available(struct libinput_device *device)
Definition: libinput.h:145
libinput_config_tap_button_map
Definition: libinput.h:4454
@ LIBINPUT_POINTER_AXIS_SOURCE_WHEEL_TILT
The event is caused by the tilting of a mouse wheel rather than its rotation.
Definition: libinput.h:276
void libinput_device_group_set_user_data(struct libinput_device_group *group, void *user_data)
@ LIBINPUT_CONFIG_DWT_ENABLED
Definition: libinput.h:5760
Definition: libinput.h:96
libinput_switch
Definition: libinput.h:672
double libinput_event_tablet_tool_get_rotation(struct libinput_event_tablet_tool *event)
libinput_config_scroll_button_lock_state
Definition: libinput.h:5678
uint32_t libinput_device_config_send_events_get_mode(struct libinput_device *device)
unsigned int libinput_event_tablet_pad_get_mode(struct libinput_event_tablet_pad *event)
@ LIBINPUT_EVENT_TABLET_PAD_BUTTON
A button pressed on a device with the LIBINPUT_DEVICE_CAP_TABLET_PAD capability.
Definition: libinput.h:859
uint64_t libinput_tablet_tool_get_tool_id(struct libinput_tablet_tool *tool)
libinput_config_send_events_mode
Definition: libinput.h:4818
enum libinput_config_drag_lock_state libinput_device_config_tap_get_default_drag_lock_enabled(struct libinput_device *device)
enum libinput_tablet_pad_strip_axis_source libinput_event_tablet_pad_get_strip_source(struct libinput_event_tablet_pad *event)
void libinput_log_set_priority(struct libinput *libinput, enum libinput_log_priority priority)
int libinput_event_tablet_tool_y_has_changed(struct libinput_event_tablet_tool *event)
struct libinput_device * libinput_device_unref(struct libinput_device *device)
double libinput_device_config_accel_get_default_speed(struct libinput_device *device)
void(* libinput_log_handler)(struct libinput *libinput, enum libinput_log_priority priority, const char *format, va_list args) LIBINPUT_ATTRIBUTE_PRINTF(3
Definition: libinput.h:3649
double libinput_event_gesture_get_dy(struct libinput_event_gesture *event)
int libinput_device_touch_get_touch_count(struct libinput_device *device)
@ LIBINPUT_LOG_PRIORITY_ERROR
Definition: libinput.h:182
int32_t libinput_event_touch_get_seat_slot(struct libinput_event_touch *event)
enum libinput_config_status libinput_device_config_send_events_set_mode(struct libinput_device *device, uint32_t mode)
@ LIBINPUT_TABLET_TOOL_TYPE_AIRBRUSH
An airbrush-like tool.
Definition: libinput.h:341
@ LIBINPUT_CONFIG_TAP_MAP_LRM
1/2/3 finger tap maps to left/right/middle
Definition: libinput.h:4456
@ LIBINPUT_DEVICE_CAP_TOUCH
Definition: libinput.h:194
double libinput_event_pointer_get_absolute_y(struct libinput_event_pointer *event)
struct libinput_event_device_notify * libinput_event_get_device_notify_event(struct libinput_event *event)
@ LIBINPUT_CONFIG_CLICK_METHOD_NONE
Do not send software-emulated button events.
Definition: libinput.h:5264
struct libinput_device * libinput_path_add_device(struct libinput *libinput, const char *path)
@ LIBINPUT_EVENT_SWITCH_TOGGLE
Definition: libinput.h:899
@ LIBINPUT_EVENT_TABLET_PAD_KEY
A key pressed on a device with the LIBINPUT_DEVICE_CAP_TABLET_PAD capability.
Definition: libinput.h:887
int libinput_device_config_accel_is_available(struct libinput_device *device)
int libinput_device_tablet_pad_get_num_strips(struct libinput_device *device)
Definition: libinput.h:124
double libinput_event_tablet_tool_get_distance(struct libinput_event_tablet_tool *event)
struct libinput_event_keyboard * libinput_event_get_keyboard_event(struct libinput_event *event)
int libinput_event_gesture_get_cancelled(struct libinput_event_gesture *event)
int libinput_device_config_left_handed_is_available(struct libinput_device *device)
int libinput_device_tablet_pad_get_num_buttons(struct libinput_device *device)
unsigned int libinput_event_tablet_pad_get_ring_number(struct libinput_event_tablet_pad *event)
@ LIBINPUT_EVENT_TOUCH_CANCEL
Definition: libinput.h:746
int libinput_device_config_calibration_has_matrix(struct libinput_device *device)
struct libinput * libinput_unref(struct libinput *libinput)
uint32_t libinput_event_keyboard_get_time(struct libinput_event_keyboard *event)
const char * libinput_seat_get_physical_name(struct libinput_seat *seat)
@ LIBINPUT_DEVICE_CAP_TABLET_PAD
Definition: libinput.h:196
uint32_t libinput_event_tablet_tool_get_time(struct libinput_event_tablet_tool *event)
int libinput_device_config_left_handed_get(struct libinput_device *device)
double libinput_event_tablet_tool_get_y(struct libinput_event_tablet_tool *event)
@ LIBINPUT_CONFIG_TAP_MAP_LMR
1/2/3 finger tap maps to left/middle/right
Definition: libinput.h:4458
struct libinput_event_tablet_tool * libinput_event_get_tablet_tool_event(struct libinput_event *event)
@ LIBINPUT_EVENT_TABLET_TOOL_AXIS
One or more axes have changed state on a device with the LIBINPUT_DEVICE_CAP_TABLET_TOOL capability.
Definition: libinput.h:772
int libinput_device_config_tap_get_finger_count(struct libinput_device *device)
@ LIBINPUT_EVENT_POINTER_MOTION_ABSOLUTE
Definition: libinput.h:739
uint32_t libinput_event_switch_get_time(struct libinput_event_switch *event)
uint64_t libinput_event_gesture_get_time_usec(struct libinput_event_gesture *event)
enum libinput_tablet_tool_tip_state libinput_event_tablet_tool_get_tip_state(struct libinput_event_tablet_tool *event)
int libinput_event_tablet_tool_get_wheel_delta_discrete(struct libinput_event_tablet_tool *event)
@ LIBINPUT_TABLET_PAD_STRIP_SOURCE_UNKNOWN
Definition: libinput.h:305
uint32_t libinput_device_config_send_events_get_modes(struct libinput_device *device)
@ LIBINPUT_BUTTON_STATE_PRESSED
Definition: libinput.h:231
enum libinput_config_status libinput_device_config_calibration_set_matrix(struct libinput_device *device, const float matrix[6])
void libinput_device_set_user_data(struct libinput_device *device, void *user_data)
int libinput_device_set_seat_logical_name(struct libinput_device *device, const char *name)
double libinput_event_tablet_tool_get_pressure(struct libinput_event_tablet_tool *event)
void libinput_device_led_update(struct libinput_device *device, enum libinput_led leds)
uint64_t libinput_event_pointer_get_time_usec(struct libinput_event_pointer *event)
double libinput_event_gesture_get_dx(struct libinput_event_gesture *event)
@ LIBINPUT_DEVICE_CAP_SWITCH
Definition: libinput.h:198
int libinput_event_tablet_tool_rotation_has_changed(struct libinput_event_tablet_tool *event)
@ LIBINPUT_TABLET_PAD_RING_SOURCE_UNKNOWN
Definition: libinput.h:288
struct libinput_event * libinput_event_keyboard_get_base_event(struct libinput_event_keyboard *event)
@ LIBINPUT_EVENT_TABLET_PAD_RING
A status change on a tablet ring with the LIBINPUT_DEVICE_CAP_TABLET_PAD capability.
Definition: libinput.h:866
@ LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS
Use software-button areas to generate button events.
Definition: libinput.h:5268
int libinput_get_fd(struct libinput *libinput)
double libinput_event_tablet_pad_get_strip_position(struct libinput_event_tablet_pad *event)
libinput_tablet_tool_tip_state
Definition: libinput.h:381
void * libinput_device_group_get_user_data(struct libinput_device_group *group)
@ LIBINPUT_CONFIG_STATUS_SUCCESS
Config applied successfully.
Definition: libinput.h:4343
libinput_config_drag_lock_state
Definition: libinput.h:4624
@ LIBINPUT_POINTER_AXIS_SOURCE_FINGER
The event is caused by the movement of one or more fingers on a device.
Definition: libinput.h:266
libinput_config_accel_profile
Definition: libinput.h:5014
enum libinput_config_status libinput_device_config_click_set_method(struct libinput_device *device, enum libinput_config_click_method method)
double libinput_event_tablet_tool_get_x_transformed(struct libinput_event_tablet_tool *event, uint32_t width)
double libinput_event_tablet_tool_get_y_transformed(struct libinput_event_tablet_tool *event, uint32_t height)
double libinput_event_pointer_get_absolute_x_transformed(struct libinput_event_pointer *event, uint32_t width)
Definition: libinput.h:67
@ LIBINPUT_TABLET_TOOL_PROXIMITY_STATE_OUT
Definition: libinput.h:366
double libinput_device_config_accel_get_speed(struct libinput_device *device)
@ LIBINPUT_SWITCH_STATE_OFF
Definition: libinput.h:661
struct libinput_device * libinput_event_get_device(struct libinput_event *event)
@ LIBINPUT_TABLET_PAD_RING_SOURCE_FINGER
The event is caused by the movement of one or more fingers on the ring.
Definition: libinput.h:293
int libinput_tablet_tool_has_pressure(struct libinput_tablet_tool *tool)
@ LIBINPUT_CONFIG_TAP_ENABLED
Tapping is to be enabled, or is currently enabled.
Definition: libinput.h:4367
int libinput_tablet_pad_mode_group_has_ring(struct libinput_tablet_pad_mode_group *group, unsigned int ring)
int libinput_tablet_pad_mode_group_button_is_toggle(struct libinput_tablet_pad_mode_group *group, unsigned int button)
enum libinput_config_click_method libinput_device_config_click_get_default_method(struct libinput_device *device)
Definition: libinput.h:3306
const char * libinput_device_get_sysname(struct libinput_device *device)
double libinput_event_tablet_tool_get_dy(struct libinput_event_tablet_tool *event)
struct libinput_tablet_tool * libinput_tablet_tool_unref(struct libinput_tablet_tool *tool)
int libinput_device_get_size(struct libinput_device *device, double *width, double *height)
Definition: libinput.h:116
enum libinput_button_state libinput_event_pointer_get_button_state(struct libinput_event_pointer *event)
double libinput_event_pointer_get_dx_unaccelerated(struct libinput_event_pointer *event)
uint64_t libinput_tablet_tool_get_serial(struct libinput_tablet_tool *tool)
enum libinput_config_status libinput_device_config_tap_set_drag_lock_enabled(struct libinput_device *device, enum libinput_config_drag_lock_state enable)
int libinput_device_config_calibration_get_default_matrix(struct libinput_device *device, float matrix[6])
int libinput_device_config_dwt_is_available(struct libinput_device *device)
int libinput_tablet_pad_mode_group_has_button(struct libinput_tablet_pad_mode_group *group, unsigned int button)
libinput_config_tap_state
Definition: libinput.h:4364
uint32_t libinput_event_tablet_pad_get_time(struct libinput_event_tablet_pad *event)
uint32_t libinput_event_tablet_pad_get_key(struct libinput_event_tablet_pad *event)
@ LIBINPUT_EVENT_GESTURE_SWIPE_END
Definition: libinput.h:891
enum libinput_config_middle_emulation_state libinput_device_config_middle_emulation_get_enabled(struct libinput_device *device)
@ LIBINPUT_POINTER_AXIS_SOURCE_WHEEL
The event is caused by the rotation of a wheel.
Definition: libinput.h:261
int libinput_device_config_rotation_is_available(struct libinput_device *device)
int libinput_event_tablet_tool_x_has_changed(struct libinput_event_tablet_tool *event)
const char * libinput_config_status_to_str(enum libinput_config_status status)
uint32_t libinput_device_config_accel_get_profiles(struct libinput_device *device)
unsigned int libinput_device_config_rotation_get_default_angle(struct libinput_device *device)
enum libinput_tablet_tool_type libinput_tablet_tool_get_type(struct libinput_tablet_tool *tool)
@ LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN
Definition: libinput.h:889
enum libinput_config_drag_lock_state libinput_device_config_tap_get_drag_lock_enabled(struct libinput_device *device)
@ LIBINPUT_KEY_STATE_PRESSED
Definition: libinput.h:209
struct libinput_event_switch * libinput_event_get_switch_event(struct libinput_event *event)
void libinput_seat_set_user_data(struct libinput_seat *seat, void *user_data)
int libinput_event_tablet_tool_wheel_has_changed(struct libinput_event_tablet_tool *event)
struct libinput_tablet_tool * libinput_event_tablet_tool_get_tool(struct libinput_event_tablet_tool *event)
int libinput_event_tablet_tool_tilt_x_has_changed(struct libinput_event_tablet_tool *event)
libinput_event_type
Definition: libinput.h:712
enum libinput_event_type libinput_event_get_type(struct libinput_event *event)
void(*) voi libinput_log_set_handler)(struct libinput *libinput, libinput_log_handler log_handler)
Definition: libinput.h:3670
int libinput_device_config_scroll_get_default_natural_scroll_enabled(struct libinput_device *device)
enum libinput_event_type libinput_next_event_type(struct libinput *libinput)
double libinput_event_tablet_tool_get_slider_position(struct libinput_event_tablet_tool *event)
int libinput_device_tablet_pad_get_num_mode_groups(struct libinput_device *device)
struct libinput_event_tablet_pad * libinput_event_get_tablet_pad_event(struct libinput_event *event)
enum libinput_config_status libinput_device_config_left_handed_set(struct libinput_device *device, int left_handed)
uint32_t libinput_device_config_send_events_get_default_mode(struct libinput_device *device)
libinput_pointer_axis_source
Definition: libinput.h:257
double libinput_event_tablet_tool_get_tilt_x(struct libinput_event_tablet_tool *event)
uint32_t libinput_event_tablet_pad_get_button_number(struct libinput_event_tablet_pad *event)
enum libinput_config_status libinput_device_config_dwt_set_enabled(struct libinput_device *device, enum libinput_config_dwt_state enable)
uint32_t libinput_device_config_scroll_get_methods(struct libinput_device *device)
@ LIBINPUT_POINTER_AXIS_SCROLL_HORIZONTAL
Definition: libinput.h:248
void * libinput_seat_get_user_data(struct libinput_seat *seat)
enum libinput_config_accel_profile libinput_device_config_accel_get_profile(struct libinput_device *device)
int libinput_resume(struct libinput *libinput)
int libinput_device_config_scroll_has_natural_scroll(struct libinput_device *device)
@ LIBINPUT_SWITCH_LID
The laptop lid was closed when the switch state is LIBINPUT_SWITCH_STATE_ON, or was opened when it is...
Definition: libinput.h:678
double libinput_event_pointer_get_dy_unaccelerated(struct libinput_event_pointer *event)
uint32_t libinput_event_keyboard_get_key(struct libinput_event_keyboard *event)
enum libinput_config_scroll_button_lock_state libinput_device_config_scroll_get_default_button_lock(struct libinput_device *device)
void * libinput_get_user_data(struct libinput *libinput)
int libinput_device_has_capability(struct libinput_device *device, enum libinput_device_capability capability)
struct libinput * libinput_udev_create_context(const struct libinput_interface *interface, void *user_data, struct udev *udev)
void libinput_event_destroy(struct libinput_event *event)
enum libinput_button_state libinput_event_tablet_tool_get_button_state(struct libinput_event_tablet_tool *event)
enum libinput_config_status libinput_device_config_middle_emulation_set_enabled(struct libinput_device *device, enum libinput_config_middle_emulation_state enable)
struct libinput_event * libinput_get_event(struct libinput *libinput)
double libinput_event_touch_get_x_transformed(struct libinput_event_touch *event, uint32_t width)
@ LIBINPUT_EVENT_TABLET_TOOL_BUTTON
Signals that a tool has changed a logical button state on a device with the LIBINPUT_DEVICE_CAP_TABLE...
Definition: libinput.h:842
uint32_t libinput_event_touch_get_time(struct libinput_event_touch *event)
@ LIBINPUT_CONFIG_DRAG_LOCK_DISABLED
Drag lock is to be disabled, or is currently disabled.
Definition: libinput.h:4626
@ LIBINPUT_TABLET_TOOL_TYPE_LENS
A mouse tool with a lens.
Definition: libinput.h:343
@ LIBINPUT_CONFIG_SEND_EVENTS_DISABLED
Do not send events through this device.
Definition: libinput.h:4838
@ LIBINPUT_CONFIG_SCROLL_BUTTON_LOCK_ENABLED
Definition: libinput.h:5680
@ LIBINPUT_TABLET_TOOL_TYPE_BRUSH
A paintbrush-like tool.
Definition: libinput.h:338
uint64_t libinput_event_tablet_pad_get_time_usec(struct libinput_event_tablet_pad *event)
double libinput_event_touch_get_y_transformed(struct libinput_event_touch *event, uint32_t height)
int libinput_tablet_tool_is_unique(struct libinput_tablet_tool *tool)
struct libinput * libinput_device_get_context(struct libinput_device *device)
int libinput_event_tablet_tool_tilt_y_has_changed(struct libinput_event_tablet_tool *event)
@ LIBINPUT_DEVICE_CAP_KEYBOARD
Definition: libinput.h:192
enum libinput_config_status libinput_device_config_scroll_set_button_lock(struct libinput_device *device, enum libinput_config_scroll_button_lock_state state)
@ LIBINPUT_TABLET_TOOL_TYPE_PEN
A generic pen.
Definition: libinput.h:336
@ LIBINPUT_EVENT_TABLET_PAD_STRIP
A status change on a strip on a device with the LIBINPUT_DEVICE_CAP_TABLET_PAD capability.
Definition: libinput.h:874
libinput_tablet_pad_strip_axis_source
Definition: libinput.h:304
uint32_t libinput_device_config_click_get_methods(struct libinput_device *device)
struct libinput_tablet_pad_mode_group * libinput_event_tablet_pad_get_mode_group(struct libinput_event_tablet_pad *event)
Definition: libinput.h:57
@ LIBINPUT_CONFIG_DWT_DISABLED
Definition: libinput.h:5759
int libinput_tablet_pad_mode_group_has_strip(struct libinput_tablet_pad_mode_group *group, unsigned int strip)
struct libinput_event * libinput_event_tablet_tool_get_base_event(struct libinput_event_tablet_tool *event)
unsigned int libinput_event_tablet_pad_get_strip_number(struct libinput_event_tablet_pad *event)
enum libinput_config_scroll_method libinput_device_config_scroll_get_method(struct libinput_device *device)
struct libinput_device_group * libinput_device_group_ref(struct libinput_device_group *group)
unsigned int libinput_device_get_id_product(struct libinput_device *device)
enum libinput_config_drag_state libinput_device_config_tap_get_drag_enabled(struct libinput_device *device)
libinput_log_priority
Definition: libinput.h:179
Definition: libinput.h:76
double libinput_event_tablet_tool_get_wheel_delta(struct libinput_event_tablet_tool *event)
@ LIBINPUT_EVENT_GESTURE_PINCH_BEGIN
Definition: libinput.h:892
int libinput_device_config_left_handed_get_default(struct libinput_device *device)
struct libinput_seat * libinput_seat_unref(struct libinput_seat *seat)
struct libinput * libinput_ref(struct libinput *libinput)
@ LIBINPUT_KEY_STATE_RELEASED
Definition: libinput.h:208
libinput_config_drag_state
Definition: libinput.h:4548
@ LIBINPUT_CONFIG_SCROLL_NO_SCROLL
Never send scroll events instead of pointer motion events.
Definition: libinput.h:5485
int libinput_device_config_scroll_get_natural_scroll_enabled(struct libinput_device *device)
@ LIBINPUT_CONFIG_ACCEL_PROFILE_NONE
Placeholder for devices that don't have a configurable pointer acceleration profile.
Definition: libinput.h:5019
enum libinput_config_scroll_button_lock_state libinput_device_config_scroll_get_button_lock(struct libinput_device *device)
libinput_tablet_tool_proximity_state
Definition: libinput.h:365
uint32_t libinput_event_pointer_get_time(struct libinput_event_pointer *event)
void libinput_tablet_tool_set_user_data(struct libinput_tablet_tool *tool, void *user_data)
enum libinput_log_priority libinput_log_get_priority(const struct libinput *libinput)
@ LIBINPUT_TABLET_TOOL_TYPE_PENCIL
Physical drawing tool, e.g.
Definition: libinput.h:339
@ LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY
Signals that a tool has come in or out of proximity of a device with the LIBINPUT_DEVICE_CAP_TABLET_T...
Definition: libinput.h:799