|
|
@@ -432,9 +432,9 @@ int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, PSTR commandLin |
|
|
|
win32ProcessPendingMessages(newKeyboardController); |
|
|
|
|
|
|
|
XINPUT_STATE controllerState; |
|
|
|
int maxControllerCount = 1 + XUSER_MAX_COUNT; |
|
|
|
if (maxControllerCount > ArrayCount(newInput->controllers)) { |
|
|
|
maxControllerCount = ArrayCount(newInput->controllers); |
|
|
|
int maxControllerCount = XUSER_MAX_COUNT; |
|
|
|
if (maxControllerCount > ArrayCount(newInput->controllers) - 1) { |
|
|
|
maxControllerCount = ArrayCount(newInput->controllers) - 1; |
|
|
|
} |
|
|
|
|
|
|
|
for (DWORD controllerIndex = 0; controllerIndex < XUSER_MAX_COUNT; controllerIndex++) { |
|
|
|