/third_party/libevdev/libevdev/ |
H A D | libevdev.h | 41 * **libevdev** is a library for handling evdev kernel devices. It abstracts 49 * - https://gitlab.freedesktop.org/libevdev/libevdev 51 * Development of libevdev is discussed on 58 * libevdev provides an interface for handling events, including most notably 62 * view of it. libevdev handles this by telling the caller that a * `SYN_DROPPED` 72 * libevdev is signal-safe for the majority of its operations, i.e. many of 80 * A libevdev context is valid for a given file descriptor and its 81 * duration. Closing the file descriptor will not destroy the libevdev device 82 * but libevdev wil [all...] |
H A D | libevdev-int.h | 14 #include "libevdev.h" 15 #include "libevdev-util.h" 44 * struct libevdev. 55 struct libevdev { struct 108 _libevdev_log_msg(const struct libevdev *dev, 113 _libevdev_log_priority(const struct libevdev *dev); 116 init_event(struct libevdev *dev, struct input_event *ev, int type, int code, int value) in init_event() 130 queue_push(struct libevdev *dev) in queue_push() 139 queue_push_event(struct libevdev *dev, unsigned int type, in queue_push_event() 156 queue_pop(struct libevdev *de [all...] |
H A D | libevdev.c | 17 #include "libevdev-int.h" 18 #include "libevdev-util.h" 19 #include "libevdev.h" 46 static int sync_mt_state(struct libevdev *dev, 50 update_key_state(struct libevdev *dev, const struct input_event *e); 53 slot_value(const struct libevdev *dev, int slot, int axis) in slot_value() 68 init_event_queue(struct libevdev *dev) in init_event_queue() 112 case LIBEVDEV_LOG_ERROR: prefix = "libevdev error"; break; in libevdev_dflt_log_func() 113 case LIBEVDEV_LOG_INFO: prefix = "libevdev info"; break; in libevdev_dflt_log_func() 115 prefix = "libevdev debu in libevdev_dflt_log_func() [all...] |
H A D | libevdev-uinput.h | 32 #include <libevdev/libevdev.h> 39 * Creation of uinput devices based on existing libevdev devices. These functions 40 * help to create uinput devices that emulate libevdev devices. In the simplest 46 * struct libevdev *dev; 84 * struct libevdev *dev; 114 LIBEVDEV_UINPUT_OPEN_MANAGED = -2 /**< let libevdev open and close @c /dev/uinput */ 120 * Create a uinput device based on the given libevdev device. The uinput device 121 * will be an exact copy of the libevdev device, minus the bits that uinput doesn't 147 * @param[out] uinput_dev The newly created libevdev devic [all...] |
/third_party/libevdev/export_include/libevdev/ |
H A D | libevdev.h | 41 * **libevdev** is a library for handling evdev kernel devices. It abstracts 49 * - https://gitlab.freedesktop.org/libevdev/libevdev 51 * Development of libevdev is discussed on 58 * libevdev provides an interface for handling events, including most notably 62 * view of it. libevdev handles this by telling the caller that a * `SYN_DROPPED` 72 * libevdev is signal-safe for the majority of its operations, i.e. many of 80 * A libevdev context is valid for a given file descriptor and its 81 * duration. Closing the file descriptor will not destroy the libevdev device 82 * but libevdev wil [all...] |
/third_party/libinput/tools/ |
H A D | libinput-analyze-recording.py | 36 import libevdev namespace 45 if code in (libevdev.EV_ABS.ABS_MISC, libevdev.EV_MSC.MSC_SERIAL): 49 if code.type == libevdev.EV_REL: 57 if code.type in (libevdev.EV_KEY, libevdev.EV_SW, libevdev.EV_SYN): 61 if code.type == libevdev.EV_ABS: 62 if libevdev.EV_ABS.ABS_MT_SLOT <= code <= libevdev [all...] |
H A D | libinput-analyze-touch-down-state.py | 36 import libevdev namespace 99 nslots = absinfo[libevdev.EV_ABS.ABS_MT_SLOT.value][1] + 1 104 libevdev.EV_KEY.BTN_TOOL_FINGER: 0, 105 libevdev.EV_KEY.BTN_TOOL_PEN: 0, 106 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP: 1, 107 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP: 2, 108 libevdev.EV_KEY.BTN_TOOL_QUADTAP: 3, 109 libevdev.EV_KEY.BTN_TOOL_QUINTTAP: 4, 113 if bit.value in device["evdev"]["codes"][libevdev.EV_KEY.value]: 135 e = libevdev [all...] |
H A D | libinput-analyze-per-slot-delta.py | 36 import libevdev namespace 193 nslots = absinfo[libevdev.EV_ABS.ABS_MT_SLOT.value][1] + 1 204 xres = 1.0 * absinfo[libevdev.EV_ABS.ABS_X.value][4] 205 yres = 1.0 * absinfo[libevdev.EV_ABS.ABS_Y.value][4] 217 libevdev.EV_KEY.BTN_TOUCH: 0, 218 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP: 0, 219 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP: 0, 220 libevdev.EV_KEY.BTN_TOOL_QUADTAP: 0, 221 libevdev.EV_KEY.BTN_TOOL_QUINTTAP: 0, 224 libevdev [all...] |
H A D | libinput-replay.py | 35 import libevdev namespace 115 d = libevdev.Device() 127 if evtype == libevdev.EV_ABS.value: 129 absinfo = libevdev.InputAbsInfo( 137 elif evtype == libevdev.EV_REP.value: 138 if code == libevdev.EV_REP.REP_DELAY.value: 140 elif code == libevdev.EV_REP.REP_PERIOD.value: 142 d.enable(libevdev.evbit(evtype, code), data=data) 146 d.enable(libevdev.propbit(prop)) 175 if evtype == libevdev [all...] |
H A D | libinput-measure-touch-size.py | 32 import libevdev namespace 182 class Device(libevdev.Device): 194 if not self.has(libevdev.EV_ABS.ABS_MT_TOUCH_MAJOR): 197 self.has_minor = self.has(libevdev.EV_ABS.ABS_MT_TOUCH_MINOR) 198 self.has_orientation = self.has(libevdev.EV_ABS.ABS_MT_ORIENTATION) 256 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP, 257 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP, 258 libevdev.EV_KEY.BTN_TOOL_QUADTAP, 259 libevdev.EV_KEY.BTN_TOOL_QUINTTAP, 268 if event.matches(libevdev [all...] |
H A D | libinput-measure-touchpad-tap.py | 31 import libevdev namespace 88 class Device(libevdev.Device): 99 if not self.has(libevdev.EV_KEY.BTN_TOUCH): 138 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP, 139 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP, 140 libevdev.EV_KEY.BTN_TOOL_QUADTAP, 141 libevdev.EV_KEY.BTN_TOOL_QUINTTAP, 149 if event.matches(libevdev.EV_KEY.BTN_TOUCH): 162 if event.matches(libevdev.EV_KEY):
|
H A D | libinput-measure-fuzz.py | 33 import libevdev namespace 80 class Device(libevdev.Device): 153 if not self.has(libevdev.EV_ABS.ABS_X) or not self.has(libevdev.EV_ABS.ABS_Y): 156 if self.has(libevdev.EV_ABS.ABS_MT_POSITION_X) != self.has( 157 libevdev.EV_ABS.ABS_MT_POSITION_Y 162 self.absinfo[libevdev.EV_ABS.ABS_X].fuzz 163 or self.absinfo[libevdev.EV_ABS.ABS_MT_POSITION_X].fuzz 166 self.absinfo[libevdev.EV_ABS.ABS_Y].fuzz 167 or self.absinfo[libevdev [all...] |
H A D | libinput-measure-touchpad-pressure.py | 32 import libevdev namespace 212 class Device(libevdev.Device): 225 absinfo = self.absinfo[libevdev.EV_ABS.ABS_MT_PRESSURE] 227 absinfo = self.absinfo[libevdev.EV_ABS.ABS_PRESSURE] 290 libevdev.EV_KEY.BTN_TOOL_DOUBLETAP, 291 libevdev.EV_KEY.BTN_TOOL_TRIPLETAP, 292 libevdev.EV_KEY.BTN_TOOL_QUADTAP, 293 libevdev.EV_KEY.BTN_TOOL_QUINTTAP, 303 if event.matches(libevdev.EV_ABS.ABS_MT_TRACKING_ID): 314 elif event.matches(libevdev [all...] |
H A D | libinput-measure-touchpad-size.py | 31 import libevdev namespace 54 x = evdev.absinfo[libevdev.EV_ABS.ABS_X] 55 y = evdev.absinfo[libevdev.EV_ABS.ABS_Y] 253 evdev = libevdev.Device(fd) 278 if event.matches(libevdev.EV_ABS.ABS_X): 280 elif event.matches(libevdev.EV_ABS.ABS_Y): 282 elif event.matches(libevdev.EV_SYN.SYN_REPORT): 312 xorig = evdev.absinfo[libevdev.EV_ABS.ABS_X] 313 yorig = evdev.absinfo[libevdev.EV_ABS.ABS_Y] 366 if evdev.absinfo[libevdev [all...] |
/third_party/libevdev/test/ |
H A D | test-compile-pedantic.c | 1 #include <libevdev/libevdev.h> 2 #include <libevdev/libevdev-uinput.h>
|
H A D | test-common-uinput.c | 16 #include <libevdev/libevdev.h> 17 #include <libevdev/libevdev-int.h> 18 #include <libevdev/libevdev-util.h> 19 #include <libevdev/libevdev-uinput.h> 28 struct libevdev *d; /* lazy, it has all the accessors */
|
H A D | test-libevdev-init.c | 15 #include <libevdev/libevdev-uinput.h> 20 struct libevdev *dev; in START_TEST() 37 struct libevdev *dev = NULL; in START_TEST() 53 struct libevdev *dev; in START_TEST() 103 struct libevdev *dev = NULL; in START_TEST() 182 struct libevdev *dev = NULL; in START_TEST() 239 struct libevdev *dev = NULL; in START_TEST() 257 struct libevdev *devlogdata; 259 static void devlogfunc(const struct libevdev *de [all...] |
H A D | test-kernel.c | 17 #include <libevdev/libevdev.h> 18 #include <libevdev/libevdev-uinput.h> 24 struct libevdev *dev, *dev2; in START_TEST() 89 struct libevdev *dev; in START_TEST() 118 struct libevdev *dev, *dev2 = NULL; in START_TEST()
|
H A D | test-context.c | 11 struct libevdev *d = libevdev_new(); in START_TEST() 36 struct libevdev *d = libevdev_new(); in START_TEST() 55 struct libevdev *d = libevdev_new(); in START_TEST() 79 struct libevdev *d = libevdev_new(); in START_TEST() 102 struct libevdev *d = libevdev_new(); in START_TEST() 131 struct libevdev *d = libevdev_new(); in START_TEST()
|
H A D | test-libevdev-has-event.c | 29 struct libevdev *dev; in START_TEST() 66 struct libevdev *dev; in START_TEST() 96 struct libevdev *dev; in START_TEST() 146 struct libevdev *dev; in START_TEST() 181 struct libevdev *dev; in START_TEST() 219 struct libevdev *dev; in START_TEST() 242 struct libevdev *dev; in START_TEST() 275 struct libevdev *dev; in START_TEST() 315 struct libevdev *dev; in START_TEST() 374 struct libevdev *de in START_TEST() [all...] |
H A D | test-common.h | 7 #include <libevdev/libevdev.h> 37 #define TEST_DEVICE_NAME "libevdev test device" 56 struct libevdev **dev, 59 struct libevdev **dev,
|
H A D | test-int-queue.c | 8 #include <libevdev/libevdev-int.h> 13 struct libevdev dev; in START_TEST() 34 struct libevdev dev = {0}; in START_TEST() 56 struct libevdev dev = {0}; in START_TEST() 84 struct libevdev dev = {0}; in START_TEST() 116 struct libevdev dev = {0}; in START_TEST() 158 struct libevdev dev = {0}; in START_TEST() 197 struct libevdev dev = {0}; in START_TEST() 254 struct libevdev de in START_TEST() [all...] |
H A D | test-uinput.c | 12 #include <libevdev/libevdev-uinput.h> 19 struct libevdev *dev, *dev2; in START_TEST() 75 struct libevdev *dev; in START_TEST() 99 struct libevdev *dev, *dev2; in START_TEST() 153 struct libevdev *dev; in START_TEST() 203 struct libevdev *dev; in START_TEST() 239 struct libevdev *dev; 295 struct libevdev *dev; 346 struct libevdev *de in START_TEST() [all...] |
H A D | test-common.c | 33 struct libevdev **dev_return, in test_create_device() 38 struct libevdev *dev; in test_create_device() 60 struct libevdev **dev_return, in test_create_abs_device() 67 struct libevdev *dev; in test_create_abs_device()
|
/third_party/libevdev/tools/ |
H A D | libevdev-events.c | 17 #include "libevdev/libevdev.h" 20 print_abs_bits(struct libevdev *dev, int axis) in print_abs_bits() 41 print_code_bits(struct libevdev *dev, unsigned int type, unsigned int max) in print_code_bits() 55 print_bits(struct libevdev *dev) in print_bits() 81 print_props(struct libevdev *dev) in print_props() 124 struct libevdev *dev = NULL; in main() 141 fprintf(stderr, "Failed to init libevdev (%s)\n", strerror(-rc)); in main()
|