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:
@@ -55,8 +55,8 @@ struct AxisData
|
|||||||
|
|
||||||
namespace InputImpl
|
namespace InputImpl
|
||||||
{
|
{
|
||||||
Dictionary<StringView, ActionData> Actions;
|
Dictionary<String, ActionData> Actions;
|
||||||
Dictionary<StringView, AxisData> Axes;
|
Dictionary<String, AxisData> Axes;
|
||||||
bool GamepadsChanged = true;
|
bool GamepadsChanged = true;
|
||||||
Array<AxisEvaluation> AxesValues;
|
Array<AxisEvaluation> AxesValues;
|
||||||
InputDevice::EventQueue InputEvents;
|
InputDevice::EventQueue InputEvents;
|
||||||
|
|||||||
Reference in New Issue
Block a user