summaryrefslogtreecommitdiffstats
path: root/src/input_common/touch_from_button.cpp
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-01-03 05:04:50 +0100
committergerman <german@thesoftwareartisans.com>2021-01-15 16:05:17 +0100
commit8495e1bd8373fed993975e40c360c87409455e9e (patch)
treefffff1304673212280dc0e927b69efa3ca4fc8b3 /src/input_common/touch_from_button.cpp
parentAllow to return up to 16 touch inputs per engine (diff)
downloadyuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.gz
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.bz2
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.lz
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.xz
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.tar.zst
yuzu-8495e1bd8373fed993975e40c360c87409455e9e.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/touch_from_button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/touch_from_button.cpp b/src/input_common/touch_from_button.cpp
index 5226e70df..ffbe4f2ed 100644
--- a/src/input_common/touch_from_button.cpp
+++ b/src/input_common/touch_from_button.cpp
@@ -26,8 +26,8 @@ public:
}
Input::TouchStatus GetStatus() const override {
- Input::TouchStatus touch_status = {};
- for (size_t id = 0; id < map.size() && id < touch_status.size(); id++) {
+ Input::TouchStatus touch_status{};
+ for (std::size_t id = 0; id < map.size() && id < touch_status.size(); ++id) {
const bool state = std::get<0>(map[id])->GetStatus();
if (state) {
const float x = static_cast<float>(std::get<1>(map[id])) /