Keep scan code setting enforced in the KBM360 form

This commit is contained in:
Travis Nickles 2017-04-05 23:35:36 -07:00
parent 5c74a00d90
commit 64e8a137e1

View File

@ -34,8 +34,9 @@ namespace DS4Windows
device = deviceNum; device = deviceNum;
ops = ooo; ops = ooo;
button = buton; button = buton;
cBToggle.Checked = button.Font.Italic; DS4ControlSettings dcs = Global.getDS4CSetting(device, button.Name);
cBScanCode.Checked = button.Font.Bold; cBToggle.Checked = dcs.keyType.HasFlag(DS4KeyType.Toggle);
cBScanCode.Checked = dcs.keyType.HasFlag(DS4KeyType.ScanCode);
oldSC = cBScanCode.Location; oldSC = cBScanCode.Location;
defaultText = btnDefault.Text; defaultText = btnDefault.Text;
if (button.Name.StartsWith("bnShift")) if (button.Name.StartsWith("bnShift"))