From 63b8a356e85528ec8dbbbfc403a7d317e6e2705f Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Tue, 7 Feb 2023 20:59:53 +0000 Subject: [PATCH] Another try for buttons --- usbcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbcontroller.cpp b/usbcontroller.cpp index 8a24415..fe3f877 100644 --- a/usbcontroller.cpp +++ b/usbcontroller.cpp @@ -492,7 +492,7 @@ void usbController::runTimer() 0000000000000100 = button2 0000000000000010 = button1 */ - quint16 tempButtons = (data[1] << 8) | (data[0] & 0xff); + quint16 tempButtons = (data[2] << 8) | (data[1] & 0xff); if (buttons != tempButtons) {