Skip to content

Commit

Permalink
Fix duplicate virtual button 13/14 issue.
Browse files Browse the repository at this point in the history
BTN_TRIGGER_HAPPY and BTN_TRIGGER_HAPPY1 map to the same input event
code.  If both are present in buttons_ref.h, physical button mapped to
virtual button 13 and physical button mapped to virtual 14 will BOTH
generate events on virtual button 13 and ANY mappings higher than 13
will end up being mapped to a virtual button index one less than
intended
  • Loading branch information
A Frederick Christensen committed Oct 27, 2016
1 parent 7737c37 commit d795315
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buttons_ref.h
Expand Up @@ -2,8 +2,8 @@
#define BUTTONS_REF_H
#include <linux/uinput.h> //Reference to keycodes

#define BUTTONS_SIZE 54
#define AXES_SIZE 19
#define BUTTONS_SIZE 53
#define AXES_SIZE 19

namespace buttons_ref
{
Expand All @@ -22,7 +22,6 @@ BTN_BASE4,
BTN_BASE5,
BTN_BASE6,
BTN_DEAD,
BTN_TRIGGER_HAPPY,
BTN_TRIGGER_HAPPY1,
BTN_TRIGGER_HAPPY2,
BTN_TRIGGER_HAPPY3,
Expand Down

0 comments on commit d795315

Please sign in to comment.