DirectInput: Fix bug preventing buttons #25+ from being usable
This commit is contained in:
parent
67a35fbfb4
commit
541ed96cbc
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ vector<uint32_t> WindowsKeyManager::GetPressedKeys()
|
||||||
|
|
||||||
_directInput->RefreshState();
|
_directInput->RefreshState();
|
||||||
for(int i = _directInput->GetJoystickCount() - 1; i >= 0; i--) {
|
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)) {
|
if(_directInput->IsPressed(i, j)) {
|
||||||
result.push_back(0x11000 + i * 0x100 + j);
|
result.push_back(0x11000 + i * 0x100 + j);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue