Skip to content

Commit

Permalink
Fix false-negative on cyttsp4_mt panels
Browse files Browse the repository at this point in the history
The kernel *has* EVIOCGPROP support, the device just happens *not* to be
flagged as DIRECT :/.
  • Loading branch information
NiLuJe committed May 15, 2024
1 parent 7c3bd04 commit 644b96e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fbink_input_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,15 @@ static bool
is_joystick = true;
}
}
if (has_mt_coordinates && (is_direct || !bitmask_props)) {
is_touchscreen = true;
if (has_mt_coordinates) {
if (is_direct || !bitmask_props) {
is_touchscreen = true;
}
if (has_touch) {
is_touchscreen = true;
}
// NOTE: Qt's QDeviceDiscovery *unconditionally* assumes is_touchscreen here.
// That might not be such a terrible idea...
}

if (has_rel_coordinates && has_mouse_button) {
Expand Down

0 comments on commit 644b96e

Please sign in to comment.