Lines Matching +full:button +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * - BM084 Bluetooth Mouse
5 * - EX-G Trackballs (M-XT3DRBK, M-XT3URBK, M-XT4DRBK)
6 * - DEFT Trackballs (M-DT1DRBK, M-DT1URBK, M-DT2DRBK, M-DT2URBK)
7 * - HUGE Trackballs (M-HT1DRBK, M-HT1URBK)
13 * Copyright (c) 2017 Tomasz Kramkowski <tk@the-tk.com>
23 #include "hid-ids.h"
26 * Certain ELECOM mice misreport their button count meaning that they only work
31 * solution seems to involve fixing up the report descriptor.
34 * Positions 13, 15, 21 and 31 store the button bit count, button usage minimum,
35 * button usage maximum and padding bit count respectively.
46 hid_info(hdev, "Fixing up Elecom mouse button count\n"); in mouse_button_fixup()
50 rdesc[31] = MOUSE_BUTTONS_MAX - nbuttons; in mouse_button_fixup()
56 switch (hdev->product) { in elecom_report_fixup()
58 /* The BM084 Bluetooth mouse includes a non-existing horizontal in elecom_report_fixup()
61 hid_info(hdev, "Fixing up Elecom BM084 report descriptor\n"); in elecom_report_fixup()