libwacomwrapper: Calculate a better StatusLEDs value

Authored by jgerecke on Jun 3 2018, 10:43 AM.

Description

libwacomwrapper: Calculate a better StatusLEDs value

Summary:
The libwacom database assigns LEDs into groups that are each associated
with a ring or touchstrip control. The number of LEDs defines the number
of modes that the control makes available. The total number of StatusLEDs
is thus just the sum of the number of modes on each control. Note that
some devices have controls with multiple modes but no LEDs associated, so
simply counting *all* modes doesn't work; you must only count those modes
on controls returned by libwacom_get_status_leds().

Reviewers: valeriymalov

Reviewed By: valeriymalov

Differential Revision: https://phabricator.kde.org/D12646

Details

Committed
valeriymalovJun 4 2018, 3:30 PM
Reviewer
valeriymalov
Differential Revision
D12646: libwacomwrapper: Calculate a better StatusLEDs value
Parents
R530:3d5f745a7e5d: move README to markdown
Branches
Unknown
Tags
Unknown