From 541ed96cbcdee8302847f3e568a03ac3bf9405e8 Mon Sep 17 00:00:00 2001 From: Sour Date: Mon, 3 Feb 2020 09:29:53 -0500 Subject: [PATCH] DirectInput: Fix bug preventing buttons #25+ from being usable --- Windows/WindowsKeyManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/WindowsKeyManager.cpp b/Windows/WindowsKeyManager.cpp index 915502fd..5834fd6d 100644 --- a/Windows/WindowsKeyManager.cpp +++ b/Windows/WindowsKeyManager.cpp @@ -333,7 +333,7 @@ vector WindowsKeyManager::GetPressedKeys() _directInput->RefreshState(); for(int i = _directInput->GetJoystickCount() - 1; i >= 0; i--) { - for(int j = 0; j < 0x29; j++) { + for(int j = 0; j < 16+128; j++) { if(_directInput->IsPressed(i, j)) { result.push_back(0x11000 + i * 0x100 + j); }