DirectInput: Fix bug preventing buttons #25+ from being usable

This commit is contained in:
Sour 2020-02-03 09:29:53 -05:00
parent 67a35fbfb4
commit 541ed96cbc

View file

@ -333,7 +333,7 @@ vector<uint32_t> 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);
}