• Home
  • Raw
  • Download

Lines Matching +full:tablet +full:- +full:mode

18 #include "hid-ids.h"
26 * tablet input mode, switching it between "default", "tablet" and "ink".
28 * This driver only uses "default" mode for all the supported tablets. This
29 * mode tries to be HID-compatible (not very successfully), but cripples the
32 * The "tablet" mode uses some proprietary, yet decipherable protocol, which
33 * represents the correct resolution, but is possibly HID-incompatible (i.e.
36 * The purpose of the "ink" mode is unknown.
38 * The feature reports needed for switching to each mode are these:
41 * 02 16 01 tablet
45 /* Size of the original report descriptor of Slim Tablet 5.8 inch */
48 /* Fixed Slim Tablet 5.8 inch descriptor */
58 0x09, 0x46, /* Usage (Tablet Pick), */
78 0x55, 0xFD, /* Unit Exponent (-3), */
96 /* Size of the original report descriptor of Slim Tablet 12.1 inch */
99 /* Fixed Slim Tablet 12.1 inch descriptor */
109 0x09, 0x46, /* Usage (Tablet Pick), */
129 0x55, 0xFD, /* Unit Exponent (-3), */
160 0x09, 0x46, /* Usage (Tablet Pick), */
180 0x55, 0xFD, /* Unit Exponent (-3), */
198 /* Size of the original report descriptor of tablet with PID 0038 */
202 * Fixed report descriptor for tablet with PID 0038.
213 0x09, 0x46, /* Usage (Tablet Pick), */
233 0x55, 0xFD, /* Unit Exponent (-3), */
251 /* Size of the original report descriptor of Media Tablet 10.6 inch */
254 /* Fixed Media Tablet 10.6 inch descriptor */
264 0x09, 0x46, /* Usage (Tablet Pick), */
284 0x55, 0xFD, /* Unit Exponent (-3), */
310 0x15, 0xFF, /* Logical Minimum (-1), */
364 /* Size of the original report descriptor of Media Tablet 14.1 inch */
367 /* Fixed Media Tablet 14.1 inch descriptor */
377 0x09, 0x46, /* Usage (Tablet Pick), */
397 0x55, 0xFD, /* Unit Exponent (-3), */
423 0x15, 0xFF, /* Logical Minimum (-1), */
475 /* Size of the original report descriptor of Sirius Battery Free Tablet */
478 /* Fixed Sirius Battery Free Tablet descriptor */
492 0x09, 0x46, /* Usage (Tablet Pick), */
506 0x55, 0xFD, /* Unit Exponent (-3), */
528 0x55, 0xFE, /* Unit Exponent (-2), */
530 0x35, 0x97, /* Physical Minimum (-105), */
532 0x15, 0x97, /* Logical Minimum (-105), */
552 0x15, 0xFF, /* Logical Minimum (-1), */
608 switch (hdev->product) { in waltop_report_fixup()
659 if (report->type == HID_INPUT_REPORT && report->id == 16 && size >= 8) { in waltop_raw_event()
673 /* If this is a pen input report of Sirius Battery Free Tablet */ in waltop_raw_event()
674 if (hdev->product == USB_DEVICE_ID_WALTOP_SIRIUS_BATTERY_FREE_TABLET && in waltop_raw_event()
675 report->type == HID_INPUT_REPORT && in waltop_raw_event()
676 report->id == 16 && in waltop_raw_event()
679 * The tablet reports tilt as roughly sin(a)*21 (18 means 60 in waltop_raw_event()
692 s8 sign_x = tilt_x >= 0 ? 1 : -1; in waltop_raw_event()
693 s8 sign_y = tilt_y >= 0 ? 1 : -1; in waltop_raw_event()
703 sign_y *= -1; in waltop_raw_event()
706 * This effectively clamps reported tilt to 60 degrees - the in waltop_raw_event()
709 if (tilt_x > ARRAY_SIZE(tilt_to_radians) - 1) in waltop_raw_event()
710 tilt_x = ARRAY_SIZE(tilt_to_radians) - 1; in waltop_raw_event()
711 if (tilt_y > ARRAY_SIZE(tilt_to_radians) - 1) in waltop_raw_event()
712 tilt_y = ARRAY_SIZE(tilt_to_radians) - 1; in waltop_raw_event()