/third_party/eudev/src/udev/ |
D | udev-builtin-keyboard.c | 123 struct input_absinfo absinfo; in override_abs() local 127 rc = ioctl(fd, EVIOCGABS(evcode), &absinfo); in override_abs() 133 next = parse_token(value, &absinfo.minimum); in override_abs() 134 next = parse_token(next, &absinfo.maximum); in override_abs() 135 next = parse_token(next, &absinfo.resolution); in override_abs() 136 next = parse_token(next, &absinfo.fuzz); in override_abs() 137 next = parse_token(next, &absinfo.flat); in override_abs() 145 absinfo.minimum, absinfo.maximum, absinfo.resolution, absinfo.fuzz, absinfo.flat, in override_abs() 147 rc = ioctl(fd, EVIOCSABS(evcode), &absinfo); in override_abs()
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/ |
D | SDL_sysjoystick.c | 469 struct input_absinfo absinfo; in ConfigJoystick() local 471 if (ioctl(fd, EVIOCGABS(i), &absinfo) < 0) { in ConfigJoystick() 477 absinfo.value, absinfo.minimum, absinfo.maximum, in ConfigJoystick() 478 absinfo.fuzz, absinfo.flat); in ConfigJoystick() 481 if (absinfo.minimum == absinfo.maximum) { in ConfigJoystick() 486 (absinfo.maximum + absinfo.minimum) - 2 * absinfo.flat; in ConfigJoystick() 488 (absinfo.maximum + absinfo.minimum) + 2 * absinfo.flat; in ConfigJoystick() 489 t = ((absinfo.maximum - absinfo.minimum) - 4 * absinfo.flat); in ConfigJoystick() 502 struct input_absinfo absinfo; in ConfigJoystick() local 504 if (ioctl(fd, EVIOCGABS(i), &absinfo) < 0) { in ConfigJoystick() [all …]
|
/third_party/libinput/src/ |
D | evdev-tablet.c | 335 normalize_slider(const struct input_absinfo *absinfo) in normalize_slider() argument 337 double range = absinfo->maximum - absinfo->minimum; in normalize_slider() 338 double value = (absinfo->value - absinfo->minimum) / range; in normalize_slider() 344 normalize_distance(const struct input_absinfo *absinfo) in normalize_distance() argument 346 double range = absinfo->maximum - absinfo->minimum; in normalize_distance() 347 double value = (absinfo->value - absinfo->minimum) / range; in normalize_distance() 353 normalize_pressure(const struct input_absinfo *absinfo, in normalize_pressure() argument 378 range = absinfo->maximum - offset; in normalize_pressure() 379 value = (absinfo->value - offset) / range; in normalize_pressure() 385 adjust_tilt(const struct input_absinfo *absinfo) in adjust_tilt() argument [all …]
|
D | evdev-tablet-pad.c | 148 normalize_ring(const struct input_absinfo *absinfo) in normalize_ring() argument 154 double range = absinfo->maximum - absinfo->minimum + 1; in normalize_ring() 155 double value = (absinfo->value - absinfo->minimum) / range - 0.25; in normalize_ring() 164 normalize_strip(const struct input_absinfo *absinfo) in normalize_strip() argument 170 max = log2(absinfo->maximum); in normalize_strip() 172 double value = (log2(absinfo->value) - min) / range; in normalize_strip() 182 const struct input_absinfo *absinfo; in pad_handle_ring() local 185 absinfo = libevdev_get_abs_info(device->evdev, code); in pad_handle_ring() 186 assert(absinfo); in pad_handle_ring() 188 degrees = normalize_ring(absinfo) * 360; in pad_handle_ring() [all …]
|
/third_party/libinput/tools/ |
D | libinput-measure-touchpad-pressure.py | 193 absinfo = self.absinfo[libevdev.EV_ABS.ABS_MT_PRESSURE] 194 if absinfo is None: 195 absinfo = self.absinfo[libevdev.EV_ABS.ABS_PRESSURE] 197 if absinfo is None: 200 prange = absinfo.maximum - absinfo.minimum 203 self.down = int(absinfo.minimum + 0.12 * prange) 204 self.up = int(absinfo.minimum + 0.10 * prange) 206 self.thumb = absinfo.maximum
|
/third_party/libinput/test/ |
D | litest-device-absinfo-override.c | 48 static struct input_absinfo absinfo[] = { variable 68 .absinfo = absinfo,
|
D | litest-device-wacom-cintiq-pro-16-pad.c | 41 static struct input_absinfo absinfo[] = { variable 71 .absinfo = absinfo,
|
D | litest-device-wacom-bamboo-2fg-pad.c | 42 static struct input_absinfo absinfo[] = { variable 72 .absinfo = absinfo,
|
D | litest-device-generic-singletouch.c | 50 static struct input_absinfo absinfo[] = { variable 76 .absinfo = absinfo,
|
D | litest-device-calibrated-touchscreen.c | 51 static struct input_absinfo absinfo[] = { variable 81 .absinfo = absinfo,
|
D | litest-device-touchscreen-invalid-range.c | 54 static struct input_absinfo absinfo[] = { variable 84 .absinfo = absinfo,
|
D | litest-device-qemu-usb-tablet.c | 69 static struct input_absinfo absinfo[] = { variable 97 .absinfo = absinfo,
|
D | litest-device-uclogic-tablet.c | 68 static struct input_absinfo absinfo[] = { variable 97 .absinfo = absinfo,
|
D | litest-device-touchscreen-fuzz.c | 53 static struct input_absinfo absinfo[] = { variable 84 .absinfo = absinfo,
|
D | litest-device-xen-virtual-pointer.c | 69 static struct input_absinfo absinfo[] = { variable 102 .absinfo = absinfo,
|
D | litest-device-wacom-intuos3-pad.c | 65 static struct input_absinfo absinfo[] = { variable 96 .absinfo = absinfo,
|
D | litest-device-synaptics-st.c | 69 static struct input_absinfo absinfo[] = { variable 99 .absinfo = absinfo,
|
D | litest-device-apple-appletouch.c | 79 static struct input_absinfo absinfo[] = { variable 99 .absinfo = absinfo,
|
D | litest-device-wacom-cintiq-13hdt-pad.c | 64 static struct input_absinfo absinfo[] = { variable 101 .absinfo = absinfo,
|
D | litest-device-huion-pentablet.c | 69 static struct input_absinfo absinfo[] = { variable 99 .absinfo = absinfo,
|
D | litest-device-wacom-intuos5-pad.c | 65 static struct input_absinfo absinfo[] = { variable 101 .absinfo = absinfo,
|
D | litest-device-nexus4-touch-screen.c | 55 static struct input_absinfo absinfo[] = { variable 87 .absinfo = absinfo,
|
D | litest-device-touchscreen-mt-tool.c | 56 static struct input_absinfo absinfo[] = { variable 87 .absinfo = absinfo,
|
D | litest-device-wacom-bamboo-2fg-finger.c | 55 static struct input_absinfo absinfo[] = { variable 89 .absinfo = absinfo,
|
D | litest-device-wacom-isdv4-e6-finger.c | 57 static struct input_absinfo absinfo[] = { variable 87 .absinfo = absinfo,
|