summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-08-28 21:04:14 -0400
committerGravatar Lioncash2020-08-28 21:04:18 -0400
commit2e2dde2f956cecfee8413b8ae43f31f13ac8e681 (patch)
treec7771919ab4ad97597eeb2fc92f87a3cb69fcf97 /src
parentsdl_impl: Mark FromEvent() as a const member function (diff)
downloadyuzu-2e2dde2f956cecfee8413b8ae43f31f13ac8e681.tar.gz
yuzu-2e2dde2f956cecfee8413b8ae43f31f13ac8e681.tar.xz
yuzu-2e2dde2f956cecfee8413b8ae43f31f13ac8e681.zip
sdl_impl: Simplify make_tuple call
The purpose of make_tuple is that you don't need to explicitly type out the types of the things that comprise said tuple. Given this just returns default values, we can simplify this a bit.
Diffstat (limited to 'src')
-rw-r--r--src/input_common/sdl/sdl_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp
index 43fac7650..cb2cdf96f 100644
--- a/src/input_common/sdl/sdl_impl.cpp
+++ b/src/input_common/sdl/sdl_impl.cpp
@@ -358,7 +358,7 @@ public:
358 return std::make_tuple(x / r * (r - deadzone) / (1 - deadzone), 358 return std::make_tuple(x / r * (r - deadzone) / (1 - deadzone),
359 y / r * (r - deadzone) / (1 - deadzone)); 359 y / r * (r - deadzone) / (1 - deadzone));
360 } 360 }
361 return std::make_tuple<float, float>(0.0f, 0.0f); 361 return {};
362 } 362 }
363 363
364 bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override { 364 bool GetAnalogDirectionStatus(Input::AnalogDirection direction) const override {