Home
last modified time | relevance | path

Searched refs:absinfo (Results 1 – 25 of 110) sorted by relevance

12345

/third_party/eudev/src/udev/
Dudev-builtin-keyboard.c123 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/
DSDL_sysjoystick.c469 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/
Devdev-tablet.c335 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 …]
Devdev-tablet-pad.c148 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/
Dlibinput-measure-touchpad-pressure.py193 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/
Dlitest-device-absinfo-override.c48 static struct input_absinfo absinfo[] = { variable
68 .absinfo = absinfo,
Dlitest-device-wacom-cintiq-pro-16-pad.c41 static struct input_absinfo absinfo[] = { variable
71 .absinfo = absinfo,
Dlitest-device-wacom-bamboo-2fg-pad.c42 static struct input_absinfo absinfo[] = { variable
72 .absinfo = absinfo,
Dlitest-device-generic-singletouch.c50 static struct input_absinfo absinfo[] = { variable
76 .absinfo = absinfo,
Dlitest-device-calibrated-touchscreen.c51 static struct input_absinfo absinfo[] = { variable
81 .absinfo = absinfo,
Dlitest-device-touchscreen-invalid-range.c54 static struct input_absinfo absinfo[] = { variable
84 .absinfo = absinfo,
Dlitest-device-qemu-usb-tablet.c69 static struct input_absinfo absinfo[] = { variable
97 .absinfo = absinfo,
Dlitest-device-uclogic-tablet.c68 static struct input_absinfo absinfo[] = { variable
97 .absinfo = absinfo,
Dlitest-device-touchscreen-fuzz.c53 static struct input_absinfo absinfo[] = { variable
84 .absinfo = absinfo,
Dlitest-device-xen-virtual-pointer.c69 static struct input_absinfo absinfo[] = { variable
102 .absinfo = absinfo,
Dlitest-device-wacom-intuos3-pad.c65 static struct input_absinfo absinfo[] = { variable
96 .absinfo = absinfo,
Dlitest-device-synaptics-st.c69 static struct input_absinfo absinfo[] = { variable
99 .absinfo = absinfo,
Dlitest-device-apple-appletouch.c79 static struct input_absinfo absinfo[] = { variable
99 .absinfo = absinfo,
Dlitest-device-wacom-cintiq-13hdt-pad.c64 static struct input_absinfo absinfo[] = { variable
101 .absinfo = absinfo,
Dlitest-device-huion-pentablet.c69 static struct input_absinfo absinfo[] = { variable
99 .absinfo = absinfo,
Dlitest-device-wacom-intuos5-pad.c65 static struct input_absinfo absinfo[] = { variable
101 .absinfo = absinfo,
Dlitest-device-nexus4-touch-screen.c55 static struct input_absinfo absinfo[] = { variable
87 .absinfo = absinfo,
Dlitest-device-touchscreen-mt-tool.c56 static struct input_absinfo absinfo[] = { variable
87 .absinfo = absinfo,
Dlitest-device-wacom-bamboo-2fg-finger.c55 static struct input_absinfo absinfo[] = { variable
89 .absinfo = absinfo,
Dlitest-device-wacom-isdv4-e6-finger.c57 static struct input_absinfo absinfo[] = { variable
87 .absinfo = absinfo,

12345