diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-25 16:15:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-25 16:15:45 -0500 |
commit | 432f4441b9420778970d9846750ff1458e6aaa03 (patch) | |
tree | 3b500254540c0df824342b8f7dd737931ce446ab /src/input_common/input_mapping.h | |
parent | 306b3491c4dcab8bcba732c8aa387b20583d8904 (diff) | |
parent | 651358d0b66dc425366059a7c119a2aec3fada1e (diff) |
Merge pull request #7774 from lioncash/mapping
input_common/main: Pass MappingData by const reference in callbacks
Diffstat (limited to 'src/input_common/input_mapping.h')
-rw-r--r-- | src/input_common/input_mapping.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/input_common/input_mapping.h b/src/input_common/input_mapping.h index 93564b5f8..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; @@ -20,7 +26,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 |