From 8bb39750a1f0ebe9b9a30b58188198123e69598a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 24 Jan 2022 11:39:17 -0500 Subject: input_common/input_mapping: Remove const from return value Top-level const on a return by value can inhibit move semantics, and is unnecessary. --- src/input_common/input_mapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_common/input_mapping.h') diff --git a/src/input_common/input_mapping.h b/src/input_common/input_mapping.h index 93564b5f8..aac9aee64 100644 --- a/src/input_common/input_mapping.h +++ b/src/input_common/input_mapping.h @@ -20,7 +20,7 @@ public: void BeginMapping(Polling::InputType type); /// Returns an input event with mapping information from the input_queue - [[nodiscard]] const Common::ParamPackage GetNextInput(); + [[nodiscard]] Common::ParamPackage GetNextInput(); /** * Registers mapping input data from the driver -- cgit v1.2.3 From 0849be094e8bd55ee9d81bcc545238af134410e7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 24 Jan 2022 11:42:05 -0500 Subject: input_common/input_mapping: Add missing includes Ensures that the class always sees the types it needs. --- src/input_common/input_mapping.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/input_common/input_mapping.h') diff --git a/src/input_common/input_mapping.h b/src/input_common/input_mapping.h index aac9aee64..e0dfbc7ad 100644 --- a/src/input_common/input_mapping.h +++ b/src/input_common/input_mapping.h @@ -3,8 +3,14 @@ // Refer to the license.txt file included #pragma once + +#include "common/param_package.h" #include "common/threadsafe_queue.h" +namespace InputCommon::Polling { +enum class InputType; +} + namespace InputCommon { class InputEngine; struct MappingData; -- cgit v1.2.3