Skip to content

Commit

Permalink
Classic buttons are 0 when pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
xerpi committed Jan 1, 2017
1 parent 8bac26e commit 2f0f34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ static int bt_cb_func(int notifyId, int notifyCount, int notifyArg, void *common
wiimote.classic.lt = (((recv_buff[5] >> 4) & 3) << 3) |
((recv_buff[6] >> 4) & 7);
wiimote.classic.rt = recv_buff[6] & 0x1F;
wiimote.classic.buttons = (recv_buff[8] << 8) | recv_buff[7];
wiimote.classic.buttons = (~recv_buff[8] << 8) | ~recv_buff[7];
break;

default:
Expand Down

0 comments on commit 2f0f34b

Please sign in to comment.