diff options
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: | |||
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | Input::TouchStatus GetStatus() const override { | 28 | Input::TouchStatus GetStatus() const override { |
| 29 | Input::TouchStatus touch_status = {}; | 29 | Input::TouchStatus touch_status{}; |
| 30 | for (size_t id = 0; id < map.size() && id < touch_status.size(); id++) { | 30 | for (std::size_t id = 0; id < map.size() && id < touch_status.size(); ++id) { |
| 31 | const bool state = std::get<0>(map[id])->GetStatus(); | 31 | const bool state = std::get<0>(map[id])->GetStatus(); |
| 32 | if (state) { | 32 | if (state) { |
| 33 | const float x = static_cast<float>(std::get<1>(map[id])) / | 33 | const float x = static_cast<float>(std::get<1>(map[id])) / |