diff options
| author | 2022-01-25 16:15:45 -0500 | |
|---|---|---|
| committer | 2022-01-25 16:15:45 -0500 | |
| commit | 432f4441b9420778970d9846750ff1458e6aaa03 (patch) | |
| tree | 3b500254540c0df824342b8f7dd737931ce446ab /src/input_common/input_engine.h | |
| parent | Merge pull request #7773 from lioncash/udp-deprecated (diff) | |
| parent | input_common/input_engine: Ensure PadIdentifier UUIDs have a valid initial state (diff) | |
| download | yuzu-432f4441b9420778970d9846750ff1458e6aaa03.tar.gz yuzu-432f4441b9420778970d9846750ff1458e6aaa03.tar.xz yuzu-432f4441b9420778970d9846750ff1458e6aaa03.zip | |
Merge pull request #7774 from lioncash/mapping
input_common/main: Pass MappingData by const reference in callbacks
Diffstat (limited to 'src/input_common/input_engine.h')
| -rw-r--r-- | src/input_common/input_engine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/input_engine.h b/src/input_common/input_engine.h index 390581c94..fe2faee5a 100644 --- a/src/input_common/input_engine.h +++ b/src/input_common/input_engine.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | // Pad Identifier of data source | 17 | // Pad Identifier of data source |
| 18 | struct PadIdentifier { | 18 | struct PadIdentifier { |
| 19 | Common::UUID guid{}; | 19 | Common::UUID guid{Common::INVALID_UUID}; |
| 20 | std::size_t port{}; | 20 | std::size_t port{}; |
| 21 | std::size_t pad{}; | 21 | std::size_t pad{}; |
| 22 | 22 | ||
| @@ -89,7 +89,7 @@ struct UpdateCallback { | |||
| 89 | 89 | ||
| 90 | // Triggered if data changed on the controller and the engine is on configuring mode | 90 | // Triggered if data changed on the controller and the engine is on configuring mode |
| 91 | struct MappingCallback { | 91 | struct MappingCallback { |
| 92 | std::function<void(MappingData)> on_data; | 92 | std::function<void(const MappingData&)> on_data; |
| 93 | }; | 93 | }; |
| 94 | 94 | ||
| 95 | // Input Identifier of data source | 95 | // Input Identifier of data source |