diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-11-25 13:48:00 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-18 16:33:28 +0100 |
commit | 54ea3c47c8ec50c62126ef7e01c21efc0c19799b (patch) | |
tree | 27350195e7de626bf35ab31c735c931f7b01d231 /src/core/hle/service/hid/controllers/npad.cpp | |
parent | util: Add URL Request Interceptor for QWebEngine (diff) | |
download | yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar.gz yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar.bz2 yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar.lz yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar.xz yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.tar.zst yuzu-54ea3c47c8ec50c62126ef7e01c21efc0c19799b.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.cpp')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index f6a0770bf..d280e7caf 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -1058,7 +1058,7 @@ void Controller_NPad::ClearAllControllers() { } u32 Controller_NPad::GetAndResetPressState() { - return std::exchange(press_state, 0); + return press_state.exchange(0); } bool Controller_NPad::IsControllerSupported(NPadControllerType controller) const { |