Fix an issue where the wrong action was being parsed, causing total failure in special action profile loading

This commit is contained in:
Yoni Lerner 2017-03-27 05:39:40 -07:00
parent 031efa2b0c
commit 88ff296286

View File

@ -1147,7 +1147,7 @@ namespace DS4Windows
if (dcs.action != null) if (dcs.action != null)
{ {
if (dcs.actionType == DS4ControlSettings.ActionType.Key) if (dcs.actionType == DS4ControlSettings.ActionType.Key)
InputMethods.performKeyRelease(ushort.Parse(action.ToString())); InputMethods.performKeyRelease(ushort.Parse(dcs.action.ToString()));
else if (dcs.actionType == DS4ControlSettings.ActionType.Macro) else if (dcs.actionType == DS4ControlSettings.ActionType.Macro)
{ {
int[] keys = (int[])dcs.action; int[] keys = (int[])dcs.action;