diff options
author | german77 <juangerman-13@hotmail.com> | 2021-10-23 06:04:06 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-25 03:30:25 +0100 |
commit | b564f024f0be5023cf13fb2fca953ea6c1feeeb6 (patch) | |
tree | bb2fb272058a239a345856d4b34389791ea0a783 /src/core/hid/hid_core.cpp | |
parent | service/hid: Match shared memory closer to HW (diff) | |
download | yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.gz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.bz2 yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.lz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.xz yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.tar.zst yuzu-b564f024f0be5023cf13fb2fca953ea6c1feeeb6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/hid_core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hid/hid_core.cpp b/src/core/hid/hid_core.cpp index cc1b3c295..3cb26e1e7 100644 --- a/src/core/hid/hid_core.cpp +++ b/src/core/hid/hid_core.cpp @@ -113,8 +113,8 @@ NpadStyleTag HIDCore::GetSupportedStyleTag() const { s8 HIDCore::GetPlayerCount() const { s8 active_players = 0; - for (std::size_t player_index = 0; player_index < available_controllers -2; player_index++) { - const auto* controller = GetEmulatedControllerByIndex(player_index); + for (std::size_t player_index = 0; player_index < available_controllers - 2; ++player_index) { + const auto* const controller = GetEmulatedControllerByIndex(player_index); if (controller->IsConnected()) { active_players++; } @@ -123,8 +123,8 @@ s8 HIDCore::GetPlayerCount() const { } NpadIdType HIDCore::GetFirstNpadId() const { - for (std::size_t player_index = 0; player_index < available_controllers; player_index++) { - const auto* controller = GetEmulatedControllerByIndex(player_index); + for (std::size_t player_index = 0; player_index < available_controllers; ++player_index) { + const auto* const controller = GetEmulatedControllerByIndex(player_index); if (controller->IsConnected()) { return controller->GetNpadIdType(); } |