Permalink
Browse files

Classic buttons are 0 when pressed

  • Loading branch information...
1 parent 8bac26e commit 2f0f34beff55069ae0432f04e3fe87628a7cce3f @xerpi committed Jan 1, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.c
View
@@ -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:

0 comments on commit 2f0f34b

Please sign in to comment.