mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
[UI/Windows] Object out of scope optimization for better codegeneration (lower level scope)
This commit is contained in:
1 parent
ca94de8d4b
commit
95f535dab0
19 files changed
+59
-69
No files matched your search
@@ -165,11 +165,11 @@ int XinputDevice::UpdateState() {
|
||||
bool anySuccess = false;
|
||||
for (int i = 0; i < XUSER_MAX_COUNT; i++) {
|
||||
XINPUT_STATE state{};
|
||||
XINPUT_VIBRATION vibration{};
|
||||
if (check_delay[i]-- > 0)
|
||||
continue;
|
||||
DWORD dwResult = PPSSPP_XInputGetState(i, &state);
|
||||
if (dwResult == ERROR_SUCCESS) {
|
||||
XINPUT_VIBRATION vibration{};
|
||||
UpdatePad(i, state, vibration);
|
||||
anySuccess = true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user