mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 15:20:27 +01:00
pad: default a pad group to mode 0 if all LEDs are off
Since our API doesn't accomodate for "dunno" we need to pick a mode that we are actually in. This happens on the Intuos Pro 2 (PTH-660) which has all LEDs on brightness zero, resulting in a failure to set up the modes and we're left without a mode button. Fix it by just picking zero as the default mode until specified otherwise. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1069>
This commit is contained in:
parent
04cff1c721
commit
4546480e13
1 changed files with 3 additions and 1 deletions
|
|
@ -83,7 +83,9 @@ pad_led_group_get_mode(struct pad_led_group *group)
|
|||
return led->mode_idx;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
/* Wacom PTH-660 doesn't light up any LEDs
|
||||
* until the button is pressed, so let's assume mode 0 */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue