Fixed invalid cast for Shift Action key binding

Related to issue #1023
This commit is contained in:
Travis Nickles 2020-01-08 19:59:17 -06:00
parent 0872f8183d
commit 383e4054ab

View File

@ -107,7 +107,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels
break; break;
case DS4ControlSettings.ActionType.Key: case DS4ControlSettings.ActionType.Key:
shiftOutBind.outputType = OutBinding.OutType.Key; shiftOutBind.outputType = OutBinding.OutType.Key;
shiftOutBind.outkey = (int)setting.shiftAction; shiftOutBind.outkey = Convert.ToInt32(setting.shiftAction);
shiftOutBind.hasScanCode = sc; shiftOutBind.hasScanCode = sc;
shiftOutBind.toggle = toggle; shiftOutBind.toggle = toggle;
break; break;