Fix input actions/axis lookups to not use StringView

The stored strings might point to temporary strings, causing garbage data
to be present in the dictionary at times.
This commit is contained in:
2022-12-03 15:43:52 +02:00
parent a0a087fc91
commit 5e5d88ed8e

View File

@@ -55,8 +55,8 @@ struct AxisData
namespace InputImpl
{
Dictionary<StringView, ActionData> Actions;
Dictionary<StringView, AxisData> Axes;
Dictionary<String, ActionData> Actions;
Dictionary<String, AxisData> Axes;
bool GamepadsChanged = true;
Array<AxisEvaluation> AxesValues;
InputDevice::EventQueue InputEvents;