mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 12:48:01 -05:00
input_common/main: Pass MappingData by const reference in callbacks
Avoids creating unnecessary 168 byte copies per callback invocation.
This commit is contained in:
@ -89,7 +89,7 @@ struct UpdateCallback {
|
||||
|
||||
// Triggered if data changed on the controller and the engine is on configuring mode
|
||||
struct MappingCallback {
|
||||
std::function<void(MappingData)> on_data;
|
||||
std::function<void(const MappingData&)> on_data;
|
||||
};
|
||||
|
||||
// Input Identifier of data source
|
||||
|
Reference in New Issue
Block a user