Lines Matching +full:4 +full:- +full:inch

1 // SPDX-License-Identifier: GPL-2.0-only
21 * - the device reports Eraser instead of using Secondary Barrel Switch
22 * - when the eraser button is pressed and the stylus is touching the tablet,
30 0xa1, 0x01, // Collection (Application) 4
38 … // Usage (Eraser) 16 /* created over a padding bit at offset 29-33 */
42 0x95, 0x05, // Report Count (5) 26 /* changed from 4 to 5 */
58 0x55, 0x0d, // Unit Exponent (-3) 61
72 0x15, 0x81, // Logical Minimum (-127) 93
78 0x15, 0x81, // Logical Minimum (-127) 105
98 if (hctx->hid->product == PID_ARTIST_PRO14_GEN2) { in SEC()
118 /* xor bits 0,3 and 4: convert Tip Switch + Invert into Eraser only */ in xppen_16_fix_eraser()
130 …* >>> tip_height = 0.055677699 # the center of the pen coil distance from screen in inch (empirica…
136 /* 14" inch screen 11.874" x 7.421" */
148 0, 4, 9, 13, 17, 21, 26, 30, 34, 38, 43, 47, 51, 55, 59, 64, 68, 72, 76, 80, 84,
158 /* 16" inch screen 13.567" x 8.480" */
170 0, 4, 8, 11, 15, 19, 22, 26, 30, 34, 37, 41, 45, 48, 52, 56, 59, 63, 66, 70, 74,
189 __u8 angle = tilt > 0 ? tilt : -tilt; in compensate_coordinates_by_tilt()
197 coords = (coords > compensation) ? coords - compensation : 0; in compensate_coordinates_by_tilt()
200 __u16 max = logical_maximum - compensation; in compensate_coordinates_by_tilt()
232 * bytes 0 - report id in xppen_16_fix_angle_offset()
233 * 1 - buttons in xppen_16_fix_angle_offset()
234 * 2-3 - X coords (logical) in xppen_16_fix_angle_offset()
235 * 4-5 - Y coords in xppen_16_fix_angle_offset()
236 * 6-7 - pressure (ignore) in xppen_16_fix_angle_offset()
237 * 8 - tilt X in xppen_16_fix_angle_offset()
238 * 9 - tilt Y in xppen_16_fix_angle_offset()
244 if (hctx->hid->product == PID_ARTIST_PRO14_GEN2) { in xppen_16_fix_angle_offset()
246 compensate_coordinates_by_tilt(data, 4, tilt_y, &angle_offsets_vertical_14); in xppen_16_fix_angle_offset()
247 } else if (hctx->hid->product == PID_ARTIST_PRO16_GEN2) { in xppen_16_fix_angle_offset()
249 compensate_coordinates_by_tilt(data, 4, tilt_y, &angle_offsets_vertical_16); in xppen_16_fix_angle_offset()
277 ctx->retval = ctx->rdesc_size != 113; in probe()
278 if (ctx->retval) in probe()
279 ctx->retval = -EINVAL; in probe()
282 if (ctx->rdesc[17] != 0x45) /* Eraser */ in probe()
283 ctx->retval = -EINVAL; in probe()