From 383e4054abb37cb88469db3187457f485e36fb7a Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 8 Jan 2020 19:59:17 -0600 Subject: [PATCH] Fixed invalid cast for Shift Action key binding Related to issue #1023 --- DS4Windows/DS4Forms/ViewModels/BindingWindowViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Forms/ViewModels/BindingWindowViewModel.cs b/DS4Windows/DS4Forms/ViewModels/BindingWindowViewModel.cs index feb3e39..6f94f65 100644 --- a/DS4Windows/DS4Forms/ViewModels/BindingWindowViewModel.cs +++ b/DS4Windows/DS4Forms/ViewModels/BindingWindowViewModel.cs @@ -107,7 +107,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels break; case DS4ControlSettings.ActionType.Key: shiftOutBind.outputType = OutBinding.OutType.Key; - shiftOutBind.outkey = (int)setting.shiftAction; + shiftOutBind.outkey = Convert.ToInt32(setting.shiftAction); shiftOutBind.hasScanCode = sc; shiftOutBind.toggle = toggle; break;