D11331: add gaming_input devices and others to Battery
Florian Dollinger
noreply at phabricator.kde.org
Wed Mar 14 15:20:18 UTC 2018
dollinger added inline comments.
INLINE COMMENTS
> dollinger wrote in upowerdevice.cpp:98
> Well then it is added automatically, which is what you would expect I think, and that is the reason why gaming_input wasn't detected.
But we can also do it the following way, personally I don't care to be honest:
return (uptype == 2 || uptype == 3 || uptype == 5 || uptype == 6 || uptype == 7 || uptype == 8 || uptype == 12);
While `12` is `UP_DEVICE_KIND_GAMING_INPUT`
REPOSITORY
R245 Solid
REVISION DETAIL
https://phabricator.kde.org/D11331
To: dollinger, broulik, #plasma
Cc: aleksejshilin, #frameworks, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180314/d749c76d/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list