diff --git a/src/input/api/Wiimote/NativeWiimoteController.cpp b/src/input/api/Wiimote/NativeWiimoteController.cpp index 9aa56d9c..75025e09 100644 --- a/src/input/api/Wiimote/NativeWiimoteController.cpp +++ b/src/input/api/Wiimote/NativeWiimoteController.cpp @@ -232,7 +232,7 @@ ControllerState NativeWiimoteController::raw_state() for (int i = 0; i < std::numeric_limits::digits; i++) { // OR with base buttons - if((buttons & (1 << i))) + if((buttons & (1ULL << i))) result.buttons.SetButtonState(i, true); } result.axis = classic.left_axis;