Lines Matching +full:16 +full:- +full:input

1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include "hid-ids.h"
23 * tablet input mode, switching it between "default", "tablet" and "ink".
26 * mode tries to be HID-compatible (not very successfully), but cripples the
30 * represents the correct resolution, but is possibly HID-incompatible (i.e.
37 * 02 16 00 default
38 * 02 16 01 tablet
39 * 02 16 02 ink
50 0x85, 0x10, /* Report ID (16), */
60 0x80, /* Input, */
66 0x81, 0x02, /* Input (Variable), */
68 0x81, 0x03, /* Input (Constant, Variable), */
69 0x75, 0x10, /* Report Size (16), */
75 0x55, 0xFD, /* Unit Exponent (-3), */
80 0x81, 0x02, /* Input (Variable), */
84 0x81, 0x02, /* Input (Variable), */
88 0x81, 0x02, /* Input (Variable), */
101 0x85, 0x10, /* Report ID (16), */
111 0x80, /* Input, */
117 0x81, 0x02, /* Input (Variable), */
119 0x81, 0x03, /* Input (Constant, Variable), */
120 0x75, 0x10, /* Report Size (16), */
126 0x55, 0xFD, /* Unit Exponent (-3), */
131 0x81, 0x02, /* Input (Variable), */
135 0x81, 0x02, /* Input (Variable), */
139 0x81, 0x02, /* Input (Variable), */
152 0x85, 0x10, /* Report ID (16), */
162 0x80, /* Input, */
168 0x81, 0x02, /* Input (Variable), */
170 0x81, 0x03, /* Input (Constant, Variable), */
171 0x75, 0x10, /* Report Size (16), */
177 0x55, 0xFD, /* Unit Exponent (-3), */
182 0x81, 0x02, /* Input (Variable), */
186 0x81, 0x02, /* Input (Variable), */
190 0x81, 0x02, /* Input (Variable), */
205 0x85, 0x10, /* Report ID (16), */
215 0x80, /* Input, */
221 0x81, 0x02, /* Input (Variable), */
223 0x81, 0x03, /* Input (Constant, Variable), */
224 0x75, 0x10, /* Report Size (16), */
230 0x55, 0xFD, /* Unit Exponent (-3), */
235 0x81, 0x02, /* Input (Variable), */
239 0x81, 0x02, /* Input (Variable), */
243 0x81, 0x02, /* Input (Variable), */
256 0x85, 0x10, /* Report ID (16), */
266 0x80, /* Input, */
272 0x81, 0x02, /* Input (Variable), */
274 0x81, 0x03, /* Input (Constant, Variable), */
275 0x75, 0x10, /* Report Size (16), */
281 0x55, 0xFD, /* Unit Exponent (-3), */
286 0x81, 0x02, /* Input (Variable), */
290 0x81, 0x02, /* Input (Variable), */
294 0x81, 0x02, /* Input (Variable), */
305 0x81, 0x03, /* Input (Constant, Variable), */
307 0x15, 0xFF, /* Logical Minimum (-1), */
312 0x81, 0x06, /* Input (Variable, Relative), */
314 0x81, 0x03, /* Input (Constant, Variable), */
322 0x75, 0x10, /* Report Size (16), */
323 0x81, 0x03, /* Input (Constant, Variable), */
339 0x80, /* Input, */
341 0x81, 0x03, /* Input (Constant, Variable), */
343 0x81, 0x03, /* Input (Constant, Variable), */
355 0x81, 0x06, /* Input (Variable, Relative), */
357 0x81, 0x03, /* Input (Constant, Variable), */
369 0x85, 0x10, /* Report ID (16), */
379 0x80, /* Input, */
385 0x81, 0x02, /* Input (Variable), */
387 0x81, 0x03, /* Input (Constant, Variable), */
388 0x75, 0x10, /* Report Size (16), */
394 0x55, 0xFD, /* Unit Exponent (-3), */
399 0x81, 0x02, /* Input (Variable), */
403 0x81, 0x02, /* Input (Variable), */
407 0x81, 0x02, /* Input (Variable), */
418 0x81, 0x03, /* Input (Constant, Variable), */
420 0x15, 0xFF, /* Logical Minimum (-1), */
425 0x81, 0x06, /* Input (Variable, Relative), */
433 0x75, 0x10, /* Report Size (16), */
434 0x81, 0x03, /* Input (Constant, Variable), */
450 0x80, /* Input, */
452 0x81, 0x03, /* Input (Constant, Variable), */
454 0x81, 0x03, /* Input (Constant, Variable), */
466 0x81, 0x06, /* Input (Variable, Relative), */
468 0x81, 0x03, /* Input (Constant, Variable), */
480 0x85, 0x10, /* Report ID (16), */
490 0x80, /* Input, */
495 0x81, 0x02, /* Input (Variable), */
496 0x81, 0x03, /* Input (Constant, Variable), */
498 0x81, 0x02, /* Input (Variable), */
500 0x81, 0x03, /* Input (Constant, Variable), */
503 0x55, 0xFD, /* Unit Exponent (-3), */
507 0x75, 0x10, /* Report Size (16), */
512 0x81, 0x02, /* Input (Variable), */
516 0x81, 0x02, /* Input (Variable), */
518 0x75, 0x10, /* Report Size (16), */
523 0x81, 0x02, /* Input (Variable), */
525 0x55, 0xFE, /* Unit Exponent (-2), */
527 0x35, 0x97, /* Physical Minimum (-105), */
529 0x15, 0x97, /* Logical Minimum (-105), */
535 0x81, 0x02, /* Input (Variable), */
547 0x81, 0x03, /* Input (Constant, Variable), */
549 0x15, 0xFF, /* Logical Minimum (-1), */
553 0x81, 0x06, /* Input (Variable, Relative), */
556 0x81, 0x03, /* Input (Constant, Variable), */
570 0x81, 0x02, /* Input (Variable), */
573 0x81, 0x01, /* Input (Constant), */
580 0x80, /* Input, */
592 0x81, 0x02, /* Input (Variable), */
595 0x81, 0x03, /* Input (Constant, Variable), */
596 0x75, 0x10, /* Report Size (16), */
598 0x81, 0x03, /* Input (Constant, Variable), */
605 switch (hdev->product) { in waltop_report_fixup()
655 /* If this is a pen input report */ in waltop_raw_event()
656 if (report->type == HID_INPUT_REPORT && report->id == 16 && size >= 8) { in waltop_raw_event()
670 /* If this is a pen input report of Sirius Battery Free Tablet */ in waltop_raw_event()
671 if (hdev->product == USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET && in waltop_raw_event()
672 report->type == HID_INPUT_REPORT && in waltop_raw_event()
673 report->id == 16 && in waltop_raw_event()
689 s8 sign_x = tilt_x >= 0 ? 1 : -1; in waltop_raw_event()
690 s8 sign_y = tilt_y >= 0 ? 1 : -1; in waltop_raw_event()
700 sign_y *= -1; in waltop_raw_event()
703 * This effectively clamps reported tilt to 60 degrees - the in waltop_raw_event()
706 if (tilt_x > ARRAY_SIZE(tilt_to_radians) - 1) in waltop_raw_event()
707 tilt_x = ARRAY_SIZE(tilt_to_radians) - 1; in waltop_raw_event()
708 if (tilt_y > ARRAY_SIZE(tilt_to_radians) - 1) in waltop_raw_event()
709 tilt_y = ARRAY_SIZE(tilt_to_radians) - 1; in waltop_raw_event()