Lines Matching +full:dual +full:- +full:axis
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * HID driver for Xin-Mo devices, currently only the Dual Arcade controller.
4 * Fixes the negative axis event values (the devices sends -2) to match the
5 * logical axis minimum of the HID report descriptor (the report announces
6 * -1). It is needed because hid-input discards out of bounds values.
7 * (This module is based on "hid-saitek" and "hid-lg".)
20 #include "hid-ids.h"
28 switch (usage->code) { in xinmo_event()
33 if (value < -1) { in xinmo_event()
34 input_event(field->hidinput->input, usage->type, in xinmo_event()
35 usage->code, -1); in xinmo_event()