D7900: Error out if the device returns a negative number of buttons

Albert Astals Cid noreply at phabricator.kde.org
Wed Sep 20 21:23:05 UTC 2017


aacid created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION 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

REPOSITORY
  R119 Plasma Desktop

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D7900

AFFECTED FILES
  kcms/hardware/joystick/joydevice.cpp

To: aacid
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170920/0a15d755/attachment.html>


More information about the Plasma-devel mailing list