Lines Matching +full:push +full:- +full:button
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.
72 0xA4, /* Push, */
75 0x55, 0xFD, /* Unit Exponent (-3), */
123 0xA4, /* Push, */
126 0x55, 0xFD, /* Unit Exponent (-3), */
174 0xA4, /* Push, */
177 0x55, 0xFD, /* Unit Exponent (-3), */
227 0xA4, /* Push, */
230 0x55, 0xFD, /* Unit Exponent (-3), */
278 0xA4, /* Push, */
281 0x55, 0xFD, /* Unit Exponent (-3), */
307 0x15, 0xFF, /* Logical Minimum (-1), */
391 0xA4, /* Push, */
394 0x55, 0xFD, /* Unit Exponent (-3), */
420 0x15, 0xFF, /* Logical Minimum (-1), */
501 0xA4, /* Push, */
503 0x55, 0xFD, /* Unit Exponent (-3), */
524 0xA4, /* Push, */
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()
658 * Ignore reported pressure when a barrel button is pressed, in waltop_raw_event()
662 /* If a barrel button is pressed */ 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()