diff options
author | german <german@thesoftwareartisans.com> | 2021-01-02 22:04:50 -0600 |
---|---|---|
committer | german <german@thesoftwareartisans.com> | 2021-01-15 09:05:17 -0600 |
commit | 8495e1bd8373fed993975e40c360c87409455e9e (patch) | |
tree | fffff1304673212280dc0e927b69efa3ca4fc8b3 /src/input_common/touch_from_button.cpp | |
parent | d8df9a16bd4f4517b024c17446a94915493d7f3d (diff) |
Add mutitouch support for touch screens
Diffstat (limited to 'src/input_common/touch_from_button.cpp')
-rw-r--r-- | src/input_common/touch_from_button.cpp | 4 |
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])) / |