Lines Matching +full:tip +full:- +full:invert
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include "hid-ids.h"
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.
53 0x09, 0x42, /* Usage (Tip Switch), */
75 0x55, 0xFD, /* Unit Exponent (-3), */
86 0x09, 0x30, /* Usage (Tip Pressure), */
104 0x09, 0x42, /* Usage (Tip Switch), */
126 0x55, 0xFD, /* Unit Exponent (-3), */
137 0x09, 0x30, /* Usage (Tip Pressure), */
155 0x09, 0x42, /* Usage (Tip Switch), */
177 0x55, 0xFD, /* Unit Exponent (-3), */
188 0x09, 0x30, /* Usage (Tip Pressure), */
208 0x09, 0x42, /* Usage (Tip Switch), */
230 0x55, 0xFD, /* Unit Exponent (-3), */
241 0x09, 0x30, /* Usage (Tip Pressure), */
259 0x09, 0x42, /* Usage (Tip Switch), */
281 0x55, 0xFD, /* Unit Exponent (-3), */
292 0x09, 0x30, /* Usage (Tip Pressure), */
307 0x15, 0xFF, /* Logical Minimum (-1), */
372 0x09, 0x42, /* Usage (Tip Switch), */
394 0x55, 0xFD, /* Unit Exponent (-3), */
405 0x09, 0x30, /* Usage (Tip Pressure), */
420 0x15, 0xFF, /* Logical Minimum (-1), */
487 0x09, 0x42, /* Usage (Tip Switch), */
494 0x09, 0x3C, /* Usage (Invert), */
503 0x55, 0xFD, /* Unit Exponent (-3), */
522 0x09, 0x30, /* Usage (Tip Pressure), */
525 0x55, 0xFE, /* Unit Exponent (-2), */
527 0x35, 0x97, /* Physical Minimum (-105), */
529 0x15, 0x97, /* Logical Minimum (-105), */
549 0x15, 0xFF, /* Logical Minimum (-1), */
605 switch (hdev->product) { in waltop_report_fixup()
656 if (report->type == HID_INPUT_REPORT && report->id == 16 && size >= 8) { 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()