Error out if the device returns a negative number of buttons
ClosedPublic

Authored by aacid on Sep 20 2017, 9:22 PM.

Details

Summary

btnx[1] is reporting a negative number of buttons in my machine (-87) so
ignore it instead of crashing (once we have negative buttons things quite don't work),
ignoring is not wrong since after all btnx is not a joystick

[1] https://github.com/cdobrich/btnx

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
aacid created this revision.Sep 20 2017, 9:22 PM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 20 2017, 9:22 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Sep 20 2017, 9:40 PM
This revision is now accepted and ready to land.Sep 20 2017, 9:40 PM
This revision was automatically updated to reflect the committed changes.