diff --git a/DS4Control/Control.cs b/DS4Control/Control.cs index 91834c1..bbbd075 100644 --- a/DS4Control/Control.cs +++ b/DS4Control/Control.cs @@ -12,13 +12,13 @@ namespace DS4Control public X360Device x360Bus; public DS4Device[] DS4Controllers = new DS4Device[4]; //TPadModeSwitcher[] modeSwitcher = new TPadModeSwitcher[4]; - Mouse[] touchPad = new Mouse[4]; + public Mouse[] touchPad = new Mouse[4]; private bool running = false; private DS4State[] MappedState = new DS4State[4]; private DS4State[] CurrentState = new DS4State[4]; private DS4State[] PreviousState = new DS4State[4]; public DS4StateExposed[] ExposedState = new DS4StateExposed[4]; - + public bool recordingMacro = false; public event EventHandler Debug = null; private class X360Data @@ -408,6 +408,7 @@ namespace DS4Control if (Global.getHasCustomKeysorButtons(ind)) { + if (!recordingMacro) Mapping.MapCustom(ind, cState, MappedState[ind], ExposedState[ind], touchPad[ind]); cState = MappedState[ind]; } @@ -474,6 +475,44 @@ namespace DS4Control return "nothing"; } + public DS4Controls GetInputkeysDS4(int ind) + { + DS4State cState = CurrentState[ind]; + DS4StateExposed eState = ExposedState[ind]; + Mouse tp = touchPad[ind]; + if (DS4Controllers[ind] != null) + if (Mapping.getBoolMapping(DS4Controls.Cross, cState, eState, tp)) return DS4Controls.Cross; + else if (Mapping.getBoolMapping(DS4Controls.Circle, cState, eState, tp)) return DS4Controls.Circle; + else if (Mapping.getBoolMapping(DS4Controls.Triangle, cState, eState, tp)) return DS4Controls.Triangle; + else if (Mapping.getBoolMapping(DS4Controls.Square, cState, eState, tp)) return DS4Controls.Square; + else if (Mapping.getBoolMapping(DS4Controls.L1, cState, eState, tp)) return DS4Controls.L1; + else if (Mapping.getBoolMapping(DS4Controls.R1, cState, eState, tp)) return DS4Controls.R1; + else if (Mapping.getBoolMapping(DS4Controls.L2, cState, eState, tp)) return DS4Controls.L2; + else if (Mapping.getBoolMapping(DS4Controls.R2, cState, eState, tp)) return DS4Controls.R2; + else if (Mapping.getBoolMapping(DS4Controls.L3, cState, eState, tp)) return DS4Controls.L3; + else if (Mapping.getBoolMapping(DS4Controls.R3, cState, eState, tp)) return DS4Controls.R3; + else if (Mapping.getBoolMapping(DS4Controls.DpadUp, cState, eState, tp)) return DS4Controls.DpadUp; + else if (Mapping.getBoolMapping(DS4Controls.DpadDown, cState, eState, tp)) return DS4Controls.DpadDown; + else if (Mapping.getBoolMapping(DS4Controls.DpadLeft, cState, eState, tp)) return DS4Controls.DpadLeft; + else if (Mapping.getBoolMapping(DS4Controls.DpadRight, cState, eState, tp)) return DS4Controls.DpadRight; + else if (Mapping.getBoolMapping(DS4Controls.Share, cState, eState, tp)) return DS4Controls.Share; + else if (Mapping.getBoolMapping(DS4Controls.Options, cState, eState, tp)) return DS4Controls.Options; + else if (Mapping.getBoolMapping(DS4Controls.PS, cState, eState, tp)) return DS4Controls.PS; + else if (Mapping.getBoolMapping(DS4Controls.LXPos, cState, eState, tp)) return DS4Controls.LXPos; + else if (Mapping.getBoolMapping(DS4Controls.LXNeg, cState, eState, tp)) return DS4Controls.LXNeg; + else if (Mapping.getBoolMapping(DS4Controls.LYPos, cState, eState, tp)) return DS4Controls.LYPos; + else if (Mapping.getBoolMapping(DS4Controls.LYNeg, cState, eState, tp)) return DS4Controls.LYNeg; + else if (Mapping.getBoolMapping(DS4Controls.RXPos, cState, eState, tp)) return DS4Controls.RXPos; + else if (Mapping.getBoolMapping(DS4Controls.RXNeg, cState, eState, tp)) return DS4Controls.RXNeg; + else if (Mapping.getBoolMapping(DS4Controls.RYPos, cState, eState, tp)) return DS4Controls.RYPos; + else if (Mapping.getBoolMapping(DS4Controls.RYNeg, cState, eState, tp)) return DS4Controls.RYNeg; + else if (Mapping.getBoolMapping(DS4Controls.TouchLeft, cState, eState, tp)) return DS4Controls.TouchLeft; + else if (Mapping.getBoolMapping(DS4Controls.TouchRight, cState, eState, tp)) return DS4Controls.TouchRight; + else if (Mapping.getBoolMapping(DS4Controls.TouchMulti, cState, eState, tp)) return DS4Controls.TouchMulti; + else if (Mapping.getBoolMapping(DS4Controls.TouchUpper, cState, eState, tp)) return DS4Controls.TouchUpper; + return DS4Controls.None; + } + public bool[] touchreleased = { true, true, true, true }, touchslid = { false, false, false, false }; public byte[] oldtouchvalue = { 0, 0, 0, 0 }; public int[] oldscrollvalue = { 0, 0, 0, 0 }; diff --git a/DS4Control/Mapping.cs b/DS4Control/Mapping.cs index 458396c..f7001bc 100644 --- a/DS4Control/Mapping.cs +++ b/DS4Control/Mapping.cs @@ -325,6 +325,7 @@ namespace DS4Control } public static bool[] pressedonce = new bool[261], macrodone = new bool[34]; public static int test = 0; + static bool[] macroControl = new bool[25]; /** Map DS4 Buttons/Axes to other DS4 Buttons/Axes (largely the same as Xinput ones) and to keyboard and mouse buttons. */ public static async void MapCustom(int device, DS4State cState, DS4State MappedState, DS4StateExposed eState, Mouse tp) { @@ -363,7 +364,7 @@ namespace DS4Control cState.CopyTo(MappedState); if (shift) MapShiftCustom(device, cState, MappedState, eState, tp); - //else + foreach (KeyValuePair customKey in Global.getCustomMacros(device)) { if (shift == false || @@ -393,35 +394,7 @@ namespace DS4Control } for (int i = 0; i < keys.Length; i++) keys[i] = ushort.Parse(skeys[i]); - bool[] keydown = new bool[261]; - if (keys.Length > 0 && keys[0] > 260 && keys[0] < 300) - { - if (keys[0] == 261 && !MappedState.Cross) MappedState.Cross = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 262 && !MappedState.Circle) MappedState.Circle = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 263 && !MappedState.Square) MappedState.Square = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 264 && !MappedState.Triangle) MappedState.Triangle = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 265 && !MappedState.DpadUp) MappedState.DpadUp = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 266 && !MappedState.DpadDown) MappedState.DpadDown = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 267 && !MappedState.DpadLeft) MappedState.DpadLeft = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 268 && !MappedState.DpadRight) MappedState.DpadRight = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 269 && !MappedState.Options) MappedState.Options = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 270 && !MappedState.Share) MappedState.Share = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 271 && !MappedState.PS) MappedState.PS = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 272 && !MappedState.L1) MappedState.L1 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 273 && !MappedState.R1) MappedState.R1 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 274 && MappedState.L2 == 0) MappedState.L2 = getByteMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 275 && MappedState.R2 == 0) MappedState.R2 = getByteMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 276 && !MappedState.L3) MappedState.L3 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 277 && !MappedState.R3) MappedState.R3 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 278 && LYChanged) MappedState.LY = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 279 && LYChanged) MappedState.LY = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 280 && LXChanged) MappedState.LX = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 281 && LXChanged) MappedState.LX = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 282 && RYChanged) MappedState.RY = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 283 && RYChanged) MappedState.RY = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 284 && RXChanged) MappedState.RX = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 285 && RXChanged) MappedState.RX = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - } + bool[] keydown = new bool[286]; if (!macrodone[DS4ControltoInt(customKey.Key)]) { macrodone[DS4ControltoInt(customKey.Key)] = true; @@ -429,26 +402,76 @@ namespace DS4Control { if (keys[i] >= 300) //ints over 300 used to delay await Task.Delay(keys[i] - 300); - else if (keys[i] < 261 && !keydown[keys[i]]) + else if (!keydown[keys[i]]) { if (keys[i] == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTDOWN); //anything above 255 is not a keyvalue else if (keys[i] == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTDOWN); else if (keys[i] == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEDOWN); else if (keys[i] == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONDOWN, 1); else if (keys[i] == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONDOWN, 2); + else if (keys[i] == 261) macroControl[0] = true; + else if (keys[i] == 262) macroControl[1] = true; + else if (keys[i] == 263) macroControl[2] = true; + else if (keys[i] == 264) macroControl[3] = true; + else if (keys[i] == 265) macroControl[4] = true; + else if (keys[i] == 266) macroControl[5] = true; + else if (keys[i] == 267) macroControl[6] = true; + else if (keys[i] == 268) macroControl[7] = true; + else if (keys[i] == 269) macroControl[8] = true; + else if (keys[i] == 270) macroControl[9] = true; + else if (keys[i] == 271) macroControl[10] = true; + else if (keys[i] == 272) macroControl[11] = true; + else if (keys[i] == 273) macroControl[12] = true; + else if (keys[i] == 274) macroControl[13] = true; + else if (keys[i] == 275) macroControl[14] = true; + else if (keys[i] == 276) macroControl[15] = true; + else if (keys[i] == 277) macroControl[16] = true; + else if (keys[i] == 278) macroControl[17] = true; + else if (keys[i] == 279) macroControl[18] = true; + else if (keys[i] == 280) macroControl[19] = true; + else if (keys[i] == 281) macroControl[20] = true; + else if (keys[i] == 282) macroControl[21] = true; + else if (keys[i] == 283) macroControl[22] = true; + else if (keys[i] == 284) macroControl[23] = true; + else if (keys[i] == 285) macroControl[24] = true; else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyPress((ushort)keys[i]); else InputMethods.performKeyPress((ushort)keys[i]); keydown[keys[i]] = true; } - else if (keys[i] < 261) + else { if (keys[i] == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTUP); //anything above 255 is not a keyvalue else if (keys[i] == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTUP); else if (keys[i] == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEUP); else if (keys[i] == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 1); else if (keys[i] == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 2); + else if (keys[i] == 261) macroControl[0] = false; + else if (keys[i] == 262) macroControl[1] = false; + else if (keys[i] == 263) macroControl[2] = false; + else if (keys[i] == 264) macroControl[3] = false; + else if (keys[i] == 265) macroControl[4] = false; + else if (keys[i] == 266) macroControl[5] = false; + else if (keys[i] == 267) macroControl[6] = false; + else if (keys[i] == 268) macroControl[7] = false; + else if (keys[i] == 269) macroControl[8] = false; + else if (keys[i] == 270) macroControl[9] = false; + else if (keys[i] == 271) macroControl[10] = false; + else if (keys[i] == 272) macroControl[11] = false; + else if (keys[i] == 273) macroControl[12] = false; + else if (keys[i] == 274) macroControl[13] = false; + else if (keys[i] == 275) macroControl[14] = false; + else if (keys[i] == 276) macroControl[15] = false; + else if (keys[i] == 277) macroControl[16] = false; + else if (keys[i] == 278) macroControl[17] = false; + else if (keys[i] == 279) macroControl[18] = false; + else if (keys[i] == 280) macroControl[19] = false; + else if (keys[i] == 281) macroControl[20] = false; + else if (keys[i] == 282) macroControl[21] = false; + else if (keys[i] == 283) macroControl[22] = false; + else if (keys[i] == 284) macroControl[23] = false; + else if (keys[i] == 285) macroControl[24] = false; else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyRelease((ushort)keys[i]); else @@ -459,7 +482,37 @@ namespace DS4Control for (ushort i = 0; i < keydown.Length; i++) { if (keydown[i]) - if (keyType.HasFlag(DS4KeyType.ScanCode)) + if (i == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTUP); //anything above 255 is not a keyvalue + else if (i == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTUP); + else if (i == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEUP); + else if (i == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 1); + else if (i == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 2); + else if (i == 261) macroControl[0] = false; + else if (i == 262) macroControl[1] = false; + else if (i == 263) macroControl[2] = false; + else if (i == 264) macroControl[3] = false; + else if (i == 265) macroControl[4] = false; + else if (i == 266) macroControl[5] = false; + else if (i == 267) macroControl[6] = false; + else if (i == 268) macroControl[7] = false; + else if (i == 269) macroControl[8] = false; + else if (i == 270) macroControl[9] = false; + else if (i == 271) macroControl[10] = false; + else if (i == 272) macroControl[11] = false; + else if (i == 273) macroControl[12] = false; + else if (i == 274) macroControl[13] = false; + else if (i == 275) macroControl[14] = false; + else if (i == 276) macroControl[15] = false; + else if (i == 277) macroControl[16] = false; + else if (keys[i] == 278) macroControl[17] = false; + else if (keys[i] == 279) macroControl[18] = false; + else if (keys[i] == 280) macroControl[19] = false; + else if (keys[i] == 281) macroControl[20] = false; + else if (keys[i] == 282) macroControl[21] = false; + else if (keys[i] == 283) macroControl[22] = false; + else if (keys[i] == 284) macroControl[23] = false; + else if (keys[i] == 285) macroControl[24] = false; + else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyRelease(i); else InputMethods.performKeyRelease(i); @@ -516,9 +569,8 @@ namespace DS4Control int MouseDeltaX = 0; int MouseDeltaY = 0; - Dictionary customButtons = Global.getCustomButtons(device); + //Dictionary customButtons = Global.getCustomButtons(device); //foreach (KeyValuePair customButton in customButtons) - // resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped List Cross = new List(); List Circle = new List(); List Square = new List(); @@ -544,7 +596,7 @@ namespace DS4Control List RXP = new List(); List RYN = new List(); List RYP = new List(); - foreach (KeyValuePair customButton in customButtons) + foreach (KeyValuePair customButton in Global.getCustomButtons(device)) { if (shift == false || (Global.getShiftCustomMacro(device, customButton.Key) == "0" && @@ -666,6 +718,31 @@ namespace DS4Control } } } + if (macroControl[0]) MappedState.Cross = true; + if (macroControl[01]) MappedState.Circle = true; + if (macroControl[02]) MappedState.Square = true; + if (macroControl[03]) MappedState.Triangle = true; + if (macroControl[04]) MappedState.Options = true; + if (macroControl[05]) MappedState.Share = true; + if (macroControl[06]) MappedState.DpadUp = true; + if (macroControl[07]) MappedState.DpadDown =true; + if (macroControl[08]) MappedState.DpadLeft = true; + if (macroControl[09]) MappedState.DpadRight = true; + if (macroControl[10]) MappedState.PS = true; + if (macroControl[11]) MappedState.L1 = true; + if (macroControl[12]) MappedState.R1 = true; + if (macroControl[13]) MappedState.L2 = 255; + if (macroControl[14]) MappedState.R2 = 255; + if (macroControl[15]) MappedState.L3 = true; + if (macroControl[16]) MappedState.R3 = true; + if (macroControl[17]) MappedState.LX = 255; + if (macroControl[18]) MappedState.LX = 0; + if (macroControl[19]) MappedState.LY = 255; + if (macroControl[20]) MappedState.LY = 0; + if (macroControl[21]) MappedState.RX = 255; + if (macroControl[22]) MappedState.RX = 0; + if (macroControl[23]) MappedState.RY = 255; + if (macroControl[24]) MappedState.RY = 0; foreach (DS4Controls dc in Cross) if (getBoolMapping(dc, cState, eState, tp)) MappedState.Cross = true; @@ -809,35 +886,7 @@ namespace DS4Control } for (int i = 0; i < keys.Length; i++) keys[i] = ushort.Parse(skeys[i]); - bool[] keydown = new bool[261]; - if (keys.Length > 0 && keys[0] > 260 && keys[0] < 300) - { - if (keys[0] == 261 && !MappedState.Cross) MappedState.Cross = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 262 && !MappedState.Circle) MappedState.Circle = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 263 && !MappedState.Square) MappedState.Square = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 264 && !MappedState.Triangle) MappedState.Triangle = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 265 && !MappedState.DpadUp) MappedState.DpadUp = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 266 && !MappedState.DpadDown) MappedState.DpadDown = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 267 && !MappedState.DpadLeft) MappedState.DpadLeft = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 268 && !MappedState.DpadRight) MappedState.DpadRight = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 269 && !MappedState.Options) MappedState.Options = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 270 && !MappedState.Share) MappedState.Share = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 271 && !MappedState.PS) MappedState.PS = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 272 && !MappedState.L1) MappedState.L1 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 273 && !MappedState.R1) MappedState.R1 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 274 && MappedState.L2 == 0) MappedState.L2 = getByteMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 275 && MappedState.R2 == 0) MappedState.R2 = getByteMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 276 && !MappedState.L3) MappedState.L3 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 277 && !MappedState.R3) MappedState.R3 = getBoolMapping(customKey.Key, cState, eState, tp); - if (keys[0] == 278 && LYChanged) MappedState.LY = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 279 && LYChanged) MappedState.LY = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 280 && LXChanged) MappedState.LX = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 281 && LXChanged) MappedState.LX = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 282 && RYChanged) MappedState.RY = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 283 && RYChanged) MappedState.RY = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - if (keys[0] == 284 && RXChanged) MappedState.RX = getXYAxisMapping(device, customKey.Key, cState, eState, tp); - if (keys[0] == 285 && RXChanged) MappedState.RX = getXYAxisMapping(device, customKey.Key, cState, eState, tp, true); - } + bool[] keydown = new bool[278]; if (!macrodone[DS4ControltoInt(customKey.Key)]) { macrodone[DS4ControltoInt(customKey.Key)] = true; @@ -845,26 +894,76 @@ namespace DS4Control { if (keys[i] >= 300) //ints over 300 used to delay await Task.Delay(keys[i] - 300); - else if (keys[i] < 261 && !keydown[keys[i]]) + else if (!keydown[keys[i]]) { if (keys[i] == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTDOWN); //anything above 255 is not a keyvalue else if (keys[i] == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTDOWN); else if (keys[i] == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEDOWN); else if (keys[i] == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONDOWN, 1); else if (keys[i] == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONDOWN, 2); + else if (keys[i] == 261) macroControl[0] = true; + else if (keys[i] == 262) macroControl[1] = true; + else if (keys[i] == 263) macroControl[2] = true; + else if (keys[i] == 264) macroControl[3] = true; + else if (keys[i] == 265) macroControl[4] = true; + else if (keys[i] == 266) macroControl[5] = true; + else if (keys[i] == 267) macroControl[6] = true; + else if (keys[i] == 268) macroControl[7] = true; + else if (keys[i] == 269) macroControl[8] = true; + else if (keys[i] == 270) macroControl[9] = true; + else if (keys[i] == 271) macroControl[10] = true; + else if (keys[i] == 272) macroControl[11] = true; + else if (keys[i] == 273) macroControl[12] = true; + else if (keys[i] == 274) macroControl[13] = true; + else if (keys[i] == 275) macroControl[14] = true; + else if (keys[i] == 276) macroControl[15] = true; + else if (keys[i] == 277) macroControl[16] = true; + else if (keys[i] == 278) macroControl[17] = true; + else if (keys[i] == 279) macroControl[18] = true; + else if (keys[i] == 280) macroControl[19] = true; + else if (keys[i] == 281) macroControl[20] = true; + else if (keys[i] == 282) macroControl[21] = true; + else if (keys[i] == 283) macroControl[22] = true; + else if (keys[i] == 284) macroControl[23] = true; + else if (keys[i] == 285) macroControl[24] = true; else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyPress((ushort)keys[i]); else InputMethods.performKeyPress((ushort)keys[i]); keydown[keys[i]] = true; } - else if (keys[i] < 261) + else { if (keys[i] == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTUP); //anything above 255 is not a keyvalue else if (keys[i] == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTUP); else if (keys[i] == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEUP); else if (keys[i] == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 1); else if (keys[i] == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 2); + else if (keys[i] == 261) macroControl[0] = false; + else if (keys[i] == 262) macroControl[1] = false; + else if (keys[i] == 263) macroControl[2] = false; + else if (keys[i] == 264) macroControl[3] = false; + else if (keys[i] == 265) macroControl[4] = false; + else if (keys[i] == 266) macroControl[5] = false; + else if (keys[i] == 267) macroControl[6] = false; + else if (keys[i] == 268) macroControl[7] = false; + else if (keys[i] == 269) macroControl[8] = false; + else if (keys[i] == 270) macroControl[9] = false; + else if (keys[i] == 271) macroControl[10] = false; + else if (keys[i] == 272) macroControl[11] = false; + else if (keys[i] == 273) macroControl[12] = false; + else if (keys[i] == 274) macroControl[13] = false; + else if (keys[i] == 275) macroControl[14] = false; + else if (keys[i] == 276) macroControl[15] = false; + else if (keys[i] == 277) macroControl[16] = false; + else if (keys[i] == 278) macroControl[17] = false; + else if (keys[i] == 279) macroControl[18] = false; + else if (keys[i] == 280) macroControl[19] = false; + else if (keys[i] == 281) macroControl[20] = false; + else if (keys[i] == 282) macroControl[21] = false; + else if (keys[i] == 283) macroControl[22] = false; + else if (keys[i] == 284) macroControl[23] = false; + else if (keys[i] == 285) macroControl[24] = false; else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyRelease((ushort)keys[i]); else @@ -875,7 +974,37 @@ namespace DS4Control for (ushort i = 0; i < keydown.Length; i++) { if (keydown[i]) - if (keyType.HasFlag(DS4KeyType.ScanCode)) + if (i == 256) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_LEFTUP); //anything above 255 is not a keyvalue + else if (i == 257) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_RIGHTUP); + else if (i == 258) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_MIDDLEUP); + else if (i == 259) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 1); + else if (i == 260) InputMethods.MouseEvent(InputMethods.MOUSEEVENTF_XBUTTONUP, 2); + else if (i == 261) macroControl[0] = false; + else if (i == 262) macroControl[1] = false; + else if (i == 263) macroControl[2] = false; + else if (i == 264) macroControl[3] = false; + else if (i == 265) macroControl[4] = false; + else if (i == 266) macroControl[5] = false; + else if (i == 267) macroControl[6] = false; + else if (i == 268) macroControl[7] = false; + else if (i == 269) macroControl[8] = false; + else if (i == 270) macroControl[9] = false; + else if (i == 271) macroControl[10] = false; + else if (i == 272) macroControl[11] = false; + else if (i == 273) macroControl[12] = false; + else if (i == 274) macroControl[13] = false; + else if (i == 275) macroControl[14] = false; + else if (i == 276) macroControl[15] = false; + else if (i == 277) macroControl[16] = false; + else if (keys[i] == 278) macroControl[17] = false; + else if (keys[i] == 279) macroControl[18] = false; + else if (keys[i] == 280) macroControl[19] = false; + else if (keys[i] == 281) macroControl[20] = false; + else if (keys[i] == 282) macroControl[21] = false; + else if (keys[i] == 283) macroControl[22] = false; + else if (keys[i] == 284) macroControl[23] = false; + else if (keys[i] == 285) macroControl[24] = false; + else if (keyType.HasFlag(DS4KeyType.ScanCode)) InputMethods.performSCKeyRelease(i); else InputMethods.performKeyRelease(i); @@ -1069,7 +1198,31 @@ namespace DS4Control break; } } - Console.WriteLine(Cross.Count); + if (macroControl[0]) MappedState.Cross = true; + if (macroControl[1]) MappedState.Circle = true; + if (macroControl[2]) MappedState.Square = true; + if (macroControl[3]) MappedState.Triangle = true; + if (macroControl[4]) MappedState.Options = true; + if (macroControl[5]) MappedState.Share = true; + if (macroControl[6]) MappedState.DpadUp = true; + if (macroControl[7]) MappedState.DpadDown = true; + if (macroControl[8]) MappedState.DpadLeft = true; + if (macroControl[9]) MappedState.DpadRight = true; + if (macroControl[10]) MappedState.PS = true; + if (macroControl[11]) MappedState.L1 = true; + if (macroControl[12]) MappedState.R1 = true; + if (macroControl[13]) MappedState.L2 = 255; + if (macroControl[14]) MappedState.R2 = 255; + if (macroControl[15]) MappedState.L3 = true; + if (macroControl[16]) MappedState.R3 = true; + if (macroControl[17]) MappedState.LX = 255; + if (macroControl[18]) MappedState.LX = 0; + if (macroControl[19]) MappedState.LY = 255; + if (macroControl[20]) MappedState.LY = 0; + if (macroControl[21]) MappedState.RX = 255; + if (macroControl[22]) MappedState.RX = 0; + if (macroControl[23]) MappedState.RY = 255; + if (macroControl[24]) MappedState.RY = 0; foreach (DS4Controls dc in Cross) if (getBoolMapping(dc, cState, eState, tp)) MappedState.Cross = true; @@ -1236,38 +1389,6 @@ namespace DS4Control if (rightsitcklive) value = (cState.RY - 127) / 2550d * speed; break; - /*case DS4Controls.LXNeg: - if (cState.LX < 127 - deadzone) - value = Math.Pow(root + speed / divide, -(cState.LX - 127)) - 1; - break; - case DS4Controls.LXPos: - if (cState.LX > 127 + deadzone) - value = Math.Pow(root + speed / divide, (cState.LX - 127)) -1; - break; - case DS4Controls.RXNeg: - if (cState.RX < 127 - deadzone) - value = Math.Pow(root + speed / divide, -(cState.RX - 127)) - 1; - break; - case DS4Controls.RXPos: - if (cState.RX > 127 + deadzone) - value = Math.Pow(root + speed / divide, (cState.RX - 127)) - 1; - break; - case DS4Controls.LYNeg: - if (cState.LY < 127 - deadzone) - value = Math.Pow(root + speed / divide, -(cState.LY - 127)) - 1; - break; - case DS4Controls.LYPos: - if (cState.LY > 127 + deadzone) - value = Math.Pow(root + speed / divide,(cState.LY - 127)) - 1; - break; - case DS4Controls.RYNeg: - if (cState.RY < 127 - deadzone) - value = Math.Pow(root + speed / divide,-(cState.RY - 127)) - 1; - break; - case DS4Controls.RYPos: - if (cState.RY > 127 + deadzone) - value = Math.Pow(root + speed / divide, (cState.RY - 127)) - 1; - break;*/ case DS4Controls.Share: value = (cState.Share ? Math.Pow(root + speed / divide, 100) - 1 : 0); break; case DS4Controls.Options: value = (cState.Options ? Math.Pow(root + speed / divide, 100) - 1 : 0); break; case DS4Controls.L1: value = (cState.L1 ? Math.Pow(root + speed / divide, 100) - 1 : 0); break; diff --git a/DS4Control/Mouse.cs b/DS4Control/Mouse.cs index 5ddb47d..a2d9877 100644 --- a/DS4Control/Mouse.cs +++ b/DS4Control/Mouse.cs @@ -16,6 +16,7 @@ namespace DS4Control private readonly MouseCursor cursor; private readonly MouseWheel wheel; private bool tappedOnce = false, secondtouchbegin = false; + public bool swipeLeft, swipeRight, swipeUp, swipeDown; public bool slideleft, slideright; // touch area stuff public bool leftDown, rightDown, upperDown, multiDown; @@ -39,6 +40,15 @@ namespace DS4Control { cursor.touchesMoved(arg); wheel.touchesMoved(arg); + if (!(swipeUp || swipeDown || swipeLeft || swipeRight)) + { + if (arg.touches[0].hwX - firstTouch.hwX > 200) swipeRight = true; + if (arg.touches[0].hwX - firstTouch.hwX < -200) swipeLeft = true; + if (arg.touches[0].hwY - firstTouch.hwY > 100) swipeDown = true; + if (arg.touches[0].hwY - firstTouch.hwY < -100) swipeUp = true; + } + /*if ((swipeUp || swipeDown || swipeLeft || swipeRight)) + Console.WriteLine("Up " + swipeUp + " Down " + swipeDown + " Left " + swipeLeft + " Right " + swipeRight);*/ if (Math.Abs(firstTouch.hwY - arg.touches[0].hwY) < 50) if (arg.touches.Length == 2) if (arg.touches[0].hwX - firstTouch.hwX > 200 && !slideleft) @@ -47,8 +57,6 @@ namespace DS4Control slideleft = true; dev.getCurrentState(s); synthesizeMouseButtons(); - //if (arg.touches.Length == 2) - // Console.WriteLine("Left " + slideleft + " Right " + slideright); } public virtual void touchesBegan(object sender, TouchpadEventArgs arg) { @@ -64,12 +72,11 @@ namespace DS4Control } dev.getCurrentState(s); synthesizeMouseButtons(); - //Console.WriteLine(arg.timeStamp.ToString("O") + " " + "began at " + arg.touches[0].hwX + "," + arg.touches[0].hwY); } public virtual void touchesEnded(object sender, TouchpadEventArgs arg) { - //Console.WriteLine(arg.timeStamp.ToString("O") + " " + "ended at " + arg.touches[0].hwX + "," + arg.touches[0].hwY); slideright = slideleft = false; + swipeUp = swipeDown = swipeLeft = swipeRight = false; if (Global.getTapSensitivity(deviceNum) != 0) { @@ -91,7 +98,6 @@ namespace DS4Control Mapping.MapClick(deviceNum, Mapping.Click.Left); //this way no delay if disabled } dev.getCurrentState(s); - //if (buttonLock) synthesizeMouseButtons(); } diff --git a/DS4Tool.sln b/DS4Tool.sln index 316e2dd..12a222a 100644 --- a/DS4Tool.sln +++ b/DS4Tool.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2013 for Windows Desktop +# Visual Studio 2013 VisualStudioVersion = 12.0.30501.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DS4Library", "DS4Library\DS4Library.csproj", "{43E14DAD-E6E8-4B66-AC50-20F5CF9B9712}" diff --git a/DS4Tool/ScpForm.Designer.cs b/DS4Tool/DS4Form.Designer.cs similarity index 99% rename from DS4Tool/ScpForm.Designer.cs rename to DS4Tool/DS4Form.Designer.cs index adc8a65..ff97d32 100644 --- a/DS4Tool/ScpForm.Designer.cs +++ b/DS4Tool/DS4Form.Designer.cs @@ -1,6 +1,6 @@ namespace ScpServer { - partial class ScpForm + partial class DS4Form { /// /// Required designer variable. @@ -29,7 +29,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ScpForm)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DS4Form)); this.lvDebug = new System.Windows.Forms.ListView(); this.chTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chData = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -226,6 +226,7 @@ // // cMTaskbar // + this.cMTaskbar.ImageScalingSize = new System.Drawing.Size(24, 24); this.cMTaskbar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.editProfileForController1ToolStripMenuItem, this.editProfileForController2ToolStripMenuItem, @@ -535,6 +536,7 @@ // // cMProfile // + this.cMProfile.ImageScalingSize = new System.Drawing.Size(24, 24); this.cMProfile.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.editToolStripMenuItem, this.assignToController1ToolStripMenuItem, @@ -881,7 +883,7 @@ // resources.ApplyResources(this.saveProfiles, "saveProfiles"); // - // ScpForm + // DS4Form // this.AllowDrop = true; resources.ApplyResources(this, "$this"); @@ -889,7 +891,7 @@ this.BackColor = System.Drawing.Color.White; this.Controls.Add(this.tabMain); this.Controls.Add(this.pnlButton); - this.Name = "ScpForm"; + this.Name = "DS4Form"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScpForm_Closing); this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ScpForm_DragDrop); this.DragEnter += new System.Windows.Forms.DragEventHandler(this.ScpForm_DragEnter); diff --git a/DS4Tool/ScpForm.cs b/DS4Tool/DS4Form.cs similarity index 98% rename from DS4Tool/ScpForm.cs rename to DS4Tool/DS4Form.cs index 9abaca9..03896c9 100644 --- a/DS4Tool/ScpForm.cs +++ b/DS4Tool/DS4Form.cs @@ -16,7 +16,7 @@ using System.Text; using System.Globalization; namespace ScpServer { - public partial class ScpForm : Form + public partial class DS4Form : Form { public string[] arguements; private DS4Control.Control rootHub; @@ -81,7 +81,7 @@ namespace ScpServer [DllImport("psapi.dll")] private static extern uint GetModuleFileNameEx(IntPtr hWnd, IntPtr hModule, StringBuilder lpFileName, int nSize); - public ScpForm(string[] args) + public DS4Form(string[] args) { InitializeComponent(); arguements = args; @@ -126,15 +126,15 @@ namespace ScpServer Graphics g = this.CreateGraphics(); try { - dpix = g.DpiX; - dpiy = g.DpiY; + dpix = g.DpiX / 100f * 1.041666666667f; + dpiy = g.DpiY / 100f * 1.041666666667f; } finally { g.Dispose(); } - Icon = Properties.Resources.DS4; - notifyIcon1.Icon = Properties.Resources.DS4; + Icon = Properties.Resources.DS4W; + notifyIcon1.Icon = Properties.Resources.DS4W; rootHub = new DS4Control.Control(); rootHub.Debug += On_Debug; Log.GuiLog += On_Debug; @@ -382,7 +382,6 @@ namespace ScpServer if (!deriverinstalled) { - //Console.WriteLine("yo"); WelcomeDialog wd = new WelcomeDialog(); wd.ShowDialog(); wd.FormClosed += delegate { btnStartStop_Clicked(false); btnStartStop_Clicked(false); }; @@ -403,7 +402,7 @@ namespace ScpServer FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); string version = fvi.FileVersion; string newversion = File.ReadAllText(Global.appdatapath + "\\version.txt"); - if (version.Replace(',', '.').CompareTo(File.ReadAllText(Global.appdatapath + "\\version.txt")) == -1)//CompareVersions(); + if (version.Replace(',', '.').CompareTo(newversion) == -1)//CompareVersions(); if (MessageBox.Show(Properties.Resources.DownloadVersion.Replace("*number*", newversion), Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { if (!File.Exists(exepath + "\\DS4Updater.exe") || (File.Exists(exepath + "\\DS4Updater.exe") @@ -652,7 +651,6 @@ namespace ScpServer if (Pads[Index].Text != Properties.Resources.Connecting) { Enable_Controls(Index, true); - //Console.WriteLine(opt == null); if (opt != null) opt.inputtimer.Start(); //MinimumSize = new Size(MinimumSize.Width, 137 + 29 * Index); @@ -867,19 +865,19 @@ namespace ScpServer lbLastMessage.Text = lvDebug.Items[lvDebug.Items.Count - 1].SubItems[1].Text; }; oldsize = this.Size; - if (dpix == 120) + /*if (dpix == 120) { if (this.Size.Height < 90 + opt.MaximumSize.Height * 1.25) this.Size = new System.Drawing.Size(this.Size.Width, (int)(90 + opt.MaximumSize.Height * 1.25)); if (this.Size.Width < 20 + opt.MaximumSize.Width * 1.25) this.Size = new System.Drawing.Size((int)(20 + opt.Size.Width * 1.25), this.Size.Height); } - else + else*/ { - if (this.Size.Height < 90 + opt.MaximumSize.Height) - this.Size = new System.Drawing.Size(this.Size.Width, 90 + opt.MaximumSize.Height); - if (this.Size.Width < 20 + opt.MaximumSize.Width) - this.Size = new System.Drawing.Size(20 + opt.MaximumSize.Width, this.Size.Height); + if (this.Size.Height < (int)(90 * dpiy) + opt.MaximumSize.Height) + this.Size = new System.Drawing.Size(this.Size.Width, (int)(90 * dpiy) + opt.MaximumSize.Height); + if (this.Size.Width < (int)(20 * dpix) + opt.MaximumSize.Width) + this.Size = new System.Drawing.Size((int)(20 * dpix) + opt.MaximumSize.Width, this.Size.Height); } tabMain.SelectedIndex = 1; } diff --git a/DS4Tool/ScpForm.es.resx b/DS4Tool/DS4Form.es.resx similarity index 100% rename from DS4Tool/ScpForm.es.resx rename to DS4Tool/DS4Form.es.resx diff --git a/DS4Tool/ScpForm.fr-FR.resx b/DS4Tool/DS4Form.fr-FR.resx similarity index 100% rename from DS4Tool/ScpForm.fr-FR.resx rename to DS4Tool/DS4Form.fr-FR.resx diff --git a/DS4Tool/ScpForm.resx b/DS4Tool/DS4Form.resx similarity index 99% rename from DS4Tool/ScpForm.resx rename to DS4Tool/DS4Form.resx index 7114f74..3009411 100644 --- a/DS4Tool/ScpForm.resx +++ b/DS4Tool/DS4Form.resx @@ -142,7 +142,7 @@ 3, 3 - 891, 330 + 890, 330 0 @@ -169,7 +169,7 @@ True - 651, 9 + 649, 9 98, 13 @@ -199,7 +199,7 @@ Bottom, Right - 840, 4 + 839, 4 58, 23 @@ -229,7 +229,7 @@ 4, 9 - 745, 18 + 744, 18 41 @@ -253,7 +253,7 @@ True - 755, 9 + 753, 9 79, 13 @@ -283,7 +283,7 @@ 0, 385 - 905, 30 + 904, 30 10 @@ -310,7 +310,7 @@ 3, 333 - 891, 23 + 890, 23 9 @@ -6646,7 +6646,7 @@ - 425, 19 + 424, 19 39, 20 @@ -6739,7 +6739,7 @@ Left - 856, 76 + 854, 76 37, 23 @@ -6766,7 +6766,7 @@ Left - 856, 105 + 854, 105 37, 23 @@ -6859,7 +6859,7 @@ None - 739, 19 + 737, 19 111, 21 @@ -6883,7 +6883,7 @@ Left - 856, 47 + 854, 47 37, 23 @@ -6910,7 +6910,7 @@ None - 739, 48 + 737, 48 111, 21 @@ -6934,7 +6934,7 @@ None - 739, 77 + 737, 77 111, 21 @@ -6958,7 +6958,7 @@ Left - 856, 18 + 854, 18 37, 23 @@ -6985,7 +6985,7 @@ None - 739, 106 + 737, 106 111, 21 @@ -7015,7 +7015,7 @@ Microsoft Sans Serif, 9pt, style=Bold - 740, 0 + 738, 0 109, 15 @@ -7081,7 +7081,7 @@ Microsoft Sans Serif, 9pt, style=Bold - 421, 0 + 420, 0 47, 15 @@ -7114,7 +7114,7 @@ Microsoft Sans Serif, 9pt, style=Bold - 617, 0 + 615, 0 51, 15 @@ -7147,7 +7147,7 @@ Microsoft Sans Serif, 9pt - 623, 22 + 621, 22 39, 15 @@ -7180,7 +7180,7 @@ Microsoft Sans Serif, 9pt - 623, 51 + 621, 51 39, 15 @@ -7213,7 +7213,7 @@ Microsoft Sans Serif, 9pt - 623, 80 + 621, 80 39, 15 @@ -7246,7 +7246,7 @@ Microsoft Sans Serif, 9pt - 623, 109 + 621, 109 39, 15 @@ -7329,7 +7329,7 @@ - 425, 48 + 424, 48 39, 20 @@ -7412,7 +7412,7 @@ - 425, 77 + 424, 77 39, 20 @@ -7495,7 +7495,7 @@ - 425, 106 + 424, 106 39, 20 @@ -7528,7 +7528,7 @@ 5 - 897, 130 + 896, 130 46 @@ -7552,7 +7552,7 @@ 4, 22 - 897, 359 + 896, 359 3 @@ -7660,7 +7660,7 @@ 3, 53 - 891, 303 + 890, 303 0 @@ -7726,7 +7726,7 @@ 3, 28 - 891, 25 + 890, 25 2 @@ -7758,9 +7758,6 @@ New - - TopLeft - Make a New Profile @@ -7773,9 +7770,6 @@ Edit - - TopLeft - Edit Selected Profile (Enter) @@ -7799,9 +7793,6 @@ Delete - - TopLeft - Delete Selected Profle (Delete) @@ -7824,9 +7815,6 @@ Duplicate - - TopLeft - Dupliacate Selected Profile (Ctrl+C) @@ -7872,7 +7860,7 @@ 3, 3 - 891, 25 + 890, 25 1 @@ -7899,7 +7887,7 @@ 3, 3, 3, 3 - 897, 359 + 896, 359 0 @@ -7923,7 +7911,7 @@ 4, 22 - 897, 359 + 896, 359 2 @@ -8418,7 +8406,7 @@ 7, 7, 0, 9 - 891, 353 + 890, 353 0 @@ -8442,7 +8430,7 @@ 3, 3, 3, 3 - 897, 359 + 896, 359 4 @@ -8469,7 +8457,7 @@ 3, 3, 3, 3 - 897, 359 + 896, 359 1 @@ -8496,7 +8484,7 @@ 0, 0 - 905, 385 + 904, 385 12 @@ -8526,10 +8514,10 @@ 96, 96 - 905, 415 + 904, 415 - 440, 231 + 438, 225 DS4Windows @@ -8757,7 +8745,7 @@ System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - ScpForm + DS4Form System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 diff --git a/DS4Tool/DS4Tool.csproj b/DS4Tool/DS4Tool.csproj index d096499..262e0dd 100644 --- a/DS4Tool/DS4Tool.csproj +++ b/DS4Tool/DS4Tool.csproj @@ -55,7 +55,7 @@ false - Resources\DS4.ico + DS4W.ico @@ -76,6 +76,11 @@ OnBuildSuccess + + + + + @@ -142,11 +147,11 @@ SaveWhere.cs - + Form - - ScpForm.cs + + DS4Form.cs @@ -214,14 +219,15 @@ SaveWhere.cs - - ScpForm.cs + + DS4Form.cs + Designer - - ScpForm.cs + + DS4Form.cs - - ScpForm.cs + + DS4Form.cs WelcomeDialog.cs @@ -288,6 +294,7 @@ + @@ -318,6 +325,7 @@ + diff --git a/DS4Tool/DS4W.ico b/DS4Tool/DS4W.ico new file mode 100644 index 0000000..f75e9aa Binary files /dev/null and b/DS4Tool/DS4W.ico differ diff --git a/DS4Tool/KBM360.cs b/DS4Tool/KBM360.cs index cdaf614..be6389d 100644 --- a/DS4Tool/KBM360.cs +++ b/DS4Tool/KBM360.cs @@ -6,7 +6,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; - +using DS4Control; namespace ScpServer { public partial class KBM360 : Form @@ -18,6 +18,7 @@ namespace ScpServer public List macros = new List(); public List macrostag = new List(); public bool macrorepeat; + RecordBox rb; public KBM360(DS4Control.Control bus_device, int deviceNum, Options ooo, Button buton) { InitializeComponent(); @@ -27,8 +28,12 @@ namespace ScpServer button = buton; cbToggle.Checked = button.Font.Italic; cbScanCode.Checked = button.Font.Bold; - //cBMacro.Checked = button.Font.Underline; - lBMacroOn.Visible = button.Font.Underline; + if (button.Font.Underline) + { + lBMacroOn.Visible = true; + foreach (int i in ((int[])button.Tag)) + macrostag.Add(i); + } if (button.Name.StartsWith("bn")) Text = Properties.Resources.SelectActionTitle.Replace("*action*", button.Name.Substring(2)); else if (button.Name.StartsWith("bnHold")) @@ -53,10 +58,10 @@ namespace ScpServer } ActiveControl = null; } - + public void anybtn_Click(object sender, EventArgs e) { - if (sender is Button && ((Button)sender).Name != "btnMacro") + if (rb == null && sender is Button && ((Button)sender).Name != "bnMacro") { Button bn = ((Button)sender); string keyname; @@ -95,6 +100,12 @@ namespace ScpServer private void finalMeasure(object sender, FormClosedEventArgs e) { + if (rb != null) + { + if (!rb.saved && rb.macros.Count > 0) + if (MessageBox.Show(Properties.Resources.SaveRecordedMacro, "DS4Windows", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + rb.btnSave_Click(this, null); + } if (lBMacroOn.Visible) ops.ChangeButtonText("Macro", macrostag.ToArray()); ops.Toggle_Bn(cbScanCode.Checked, cbToggle.Checked, lBMacroOn.Visible, macrorepeat); @@ -103,16 +114,22 @@ namespace ScpServer private void Key_Down_Action(object sender, KeyEventArgs e) { - lBMacroOn.Visible = false; - ops.ChangeButtonText(e.KeyCode.ToString(), e.KeyValue); - this.Close(); + if (rb == null) + { + lBMacroOn.Visible = false; + ops.ChangeButtonText(e.KeyCode.ToString(), e.KeyValue); + this.Close(); + } } private void Key_Press_Action(object sender, KeyEventArgs e) { - lBMacroOn.Visible = false; - ops.ChangeButtonText(e.KeyCode.ToString(), e.KeyValue); - this.Close(); + if (rb == null) + { + lBMacroOn.Visible = false; + ops.ChangeButtonText(e.KeyCode.ToString(), e.KeyValue); + this.Close(); + } } private void cbToggle_CheckedChanged(object sender, EventArgs e) @@ -122,11 +139,16 @@ namespace ScpServer } private void btnMacro_Click(object sender, EventArgs e) - { - RecordBox rb = new RecordBox(this); - rb.StartPosition = FormStartPosition.Manual; - rb.Location = new Point(this.Location.X + 580, this.Location.Y+ 55); - rb.ShowDialog(); + { + rb = new RecordBox(this, scpDevice); + rb.TopLevel = false; + rb.Dock = DockStyle.Fill; + rb.Visible = true; + Controls.Add(rb); + rb.BringToFront(); + //rb.StartPosition = FormStartPosition.Manual; + //rb.Location = new Point(this.Location.X + 580, this.Location.Y+ 55); + //rb.Show(); } protected override bool IsInputKey(Keys keyData) diff --git a/DS4Tool/MessageTextBox.cs b/DS4Tool/MessageTextBox.cs index 06a4f12..cf7f3e9 100644 --- a/DS4Tool/MessageTextBox.cs +++ b/DS4Tool/MessageTextBox.cs @@ -14,8 +14,8 @@ namespace ScpServer public partial class MessageTextBox : Form { public string oldfilename; - ScpForm yes; - public MessageTextBox(string name, ScpForm mainwindow) + DS4Form yes; + public MessageTextBox(string name, DS4Form mainwindow) { InitializeComponent(); oldfilename = name; diff --git a/DS4Tool/Options.Designer.cs b/DS4Tool/Options.Designer.cs index 467807a..7d45dfa 100644 --- a/DS4Tool/Options.Designer.cs +++ b/DS4Tool/Options.Designer.cs @@ -113,130 +113,130 @@ this.nUDSZ = new System.Windows.Forms.NumericUpDown(); this.nUDSX = new System.Windows.Forms.NumericUpDown(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); - this.advColorDialog = new ScpServer.AdvancedColorDialog(); this.tPController = new System.Windows.Forms.TabPage(); - this.lbSATrack = new System.Windows.Forms.Label(); - this.tBL2 = new System.Windows.Forms.TrackBar(); - this.tBR2 = new System.Windows.Forms.TrackBar(); - this.lbLSTrack = new System.Windows.Forms.Label(); - this.pBLSDeadzone = new System.Windows.Forms.PictureBox(); - this.lbRSTrack = new System.Windows.Forms.Label(); - this.pBRSDeadzone = new System.Windows.Forms.PictureBox(); - this.pBSADeadzone = new System.Windows.Forms.PictureBox(); - this.btnLSTrack = new System.Windows.Forms.Button(); - this.lbSATip = new System.Windows.Forms.Label(); - this.lbLSTip = new System.Windows.Forms.Label(); - this.lbR2Track = new System.Windows.Forms.Label(); - this.lbInputDelay = new System.Windows.Forms.Label(); - this.lbRSTip = new System.Windows.Forms.Label(); - this.btnRSTrack = new System.Windows.Forms.Button(); - this.btnSATrack = new System.Windows.Forms.Button(); - this.pBDelayTracker = new System.Windows.Forms.PictureBox(); - this.lbL2Track = new System.Windows.Forms.Label(); this.pnlSixaxis = new System.Windows.Forms.Panel(); - this.tBsixaxisAccelZ = new System.Windows.Forms.TrackBar(); - this.tBsixaxisAccelY = new System.Windows.Forms.TrackBar(); - this.tBsixaxisGyroZ = new System.Windows.Forms.TrackBar(); - this.tBsixaxisGyroY = new System.Windows.Forms.TrackBar(); - this.lb6Gryo = new System.Windows.Forms.Label(); - this.tBsixaxisGyroX = new System.Windows.Forms.TrackBar(); - this.lb6Accel = new System.Windows.Forms.Label(); this.tBsixaxisAccelX = new System.Windows.Forms.TrackBar(); + this.lb6Accel = new System.Windows.Forms.Label(); + this.tBsixaxisGyroX = new System.Windows.Forms.TrackBar(); + this.lb6Gryo = new System.Windows.Forms.Label(); + this.tBsixaxisGyroY = new System.Windows.Forms.TrackBar(); + this.tBsixaxisGyroZ = new System.Windows.Forms.TrackBar(); + this.tBsixaxisAccelY = new System.Windows.Forms.TrackBar(); + this.tBsixaxisAccelZ = new System.Windows.Forms.TrackBar(); + this.lbL2Track = new System.Windows.Forms.Label(); + this.pBDelayTracker = new System.Windows.Forms.PictureBox(); + this.btnSATrack = new System.Windows.Forms.Button(); + this.btnRSTrack = new System.Windows.Forms.Button(); + this.lbRSTip = new System.Windows.Forms.Label(); + this.lbInputDelay = new System.Windows.Forms.Label(); + this.lbR2Track = new System.Windows.Forms.Label(); + this.lbLSTip = new System.Windows.Forms.Label(); + this.lbSATip = new System.Windows.Forms.Label(); + this.btnLSTrack = new System.Windows.Forms.Button(); + this.pBSADeadzone = new System.Windows.Forms.PictureBox(); + this.pBRSDeadzone = new System.Windows.Forms.PictureBox(); + this.lbRSTrack = new System.Windows.Forms.Label(); + this.pBLSDeadzone = new System.Windows.Forms.PictureBox(); + this.lbLSTrack = new System.Windows.Forms.Label(); + this.tBR2 = new System.Windows.Forms.TrackBar(); + this.tBL2 = new System.Windows.Forms.TrackBar(); + this.lbSATrack = new System.Windows.Forms.Label(); this.tPShiftMod = new System.Windows.Forms.TabPage(); - this.pnlShiftSticks = new System.Windows.Forms.Panel(); - this.bnShiftR3 = new System.Windows.Forms.Button(); - this.bnShiftLSDown = new System.Windows.Forms.Button(); - this.bnShiftRSLeft = new System.Windows.Forms.Button(); - this.bnShiftLSRight = new System.Windows.Forms.Button(); - this.bnShiftRSRight = new System.Windows.Forms.Button(); - this.bnShiftLSLeft = new System.Windows.Forms.Button(); - this.bnShiftRSUp = new System.Windows.Forms.Button(); - this.bnShiftLSUp = new System.Windows.Forms.Button(); - this.bnShiftRSDown = new System.Windows.Forms.Button(); - this.bnShiftL3 = new System.Windows.Forms.Button(); - this.pBShiftSticks = new System.Windows.Forms.PictureBox(); - this.btnShiftFullView = new System.Windows.Forms.Button(); - this.pnlShiftMain = new System.Windows.Forms.Panel(); - this.bnShiftShare = new System.Windows.Forms.Button(); - this.bnShiftPS = new System.Windows.Forms.Button(); - this.bnShiftOptions = new System.Windows.Forms.Button(); - this.bnShiftL1 = new System.Windows.Forms.Button(); - this.bnShiftLeft = new System.Windows.Forms.Button(); - this.bnShiftR2 = new System.Windows.Forms.Button(); - this.bnShiftRight = new System.Windows.Forms.Button(); - this.bnShiftL2 = new System.Windows.Forms.Button(); - this.bnShiftDown = new System.Windows.Forms.Button(); - this.btnShiftLeftStick = new System.Windows.Forms.Button(); - this.bnShiftUp = new System.Windows.Forms.Button(); - this.bnShiftTriangle = new System.Windows.Forms.Button(); - this.btnShiftLightbar = new System.Windows.Forms.Button(); - this.bnShiftSquare = new System.Windows.Forms.Button(); - this.btnShiftRightStick = new System.Windows.Forms.Button(); - this.bnShiftCircle = new System.Windows.Forms.Button(); - this.bnShiftCross = new System.Windows.Forms.Button(); - this.bnShiftR1 = new System.Windows.Forms.Button(); - this.bnShiftTouchMulti = new System.Windows.Forms.Button(); - this.bnShiftTouchRight = new System.Windows.Forms.Button(); - this.bnShiftTouchLeft = new System.Windows.Forms.Button(); - this.bnShiftTouchUpper = new System.Windows.Forms.Button(); - this.pBShiftController = new System.Windows.Forms.PictureBox(); - this.lbtoUse = new System.Windows.Forms.Label(); - this.lbHold = new System.Windows.Forms.Label(); - this.lBShiftControls = new System.Windows.Forms.ListBox(); - this.cBShiftControl = new System.Windows.Forms.ComboBox(); - this.fLPShiftTiltControls = new System.Windows.Forms.FlowLayoutPanel(); - this.bnShiftGyroXN = new System.Windows.Forms.Button(); - this.bnShiftGyroXP = new System.Windows.Forms.Button(); - this.bnShiftGyroZP = new System.Windows.Forms.Button(); - this.bnShiftGyroZN = new System.Windows.Forms.Button(); this.lbShiftGryo = new System.Windows.Forms.Label(); + this.fLPShiftTiltControls = new System.Windows.Forms.FlowLayoutPanel(); + this.bnShiftGyroZN = new System.Windows.Forms.Button(); + this.bnShiftGyroZP = new System.Windows.Forms.Button(); + this.bnShiftGyroXP = new System.Windows.Forms.Button(); + this.bnShiftGyroXN = new System.Windows.Forms.Button(); + this.cBShiftControl = new System.Windows.Forms.ComboBox(); + this.lBShiftControls = new System.Windows.Forms.ListBox(); + this.lbHold = new System.Windows.Forms.Label(); + this.lbtoUse = new System.Windows.Forms.Label(); + this.pnlShiftMain = new System.Windows.Forms.Panel(); + this.pBShiftController = new System.Windows.Forms.PictureBox(); + this.bnShiftTouchUpper = new System.Windows.Forms.Button(); + this.bnShiftTouchLeft = new System.Windows.Forms.Button(); + this.bnShiftTouchRight = new System.Windows.Forms.Button(); + this.bnShiftTouchMulti = new System.Windows.Forms.Button(); + this.bnShiftR1 = new System.Windows.Forms.Button(); + this.bnShiftCross = new System.Windows.Forms.Button(); + this.bnShiftCircle = new System.Windows.Forms.Button(); + this.btnShiftRightStick = new System.Windows.Forms.Button(); + this.bnShiftSquare = new System.Windows.Forms.Button(); + this.btnShiftLightbar = new System.Windows.Forms.Button(); + this.bnShiftTriangle = new System.Windows.Forms.Button(); + this.bnShiftUp = new System.Windows.Forms.Button(); + this.btnShiftLeftStick = new System.Windows.Forms.Button(); + this.bnShiftDown = new System.Windows.Forms.Button(); + this.bnShiftL2 = new System.Windows.Forms.Button(); + this.bnShiftRight = new System.Windows.Forms.Button(); + this.bnShiftR2 = new System.Windows.Forms.Button(); + this.bnShiftLeft = new System.Windows.Forms.Button(); + this.bnShiftL1 = new System.Windows.Forms.Button(); + this.bnShiftOptions = new System.Windows.Forms.Button(); + this.bnShiftPS = new System.Windows.Forms.Button(); + this.bnShiftShare = new System.Windows.Forms.Button(); + this.pnlShiftSticks = new System.Windows.Forms.Panel(); + this.btnShiftFullView = new System.Windows.Forms.Button(); + this.pBShiftSticks = new System.Windows.Forms.PictureBox(); + this.bnShiftL3 = new System.Windows.Forms.Button(); + this.bnShiftRSDown = new System.Windows.Forms.Button(); + this.bnShiftLSUp = new System.Windows.Forms.Button(); + this.bnShiftRSUp = new System.Windows.Forms.Button(); + this.bnShiftLSLeft = new System.Windows.Forms.Button(); + this.bnShiftRSRight = new System.Windows.Forms.Button(); + this.bnShiftLSRight = new System.Windows.Forms.Button(); + this.bnShiftRSLeft = new System.Windows.Forms.Button(); + this.bnShiftLSDown = new System.Windows.Forms.Button(); + this.bnShiftR3 = new System.Windows.Forms.Button(); this.tPControls = new System.Windows.Forms.TabPage(); - this.pnlSticks = new System.Windows.Forms.Panel(); - this.bnR3 = new System.Windows.Forms.Button(); - this.bnLSDown = new System.Windows.Forms.Button(); - this.bnRSLeft = new System.Windows.Forms.Button(); - this.bnLSRight = new System.Windows.Forms.Button(); - this.bnRSRight = new System.Windows.Forms.Button(); - this.bnLSLeft = new System.Windows.Forms.Button(); - this.bnRSUp = new System.Windows.Forms.Button(); - this.bnLSUp = new System.Windows.Forms.Button(); - this.bnRSDown = new System.Windows.Forms.Button(); - this.bnL3 = new System.Windows.Forms.Button(); - this.pBSticks = new System.Windows.Forms.PictureBox(); - this.btnFullView = new System.Windows.Forms.Button(); - this.lbControlTip = new System.Windows.Forms.Label(); - this.lBControls = new System.Windows.Forms.ListBox(); - this.pnlMain = new System.Windows.Forms.Panel(); - this.bnR2 = new System.Windows.Forms.Button(); - this.bnL2 = new System.Windows.Forms.Button(); - this.bnShare = new System.Windows.Forms.Button(); - this.bnPS = new System.Windows.Forms.Button(); - this.bnOptions = new System.Windows.Forms.Button(); - this.bnL1 = new System.Windows.Forms.Button(); - this.bnLeft = new System.Windows.Forms.Button(); - this.bnRight = new System.Windows.Forms.Button(); - this.bnDown = new System.Windows.Forms.Button(); - this.btnLeftStick = new System.Windows.Forms.Button(); - this.bnUp = new System.Windows.Forms.Button(); - this.bnTriangle = new System.Windows.Forms.Button(); - this.btnLightbar = new System.Windows.Forms.Button(); - this.bnSquare = new System.Windows.Forms.Button(); - this.btnRightStick = new System.Windows.Forms.Button(); - this.bnCircle = new System.Windows.Forms.Button(); - this.bnCross = new System.Windows.Forms.Button(); - this.bnR1 = new System.Windows.Forms.Button(); - this.bnTouchMulti = new System.Windows.Forms.Button(); - this.bnTouchRight = new System.Windows.Forms.Button(); - this.bnTouchLeft = new System.Windows.Forms.Button(); - this.bnTouchUpper = new System.Windows.Forms.Button(); - this.pBController = new System.Windows.Forms.PictureBox(); - this.fLPTiltControls = new System.Windows.Forms.FlowLayoutPanel(); - this.bnGyroXN = new System.Windows.Forms.Button(); - this.bnGyroXP = new System.Windows.Forms.Button(); - this.bnGyroZP = new System.Windows.Forms.Button(); - this.bnGyroZN = new System.Windows.Forms.Button(); this.lbGryo = new System.Windows.Forms.Label(); + this.fLPTiltControls = new System.Windows.Forms.FlowLayoutPanel(); + this.bnGyroZN = new System.Windows.Forms.Button(); + this.bnGyroZP = new System.Windows.Forms.Button(); + this.bnGyroXP = new System.Windows.Forms.Button(); + this.bnGyroXN = new System.Windows.Forms.Button(); + this.pnlMain = new System.Windows.Forms.Panel(); + this.pBController = new System.Windows.Forms.PictureBox(); + this.bnTouchUpper = new System.Windows.Forms.Button(); + this.bnTouchLeft = new System.Windows.Forms.Button(); + this.bnTouchRight = new System.Windows.Forms.Button(); + this.bnTouchMulti = new System.Windows.Forms.Button(); + this.bnR1 = new System.Windows.Forms.Button(); + this.bnCross = new System.Windows.Forms.Button(); + this.bnCircle = new System.Windows.Forms.Button(); + this.btnRightStick = new System.Windows.Forms.Button(); + this.bnSquare = new System.Windows.Forms.Button(); + this.btnLightbar = new System.Windows.Forms.Button(); + this.bnTriangle = new System.Windows.Forms.Button(); + this.bnUp = new System.Windows.Forms.Button(); + this.btnLeftStick = new System.Windows.Forms.Button(); + this.bnDown = new System.Windows.Forms.Button(); + this.bnRight = new System.Windows.Forms.Button(); + this.bnLeft = new System.Windows.Forms.Button(); + this.bnL1 = new System.Windows.Forms.Button(); + this.bnOptions = new System.Windows.Forms.Button(); + this.bnPS = new System.Windows.Forms.Button(); + this.bnShare = new System.Windows.Forms.Button(); + this.bnL2 = new System.Windows.Forms.Button(); + this.bnR2 = new System.Windows.Forms.Button(); + this.lBControls = new System.Windows.Forms.ListBox(); + this.lbControlTip = new System.Windows.Forms.Label(); + this.pnlSticks = new System.Windows.Forms.Panel(); + this.btnFullView = new System.Windows.Forms.Button(); + this.pBSticks = new System.Windows.Forms.PictureBox(); + this.bnL3 = new System.Windows.Forms.Button(); + this.bnRSDown = new System.Windows.Forms.Button(); + this.bnLSUp = new System.Windows.Forms.Button(); + this.bnRSUp = new System.Windows.Forms.Button(); + this.bnLSLeft = new System.Windows.Forms.Button(); + this.bnRSRight = new System.Windows.Forms.Button(); + this.bnLSRight = new System.Windows.Forms.Button(); + this.bnRSLeft = new System.Windows.Forms.Button(); + this.bnLSDown = new System.Windows.Forms.Button(); + this.bnR3 = new System.Windows.Forms.Button(); this.tabControls = new System.Windows.Forms.TabControl(); + this.advColorDialog = new ScpServer.AdvancedColorDialog(); ((System.ComponentModel.ISupportInitialize)(this.nUDRainbow)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pBRainbow)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tBBlueBar)).BeginInit(); @@ -272,31 +272,31 @@ ((System.ComponentModel.ISupportInitialize)(this.nUDSZ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nUDSX)).BeginInit(); this.tPController.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.tBL2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBR2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBLSDeadzone)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBRSDeadzone)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBSADeadzone)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBDelayTracker)).BeginInit(); this.pnlSixaxis.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelZ)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelY)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroZ)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelX)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroZ)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelY)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelZ)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBDelayTracker)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBSADeadzone)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBRSDeadzone)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBLSDeadzone)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBR2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBL2)).BeginInit(); this.tPShiftMod.SuspendLayout(); - this.pnlShiftSticks.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pBShiftSticks)).BeginInit(); + this.fLPShiftTiltControls.SuspendLayout(); this.pnlShiftMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pBShiftController)).BeginInit(); - this.fLPShiftTiltControls.SuspendLayout(); + this.pnlShiftSticks.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pBShiftSticks)).BeginInit(); this.tPControls.SuspendLayout(); - this.pnlSticks.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pBSticks)).BeginInit(); + this.fLPTiltControls.SuspendLayout(); this.pnlMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pBController)).BeginInit(); - this.fLPTiltControls.SuspendLayout(); + this.pnlSticks.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pBSticks)).BeginInit(); this.tabControls.SuspendLayout(); this.SuspendLayout(); // @@ -878,9 +878,9 @@ this.gBLightbar.Controls.Add(this.lbspc); this.gBLightbar.Controls.Add(this.cBLightbyBattery); this.gBLightbar.Controls.Add(this.lbFlashAt); - this.gBLightbar.Controls.Add(this.pnlLowBattery); - this.gBLightbar.Controls.Add(this.pnlFull); this.gBLightbar.Controls.Add(this.pnlShift); + this.gBLightbar.Controls.Add(this.pnlFull); + this.gBLightbar.Controls.Add(this.pnlLowBattery); resources.ApplyResources(this.gBLightbar, "gBLightbar"); this.gBLightbar.Name = "gBLightbar"; this.gBLightbar.TabStop = false; @@ -1123,12 +1123,6 @@ // this.openFileDialog1.FileName = "openFileDialog1"; // - // advColorDialog - // - this.advColorDialog.AnyColor = true; - this.advColorDialog.Color = System.Drawing.Color.Blue; - this.advColorDialog.FullOpen = true; - // // tPController // this.tPController.Controls.Add(this.pnlSixaxis); @@ -1154,123 +1148,6 @@ this.tPController.Name = "tPController"; this.tPController.UseVisualStyleBackColor = true; // - // lbSATrack - // - this.lbSATrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - resources.ApplyResources(this.lbSATrack, "lbSATrack"); - this.lbSATrack.Name = "lbSATrack"; - this.lbSATrack.Click += new System.EventHandler(this.lbSATrack_Click); - // - // tBL2 - // - resources.ApplyResources(this.tBL2, "tBL2"); - this.tBL2.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.tBL2.Maximum = 255; - this.tBL2.Name = "tBL2"; - this.tBL2.TickFrequency = 127; - this.tBL2.TickStyle = System.Windows.Forms.TickStyle.None; - // - // tBR2 - // - resources.ApplyResources(this.tBR2, "tBR2"); - this.tBR2.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.tBR2.Maximum = 255; - this.tBR2.Name = "tBR2"; - this.tBR2.TickFrequency = 0; - this.tBR2.TickStyle = System.Windows.Forms.TickStyle.None; - // - // lbLSTrack - // - this.lbLSTrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - resources.ApplyResources(this.lbLSTrack, "lbLSTrack"); - this.lbLSTrack.Name = "lbLSTrack"; - // - // pBLSDeadzone - // - this.pBLSDeadzone.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.pBLSDeadzone, "pBLSDeadzone"); - this.pBLSDeadzone.Name = "pBLSDeadzone"; - this.pBLSDeadzone.TabStop = false; - // - // lbRSTrack - // - this.lbRSTrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - resources.ApplyResources(this.lbRSTrack, "lbRSTrack"); - this.lbRSTrack.Name = "lbRSTrack"; - // - // pBRSDeadzone - // - this.pBRSDeadzone.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.pBRSDeadzone, "pBRSDeadzone"); - this.pBRSDeadzone.Name = "pBRSDeadzone"; - this.pBRSDeadzone.TabStop = false; - // - // pBSADeadzone - // - this.pBSADeadzone.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.pBSADeadzone, "pBSADeadzone"); - this.pBSADeadzone.Name = "pBSADeadzone"; - this.pBSADeadzone.TabStop = false; - this.pBSADeadzone.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawCircle); - // - // btnLSTrack - // - this.btnLSTrack.BackColor = System.Drawing.Color.Black; - resources.ApplyResources(this.btnLSTrack, "btnLSTrack"); - this.btnLSTrack.Name = "btnLSTrack"; - this.btnLSTrack.UseVisualStyleBackColor = false; - // - // lbSATip - // - resources.ApplyResources(this.lbSATip, "lbSATip"); - this.lbSATip.Name = "lbSATip"; - this.lbSATip.Click += new System.EventHandler(this.lbSATip_Click); - // - // lbLSTip - // - resources.ApplyResources(this.lbLSTip, "lbLSTip"); - this.lbLSTip.Name = "lbLSTip"; - // - // lbR2Track - // - resources.ApplyResources(this.lbR2Track, "lbR2Track"); - this.lbR2Track.Name = "lbR2Track"; - // - // lbInputDelay - // - resources.ApplyResources(this.lbInputDelay, "lbInputDelay"); - this.lbInputDelay.Name = "lbInputDelay"; - // - // lbRSTip - // - resources.ApplyResources(this.lbRSTip, "lbRSTip"); - this.lbRSTip.Name = "lbRSTip"; - // - // btnRSTrack - // - this.btnRSTrack.BackColor = System.Drawing.Color.Black; - resources.ApplyResources(this.btnRSTrack, "btnRSTrack"); - this.btnRSTrack.Name = "btnRSTrack"; - this.btnRSTrack.UseVisualStyleBackColor = false; - // - // btnSATrack - // - this.btnSATrack.BackColor = System.Drawing.Color.Black; - resources.ApplyResources(this.btnSATrack, "btnSATrack"); - this.btnSATrack.Name = "btnSATrack"; - this.btnSATrack.UseVisualStyleBackColor = false; - // - // pBDelayTracker - // - resources.ApplyResources(this.pBDelayTracker, "pBDelayTracker"); - this.pBDelayTracker.Name = "pBDelayTracker"; - this.pBDelayTracker.TabStop = false; - // - // lbL2Track - // - resources.ApplyResources(this.lbL2Track, "lbL2Track"); - this.lbL2Track.Name = "lbL2Track"; - // // pnlSixaxis // this.pnlSixaxis.Controls.Add(this.tBsixaxisAccelX); @@ -1285,46 +1162,19 @@ this.pnlSixaxis.Name = "pnlSixaxis"; this.pnlSixaxis.Click += new System.EventHandler(this.SixaxisPanel_Click); // - // tBsixaxisAccelZ + // tBsixaxisAccelX // - resources.ApplyResources(this.tBsixaxisAccelZ, "tBsixaxisAccelZ"); - this.tBsixaxisAccelZ.BackColor = System.Drawing.Color.White; - this.tBsixaxisAccelZ.Maximum = 8500; - this.tBsixaxisAccelZ.Minimum = -8500; - this.tBsixaxisAccelZ.Name = "tBsixaxisAccelZ"; - this.tBsixaxisAccelZ.TickFrequency = 4750; + resources.ApplyResources(this.tBsixaxisAccelX, "tBsixaxisAccelX"); + this.tBsixaxisAccelX.BackColor = System.Drawing.Color.White; + this.tBsixaxisAccelX.Maximum = 8500; + this.tBsixaxisAccelX.Minimum = -8500; + this.tBsixaxisAccelX.Name = "tBsixaxisAccelX"; + this.tBsixaxisAccelX.TickFrequency = 4750; // - // tBsixaxisAccelY + // lb6Accel // - resources.ApplyResources(this.tBsixaxisAccelY, "tBsixaxisAccelY"); - this.tBsixaxisAccelY.BackColor = System.Drawing.Color.White; - this.tBsixaxisAccelY.Maximum = 8500; - this.tBsixaxisAccelY.Minimum = -8500; - this.tBsixaxisAccelY.Name = "tBsixaxisAccelY"; - this.tBsixaxisAccelY.TickFrequency = 4750; - // - // tBsixaxisGyroZ - // - resources.ApplyResources(this.tBsixaxisGyroZ, "tBsixaxisGyroZ"); - this.tBsixaxisGyroZ.BackColor = System.Drawing.Color.White; - this.tBsixaxisGyroZ.Maximum = 8500; - this.tBsixaxisGyroZ.Minimum = -8500; - this.tBsixaxisGyroZ.Name = "tBsixaxisGyroZ"; - this.tBsixaxisGyroZ.TickFrequency = 4750; - // - // tBsixaxisGyroY - // - resources.ApplyResources(this.tBsixaxisGyroY, "tBsixaxisGyroY"); - this.tBsixaxisGyroY.BackColor = System.Drawing.Color.White; - this.tBsixaxisGyroY.Maximum = 8500; - this.tBsixaxisGyroY.Minimum = -8500; - this.tBsixaxisGyroY.Name = "tBsixaxisGyroY"; - this.tBsixaxisGyroY.TickFrequency = 4750; - // - // lb6Gryo - // - resources.ApplyResources(this.lb6Gryo, "lb6Gryo"); - this.lb6Gryo.Name = "lb6Gryo"; + resources.ApplyResources(this.lb6Accel, "lb6Accel"); + this.lb6Accel.Name = "lb6Accel"; // // tBsixaxisGyroX // @@ -1335,19 +1185,163 @@ this.tBsixaxisGyroX.Name = "tBsixaxisGyroX"; this.tBsixaxisGyroX.TickFrequency = 4750; // - // lb6Accel + // lb6Gryo // - resources.ApplyResources(this.lb6Accel, "lb6Accel"); - this.lb6Accel.Name = "lb6Accel"; + resources.ApplyResources(this.lb6Gryo, "lb6Gryo"); + this.lb6Gryo.Name = "lb6Gryo"; // - // tBsixaxisAccelX + // tBsixaxisGyroY // - resources.ApplyResources(this.tBsixaxisAccelX, "tBsixaxisAccelX"); - this.tBsixaxisAccelX.BackColor = System.Drawing.Color.White; - this.tBsixaxisAccelX.Maximum = 8500; - this.tBsixaxisAccelX.Minimum = -8500; - this.tBsixaxisAccelX.Name = "tBsixaxisAccelX"; - this.tBsixaxisAccelX.TickFrequency = 4750; + resources.ApplyResources(this.tBsixaxisGyroY, "tBsixaxisGyroY"); + this.tBsixaxisGyroY.BackColor = System.Drawing.Color.White; + this.tBsixaxisGyroY.Maximum = 8500; + this.tBsixaxisGyroY.Minimum = -8500; + this.tBsixaxisGyroY.Name = "tBsixaxisGyroY"; + this.tBsixaxisGyroY.TickFrequency = 4750; + // + // tBsixaxisGyroZ + // + resources.ApplyResources(this.tBsixaxisGyroZ, "tBsixaxisGyroZ"); + this.tBsixaxisGyroZ.BackColor = System.Drawing.Color.White; + this.tBsixaxisGyroZ.Maximum = 8500; + this.tBsixaxisGyroZ.Minimum = -8500; + this.tBsixaxisGyroZ.Name = "tBsixaxisGyroZ"; + this.tBsixaxisGyroZ.TickFrequency = 4750; + // + // tBsixaxisAccelY + // + resources.ApplyResources(this.tBsixaxisAccelY, "tBsixaxisAccelY"); + this.tBsixaxisAccelY.BackColor = System.Drawing.Color.White; + this.tBsixaxisAccelY.Maximum = 8500; + this.tBsixaxisAccelY.Minimum = -8500; + this.tBsixaxisAccelY.Name = "tBsixaxisAccelY"; + this.tBsixaxisAccelY.TickFrequency = 4750; + // + // tBsixaxisAccelZ + // + resources.ApplyResources(this.tBsixaxisAccelZ, "tBsixaxisAccelZ"); + this.tBsixaxisAccelZ.BackColor = System.Drawing.Color.White; + this.tBsixaxisAccelZ.Maximum = 8500; + this.tBsixaxisAccelZ.Minimum = -8500; + this.tBsixaxisAccelZ.Name = "tBsixaxisAccelZ"; + this.tBsixaxisAccelZ.TickFrequency = 4750; + // + // lbL2Track + // + resources.ApplyResources(this.lbL2Track, "lbL2Track"); + this.lbL2Track.Name = "lbL2Track"; + // + // pBDelayTracker + // + resources.ApplyResources(this.pBDelayTracker, "pBDelayTracker"); + this.pBDelayTracker.Name = "pBDelayTracker"; + this.pBDelayTracker.TabStop = false; + // + // btnSATrack + // + this.btnSATrack.BackColor = System.Drawing.Color.Black; + resources.ApplyResources(this.btnSATrack, "btnSATrack"); + this.btnSATrack.Name = "btnSATrack"; + this.btnSATrack.UseVisualStyleBackColor = false; + // + // btnRSTrack + // + this.btnRSTrack.BackColor = System.Drawing.Color.Black; + resources.ApplyResources(this.btnRSTrack, "btnRSTrack"); + this.btnRSTrack.Name = "btnRSTrack"; + this.btnRSTrack.UseVisualStyleBackColor = false; + // + // lbRSTip + // + resources.ApplyResources(this.lbRSTip, "lbRSTip"); + this.lbRSTip.Name = "lbRSTip"; + // + // lbInputDelay + // + resources.ApplyResources(this.lbInputDelay, "lbInputDelay"); + this.lbInputDelay.Name = "lbInputDelay"; + // + // lbR2Track + // + resources.ApplyResources(this.lbR2Track, "lbR2Track"); + this.lbR2Track.Name = "lbR2Track"; + // + // lbLSTip + // + resources.ApplyResources(this.lbLSTip, "lbLSTip"); + this.lbLSTip.Name = "lbLSTip"; + // + // lbSATip + // + resources.ApplyResources(this.lbSATip, "lbSATip"); + this.lbSATip.Name = "lbSATip"; + this.lbSATip.Click += new System.EventHandler(this.lbSATip_Click); + // + // btnLSTrack + // + this.btnLSTrack.BackColor = System.Drawing.Color.Black; + resources.ApplyResources(this.btnLSTrack, "btnLSTrack"); + this.btnLSTrack.Name = "btnLSTrack"; + this.btnLSTrack.UseVisualStyleBackColor = false; + // + // pBSADeadzone + // + this.pBSADeadzone.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.pBSADeadzone, "pBSADeadzone"); + this.pBSADeadzone.Name = "pBSADeadzone"; + this.pBSADeadzone.TabStop = false; + this.pBSADeadzone.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawCircle); + // + // pBRSDeadzone + // + this.pBRSDeadzone.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.pBRSDeadzone, "pBRSDeadzone"); + this.pBRSDeadzone.Name = "pBRSDeadzone"; + this.pBRSDeadzone.TabStop = false; + // + // lbRSTrack + // + this.lbRSTrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + resources.ApplyResources(this.lbRSTrack, "lbRSTrack"); + this.lbRSTrack.Name = "lbRSTrack"; + // + // pBLSDeadzone + // + this.pBLSDeadzone.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.pBLSDeadzone, "pBLSDeadzone"); + this.pBLSDeadzone.Name = "pBLSDeadzone"; + this.pBLSDeadzone.TabStop = false; + // + // lbLSTrack + // + this.lbLSTrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + resources.ApplyResources(this.lbLSTrack, "lbLSTrack"); + this.lbLSTrack.Name = "lbLSTrack"; + // + // tBR2 + // + resources.ApplyResources(this.tBR2, "tBR2"); + this.tBR2.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.tBR2.Maximum = 255; + this.tBR2.Name = "tBR2"; + this.tBR2.TickFrequency = 0; + this.tBR2.TickStyle = System.Windows.Forms.TickStyle.None; + // + // tBL2 + // + resources.ApplyResources(this.tBL2, "tBL2"); + this.tBL2.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.tBL2.Maximum = 255; + this.tBL2.Name = "tBL2"; + this.tBL2.TickFrequency = 127; + this.tBL2.TickStyle = System.Windows.Forms.TickStyle.None; + // + // lbSATrack + // + this.lbSATrack.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + resources.ApplyResources(this.lbSATrack, "lbSATrack"); + this.lbSATrack.Name = "lbSATrack"; + this.lbSATrack.Click += new System.EventHandler(this.lbSATrack_Click); // // tPShiftMod // @@ -1363,570 +1357,47 @@ this.tPShiftMod.Name = "tPShiftMod"; this.tPShiftMod.UseVisualStyleBackColor = true; // - // pnlShiftSticks + // lbShiftGryo // - this.pnlShiftSticks.Controls.Add(this.btnShiftFullView); - this.pnlShiftSticks.Controls.Add(this.pBShiftSticks); - this.pnlShiftSticks.Controls.Add(this.bnShiftL3); - this.pnlShiftSticks.Controls.Add(this.bnShiftRSDown); - this.pnlShiftSticks.Controls.Add(this.bnShiftLSUp); - this.pnlShiftSticks.Controls.Add(this.bnShiftRSUp); - this.pnlShiftSticks.Controls.Add(this.bnShiftLSLeft); - this.pnlShiftSticks.Controls.Add(this.bnShiftRSRight); - this.pnlShiftSticks.Controls.Add(this.bnShiftLSRight); - this.pnlShiftSticks.Controls.Add(this.bnShiftRSLeft); - this.pnlShiftSticks.Controls.Add(this.bnShiftLSDown); - this.pnlShiftSticks.Controls.Add(this.bnShiftR3); - resources.ApplyResources(this.pnlShiftSticks, "pnlShiftSticks"); - this.pnlShiftSticks.Name = "pnlShiftSticks"; + resources.ApplyResources(this.lbShiftGryo, "lbShiftGryo"); + this.lbShiftGryo.Name = "lbShiftGryo"; // - // bnShiftR3 + // fLPShiftTiltControls // - this.bnShiftR3.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftR3, "bnShiftR3"); - this.bnShiftR3.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftR3.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftR3.FlatAppearance.BorderSize = 0; - this.bnShiftR3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR3.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftR3.Name = "bnShiftR3"; - this.bnShiftR3.UseVisualStyleBackColor = false; - this.bnShiftR3.Click += new System.EventHandler(this.Show_ControlsBn); + this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroZN); + this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroZP); + this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroXP); + this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroXN); + resources.ApplyResources(this.fLPShiftTiltControls, "fLPShiftTiltControls"); + this.fLPShiftTiltControls.Name = "fLPShiftTiltControls"; // - // bnShiftLSDown + // bnShiftGyroZN // - this.bnShiftLSDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftLSDown, "bnShiftLSDown"); - this.bnShiftLSDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftLSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftLSDown.FlatAppearance.BorderSize = 0; - this.bnShiftLSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftLSDown.Name = "bnShiftLSDown"; - this.bnShiftLSDown.UseVisualStyleBackColor = false; - this.bnShiftLSDown.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnShiftGyroZN, "bnShiftGyroZN"); + this.bnShiftGyroZN.Name = "bnShiftGyroZN"; + this.bnShiftGyroZN.UseVisualStyleBackColor = true; + this.bnShiftGyroZN.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnShiftRSLeft + // bnShiftGyroZP // - this.bnShiftRSLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftRSLeft, "bnShiftRSLeft"); - this.bnShiftRSLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftRSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftRSLeft.FlatAppearance.BorderSize = 0; - this.bnShiftRSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftRSLeft.Name = "bnShiftRSLeft"; - this.bnShiftRSLeft.UseVisualStyleBackColor = false; - this.bnShiftRSLeft.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnShiftGyroZP, "bnShiftGyroZP"); + this.bnShiftGyroZP.Name = "bnShiftGyroZP"; + this.bnShiftGyroZP.UseVisualStyleBackColor = true; + this.bnShiftGyroZP.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnShiftLSRight + // bnShiftGyroXP // - this.bnShiftLSRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftLSRight, "bnShiftLSRight"); - this.bnShiftLSRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftLSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftLSRight.FlatAppearance.BorderSize = 0; - this.bnShiftLSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftLSRight.Name = "bnShiftLSRight"; - this.bnShiftLSRight.UseVisualStyleBackColor = false; - this.bnShiftLSRight.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnShiftGyroXP, "bnShiftGyroXP"); + this.bnShiftGyroXP.Name = "bnShiftGyroXP"; + this.bnShiftGyroXP.UseVisualStyleBackColor = true; + this.bnShiftGyroXP.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnShiftRSRight + // bnShiftGyroXN // - this.bnShiftRSRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftRSRight, "bnShiftRSRight"); - this.bnShiftRSRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftRSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftRSRight.FlatAppearance.BorderSize = 0; - this.bnShiftRSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftRSRight.Name = "bnShiftRSRight"; - this.bnShiftRSRight.UseVisualStyleBackColor = false; - this.bnShiftRSRight.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftLSLeft - // - this.bnShiftLSLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftLSLeft, "bnShiftLSLeft"); - this.bnShiftLSLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftLSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftLSLeft.FlatAppearance.BorderSize = 0; - this.bnShiftLSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftLSLeft.Name = "bnShiftLSLeft"; - this.bnShiftLSLeft.UseVisualStyleBackColor = false; - this.bnShiftLSLeft.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftRSUp - // - this.bnShiftRSUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftRSUp, "bnShiftRSUp"); - this.bnShiftRSUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftRSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftRSUp.FlatAppearance.BorderSize = 0; - this.bnShiftRSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftRSUp.Name = "bnShiftRSUp"; - this.bnShiftRSUp.UseVisualStyleBackColor = false; - this.bnShiftRSUp.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftLSUp - // - this.bnShiftLSUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftLSUp, "bnShiftLSUp"); - this.bnShiftLSUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftLSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftLSUp.FlatAppearance.BorderSize = 0; - this.bnShiftLSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLSUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftLSUp.Name = "bnShiftLSUp"; - this.bnShiftLSUp.UseVisualStyleBackColor = false; - this.bnShiftLSUp.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftRSDown - // - this.bnShiftRSDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftRSDown, "bnShiftRSDown"); - this.bnShiftRSDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftRSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftRSDown.FlatAppearance.BorderSize = 0; - this.bnShiftRSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRSDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftRSDown.Name = "bnShiftRSDown"; - this.bnShiftRSDown.UseVisualStyleBackColor = false; - this.bnShiftRSDown.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftL3 - // - this.bnShiftL3.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftL3, "bnShiftL3"); - this.bnShiftL3.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftL3.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftL3.FlatAppearance.BorderSize = 0; - this.bnShiftL3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL3.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftL3.Name = "bnShiftL3"; - this.bnShiftL3.UseVisualStyleBackColor = false; - this.bnShiftL3.Click += new System.EventHandler(this.Show_ControlsBn); - // - // pBShiftSticks - // - resources.ApplyResources(this.pBShiftSticks, "pBShiftSticks"); - this.pBShiftSticks.Image = global::ScpServer.Properties.Resources.sticks; - this.pBShiftSticks.Name = "pBShiftSticks"; - this.pBShiftSticks.TabStop = false; - // - // btnShiftFullView - // - resources.ApplyResources(this.btnShiftFullView, "btnShiftFullView"); - this.btnShiftFullView.Name = "btnShiftFullView"; - this.btnShiftFullView.UseVisualStyleBackColor = true; - this.btnShiftFullView.Click += new System.EventHandler(this.btnShiftFullView_Click); - // - // pnlShiftMain - // - this.pnlShiftMain.Controls.Add(this.pBShiftController); - this.pnlShiftMain.Controls.Add(this.bnShiftTouchUpper); - this.pnlShiftMain.Controls.Add(this.bnShiftTouchLeft); - this.pnlShiftMain.Controls.Add(this.bnShiftTouchRight); - this.pnlShiftMain.Controls.Add(this.bnShiftTouchMulti); - this.pnlShiftMain.Controls.Add(this.bnShiftR1); - this.pnlShiftMain.Controls.Add(this.bnShiftCross); - this.pnlShiftMain.Controls.Add(this.bnShiftCircle); - this.pnlShiftMain.Controls.Add(this.btnShiftRightStick); - this.pnlShiftMain.Controls.Add(this.bnShiftSquare); - this.pnlShiftMain.Controls.Add(this.btnShiftLightbar); - this.pnlShiftMain.Controls.Add(this.bnShiftTriangle); - this.pnlShiftMain.Controls.Add(this.bnShiftUp); - this.pnlShiftMain.Controls.Add(this.btnShiftLeftStick); - this.pnlShiftMain.Controls.Add(this.bnShiftDown); - this.pnlShiftMain.Controls.Add(this.bnShiftL2); - this.pnlShiftMain.Controls.Add(this.bnShiftRight); - this.pnlShiftMain.Controls.Add(this.bnShiftR2); - this.pnlShiftMain.Controls.Add(this.bnShiftLeft); - this.pnlShiftMain.Controls.Add(this.bnShiftL1); - this.pnlShiftMain.Controls.Add(this.bnShiftOptions); - this.pnlShiftMain.Controls.Add(this.bnShiftPS); - this.pnlShiftMain.Controls.Add(this.bnShiftShare); - resources.ApplyResources(this.pnlShiftMain, "pnlShiftMain"); - this.pnlShiftMain.Name = "pnlShiftMain"; - // - // bnShiftShare - // - this.bnShiftShare.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftShare, "bnShiftShare"); - this.bnShiftShare.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftShare.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftShare.FlatAppearance.BorderSize = 0; - this.bnShiftShare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftShare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftShare.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftShare.Name = "bnShiftShare"; - this.bnShiftShare.UseVisualStyleBackColor = false; - this.bnShiftShare.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftPS - // - this.bnShiftPS.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftPS, "bnShiftPS"); - this.bnShiftPS.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftPS.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftPS.FlatAppearance.BorderSize = 0; - this.bnShiftPS.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftPS.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftPS.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftPS.Name = "bnShiftPS"; - this.bnShiftPS.UseVisualStyleBackColor = false; - this.bnShiftPS.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftOptions - // - this.bnShiftOptions.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftOptions, "bnShiftOptions"); - this.bnShiftOptions.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftOptions.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftOptions.FlatAppearance.BorderSize = 0; - this.bnShiftOptions.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftOptions.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftOptions.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftOptions.Name = "bnShiftOptions"; - this.bnShiftOptions.UseVisualStyleBackColor = false; - this.bnShiftOptions.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftL1 - // - this.bnShiftL1.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftL1, "bnShiftL1"); - this.bnShiftL1.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftL1.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftL1.FlatAppearance.BorderSize = 0; - this.bnShiftL1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL1.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftL1.Name = "bnShiftL1"; - this.bnShiftL1.UseVisualStyleBackColor = false; - this.bnShiftL1.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftLeft - // - this.bnShiftLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftLeft, "bnShiftLeft"); - this.bnShiftLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftLeft.FlatAppearance.BorderSize = 0; - this.bnShiftLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftLeft.Name = "bnShiftLeft"; - this.bnShiftLeft.UseVisualStyleBackColor = false; - this.bnShiftLeft.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftR2 - // - this.bnShiftR2.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftR2, "bnShiftR2"); - this.bnShiftR2.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftR2.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftR2.FlatAppearance.BorderSize = 0; - this.bnShiftR2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR2.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftR2.Name = "bnShiftR2"; - this.bnShiftR2.UseVisualStyleBackColor = false; - this.bnShiftR2.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftRight - // - this.bnShiftRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftRight, "bnShiftRight"); - this.bnShiftRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftRight.FlatAppearance.BorderSize = 0; - this.bnShiftRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftRight.Name = "bnShiftRight"; - this.bnShiftRight.UseVisualStyleBackColor = false; - this.bnShiftRight.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftL2 - // - this.bnShiftL2.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftL2, "bnShiftL2"); - this.bnShiftL2.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftL2.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftL2.FlatAppearance.BorderSize = 0; - this.bnShiftL2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftL2.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftL2.Name = "bnShiftL2"; - this.bnShiftL2.UseVisualStyleBackColor = false; - this.bnShiftL2.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftDown - // - this.bnShiftDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftDown, "bnShiftDown"); - this.bnShiftDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftDown.FlatAppearance.BorderSize = 0; - this.bnShiftDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftDown.Name = "bnShiftDown"; - this.bnShiftDown.UseVisualStyleBackColor = false; - this.bnShiftDown.Click += new System.EventHandler(this.Show_ControlsBn); - // - // btnShiftLeftStick - // - this.btnShiftLeftStick.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnShiftLeftStick, "btnShiftLeftStick"); - this.btnShiftLeftStick.Cursor = System.Windows.Forms.Cursors.Default; - this.btnShiftLeftStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnShiftLeftStick.FlatAppearance.BorderSize = 0; - this.btnShiftLeftStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnShiftLeftStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnShiftLeftStick.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnShiftLeftStick.Name = "btnShiftLeftStick"; - this.btnShiftLeftStick.UseVisualStyleBackColor = false; - // - // bnShiftUp - // - this.bnShiftUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftUp, "bnShiftUp"); - this.bnShiftUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftUp.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.bnShiftUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftUp.FlatAppearance.BorderSize = 0; - this.bnShiftUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftUp.Name = "bnShiftUp"; - this.bnShiftUp.UseVisualStyleBackColor = false; - this.bnShiftUp.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftTriangle - // - this.bnShiftTriangle.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftTriangle, "bnShiftTriangle"); - this.bnShiftTriangle.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftTriangle.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftTriangle.FlatAppearance.BorderSize = 0; - this.bnShiftTriangle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTriangle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTriangle.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftTriangle.Name = "bnShiftTriangle"; - this.bnShiftTriangle.UseVisualStyleBackColor = false; - this.bnShiftTriangle.Click += new System.EventHandler(this.Show_ControlsBn); - // - // btnShiftLightbar - // - this.btnShiftLightbar.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnShiftLightbar, "btnShiftLightbar"); - this.btnShiftLightbar.Cursor = System.Windows.Forms.Cursors.Default; - this.btnShiftLightbar.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnShiftLightbar.FlatAppearance.BorderSize = 0; - this.btnShiftLightbar.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnShiftLightbar.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnShiftLightbar.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnShiftLightbar.Name = "btnShiftLightbar"; - this.btnShiftLightbar.UseVisualStyleBackColor = false; - this.btnShiftLightbar.Click += new System.EventHandler(this.btnLightbar_Click); - // - // bnShiftSquare - // - this.bnShiftSquare.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftSquare, "bnShiftSquare"); - this.bnShiftSquare.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftSquare.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftSquare.FlatAppearance.BorderSize = 0; - this.bnShiftSquare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftSquare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftSquare.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftSquare.Name = "bnShiftSquare"; - this.bnShiftSquare.UseVisualStyleBackColor = false; - this.bnShiftSquare.Click += new System.EventHandler(this.Show_ControlsBn); - // - // btnShiftRightStick - // - this.btnShiftRightStick.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnShiftRightStick, "btnShiftRightStick"); - this.btnShiftRightStick.Cursor = System.Windows.Forms.Cursors.Default; - this.btnShiftRightStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnShiftRightStick.FlatAppearance.BorderSize = 0; - this.btnShiftRightStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnShiftRightStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnShiftRightStick.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnShiftRightStick.Name = "btnShiftRightStick"; - this.btnShiftRightStick.UseVisualStyleBackColor = false; - // - // bnShiftCircle - // - this.bnShiftCircle.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftCircle, "bnShiftCircle"); - this.bnShiftCircle.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftCircle.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftCircle.FlatAppearance.BorderSize = 0; - this.bnShiftCircle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftCircle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftCircle.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftCircle.Name = "bnShiftCircle"; - this.bnShiftCircle.UseVisualStyleBackColor = false; - this.bnShiftCircle.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftCross - // - this.bnShiftCross.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftCross, "bnShiftCross"); - this.bnShiftCross.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftCross.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftCross.FlatAppearance.BorderSize = 0; - this.bnShiftCross.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftCross.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftCross.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftCross.Name = "bnShiftCross"; - this.bnShiftCross.UseVisualStyleBackColor = false; - this.bnShiftCross.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftR1 - // - this.bnShiftR1.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftR1, "bnShiftR1"); - this.bnShiftR1.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftR1.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftR1.FlatAppearance.BorderSize = 0; - this.bnShiftR1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftR1.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftR1.Name = "bnShiftR1"; - this.bnShiftR1.UseVisualStyleBackColor = false; - this.bnShiftR1.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftTouchMulti - // - this.bnShiftTouchMulti.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftTouchMulti, "bnShiftTouchMulti"); - this.bnShiftTouchMulti.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftTouchMulti.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftTouchMulti.FlatAppearance.BorderSize = 0; - this.bnShiftTouchMulti.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchMulti.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchMulti.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftTouchMulti.Name = "bnShiftTouchMulti"; - this.bnShiftTouchMulti.UseVisualStyleBackColor = false; - this.bnShiftTouchMulti.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftTouchRight - // - this.bnShiftTouchRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftTouchRight, "bnShiftTouchRight"); - this.bnShiftTouchRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftTouchRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftTouchRight.FlatAppearance.BorderSize = 0; - this.bnShiftTouchRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftTouchRight.Name = "bnShiftTouchRight"; - this.bnShiftTouchRight.UseVisualStyleBackColor = false; - this.bnShiftTouchRight.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftTouchLeft - // - this.bnShiftTouchLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftTouchLeft, "bnShiftTouchLeft"); - this.bnShiftTouchLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftTouchLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftTouchLeft.FlatAppearance.BorderSize = 0; - this.bnShiftTouchLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftTouchLeft.Name = "bnShiftTouchLeft"; - this.bnShiftTouchLeft.UseVisualStyleBackColor = false; - this.bnShiftTouchLeft.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnShiftTouchUpper - // - this.bnShiftTouchUpper.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShiftTouchUpper, "bnShiftTouchUpper"); - this.bnShiftTouchUpper.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShiftTouchUpper.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShiftTouchUpper.FlatAppearance.BorderSize = 0; - this.bnShiftTouchUpper.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchUpper.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShiftTouchUpper.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShiftTouchUpper.Name = "bnShiftTouchUpper"; - this.bnShiftTouchUpper.UseVisualStyleBackColor = false; - this.bnShiftTouchUpper.Click += new System.EventHandler(this.Show_ControlsBn); - // - // pBShiftController - // - resources.ApplyResources(this.pBShiftController, "pBShiftController"); - this.pBShiftController.Image = global::ScpServer.Properties.Resources.DS4_Controller; - this.pBShiftController.Name = "pBShiftController"; - this.pBShiftController.TabStop = false; - // - // lbtoUse - // - resources.ApplyResources(this.lbtoUse, "lbtoUse"); - this.lbtoUse.Name = "lbtoUse"; - // - // lbHold - // - resources.ApplyResources(this.lbHold, "lbHold"); - this.lbHold.Name = "lbHold"; - // - // lBShiftControls - // - this.lBShiftControls.FormattingEnabled = true; - this.lBShiftControls.Items.AddRange(new object[] { - resources.GetString("lBShiftControls.Items"), - resources.GetString("lBShiftControls.Items1"), - resources.GetString("lBShiftControls.Items2"), - resources.GetString("lBShiftControls.Items3"), - resources.GetString("lBShiftControls.Items4"), - resources.GetString("lBShiftControls.Items5"), - resources.GetString("lBShiftControls.Items6"), - resources.GetString("lBShiftControls.Items7"), - resources.GetString("lBShiftControls.Items8"), - resources.GetString("lBShiftControls.Items9"), - resources.GetString("lBShiftControls.Items10"), - resources.GetString("lBShiftControls.Items11"), - resources.GetString("lBShiftControls.Items12"), - resources.GetString("lBShiftControls.Items13"), - resources.GetString("lBShiftControls.Items14"), - resources.GetString("lBShiftControls.Items15"), - resources.GetString("lBShiftControls.Items16"), - resources.GetString("lBShiftControls.Items17"), - resources.GetString("lBShiftControls.Items18"), - resources.GetString("lBShiftControls.Items19"), - resources.GetString("lBShiftControls.Items20"), - resources.GetString("lBShiftControls.Items21"), - resources.GetString("lBShiftControls.Items22"), - resources.GetString("lBShiftControls.Items23"), - resources.GetString("lBShiftControls.Items24"), - resources.GetString("lBShiftControls.Items25"), - resources.GetString("lBShiftControls.Items26"), - resources.GetString("lBShiftControls.Items27"), - resources.GetString("lBShiftControls.Items28"), - resources.GetString("lBShiftControls.Items29"), - resources.GetString("lBShiftControls.Items30"), - resources.GetString("lBShiftControls.Items31"), - resources.GetString("lBShiftControls.Items32")}); - resources.ApplyResources(this.lBShiftControls, "lBShiftControls"); - this.lBShiftControls.Name = "lBShiftControls"; - this.lBShiftControls.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_KeyDown); - this.lBShiftControls.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.List_MouseDoubleClick); + resources.ApplyResources(this.bnShiftGyroXN, "bnShiftGyroXN"); + this.bnShiftGyroXN.Name = "bnShiftGyroXN"; + this.bnShiftGyroXN.UseVisualStyleBackColor = true; + this.bnShiftGyroXN.Click += new System.EventHandler(this.Show_ControlsBn); // // cBShiftControl // @@ -1964,47 +1435,570 @@ this.cBShiftControl.Name = "cBShiftControl"; this.cBShiftControl.SelectedIndexChanged += new System.EventHandler(this.cBShiftControl_SelectedIndexChanged); // - // fLPShiftTiltControls + // lBShiftControls // - this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroZN); - this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroZP); - this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroXP); - this.fLPShiftTiltControls.Controls.Add(this.bnShiftGyroXN); - resources.ApplyResources(this.fLPShiftTiltControls, "fLPShiftTiltControls"); - this.fLPShiftTiltControls.Name = "fLPShiftTiltControls"; + this.lBShiftControls.FormattingEnabled = true; + resources.ApplyResources(this.lBShiftControls, "lBShiftControls"); + this.lBShiftControls.Items.AddRange(new object[] { + resources.GetString("lBShiftControls.Items"), + resources.GetString("lBShiftControls.Items1"), + resources.GetString("lBShiftControls.Items2"), + resources.GetString("lBShiftControls.Items3"), + resources.GetString("lBShiftControls.Items4"), + resources.GetString("lBShiftControls.Items5"), + resources.GetString("lBShiftControls.Items6"), + resources.GetString("lBShiftControls.Items7"), + resources.GetString("lBShiftControls.Items8"), + resources.GetString("lBShiftControls.Items9"), + resources.GetString("lBShiftControls.Items10"), + resources.GetString("lBShiftControls.Items11"), + resources.GetString("lBShiftControls.Items12"), + resources.GetString("lBShiftControls.Items13"), + resources.GetString("lBShiftControls.Items14"), + resources.GetString("lBShiftControls.Items15"), + resources.GetString("lBShiftControls.Items16"), + resources.GetString("lBShiftControls.Items17"), + resources.GetString("lBShiftControls.Items18"), + resources.GetString("lBShiftControls.Items19"), + resources.GetString("lBShiftControls.Items20"), + resources.GetString("lBShiftControls.Items21"), + resources.GetString("lBShiftControls.Items22"), + resources.GetString("lBShiftControls.Items23"), + resources.GetString("lBShiftControls.Items24"), + resources.GetString("lBShiftControls.Items25"), + resources.GetString("lBShiftControls.Items26"), + resources.GetString("lBShiftControls.Items27"), + resources.GetString("lBShiftControls.Items28"), + resources.GetString("lBShiftControls.Items29"), + resources.GetString("lBShiftControls.Items30"), + resources.GetString("lBShiftControls.Items31"), + resources.GetString("lBShiftControls.Items32")}); + this.lBShiftControls.Name = "lBShiftControls"; + this.lBShiftControls.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_KeyDown); + this.lBShiftControls.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.List_MouseDoubleClick); // - // bnShiftGyroXN + // lbHold // - resources.ApplyResources(this.bnShiftGyroXN, "bnShiftGyroXN"); - this.bnShiftGyroXN.Name = "bnShiftGyroXN"; - this.bnShiftGyroXN.UseVisualStyleBackColor = true; - this.bnShiftGyroXN.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.lbHold, "lbHold"); + this.lbHold.Name = "lbHold"; // - // bnShiftGyroXP + // lbtoUse // - resources.ApplyResources(this.bnShiftGyroXP, "bnShiftGyroXP"); - this.bnShiftGyroXP.Name = "bnShiftGyroXP"; - this.bnShiftGyroXP.UseVisualStyleBackColor = true; - this.bnShiftGyroXP.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.lbtoUse, "lbtoUse"); + this.lbtoUse.Name = "lbtoUse"; // - // bnShiftGyroZP + // pnlShiftMain // - resources.ApplyResources(this.bnShiftGyroZP, "bnShiftGyroZP"); - this.bnShiftGyroZP.Name = "bnShiftGyroZP"; - this.bnShiftGyroZP.UseVisualStyleBackColor = true; - this.bnShiftGyroZP.Click += new System.EventHandler(this.Show_ControlsBn); + this.pnlShiftMain.Controls.Add(this.pBShiftController); + this.pnlShiftMain.Controls.Add(this.bnShiftTouchUpper); + this.pnlShiftMain.Controls.Add(this.bnShiftTouchLeft); + this.pnlShiftMain.Controls.Add(this.bnShiftTouchRight); + this.pnlShiftMain.Controls.Add(this.bnShiftTouchMulti); + this.pnlShiftMain.Controls.Add(this.bnShiftR1); + this.pnlShiftMain.Controls.Add(this.bnShiftCross); + this.pnlShiftMain.Controls.Add(this.bnShiftCircle); + this.pnlShiftMain.Controls.Add(this.btnShiftRightStick); + this.pnlShiftMain.Controls.Add(this.bnShiftSquare); + this.pnlShiftMain.Controls.Add(this.btnShiftLightbar); + this.pnlShiftMain.Controls.Add(this.bnShiftTriangle); + this.pnlShiftMain.Controls.Add(this.bnShiftUp); + this.pnlShiftMain.Controls.Add(this.btnShiftLeftStick); + this.pnlShiftMain.Controls.Add(this.bnShiftDown); + this.pnlShiftMain.Controls.Add(this.bnShiftL2); + this.pnlShiftMain.Controls.Add(this.bnShiftRight); + this.pnlShiftMain.Controls.Add(this.bnShiftR2); + this.pnlShiftMain.Controls.Add(this.bnShiftLeft); + this.pnlShiftMain.Controls.Add(this.bnShiftL1); + this.pnlShiftMain.Controls.Add(this.bnShiftOptions); + this.pnlShiftMain.Controls.Add(this.bnShiftPS); + this.pnlShiftMain.Controls.Add(this.bnShiftShare); + resources.ApplyResources(this.pnlShiftMain, "pnlShiftMain"); + this.pnlShiftMain.Name = "pnlShiftMain"; // - // bnShiftGyroZN + // pBShiftController // - resources.ApplyResources(this.bnShiftGyroZN, "bnShiftGyroZN"); - this.bnShiftGyroZN.Name = "bnShiftGyroZN"; - this.bnShiftGyroZN.UseVisualStyleBackColor = true; - this.bnShiftGyroZN.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.pBShiftController, "pBShiftController"); + this.pBShiftController.Image = global::ScpServer.Properties.Resources.DS4_Controller; + this.pBShiftController.Name = "pBShiftController"; + this.pBShiftController.TabStop = false; // - // lbShiftGryo + // bnShiftTouchUpper // - resources.ApplyResources(this.lbShiftGryo, "lbShiftGryo"); - this.lbShiftGryo.Name = "lbShiftGryo"; + this.bnShiftTouchUpper.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftTouchUpper, "bnShiftTouchUpper"); + this.bnShiftTouchUpper.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftTouchUpper.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftTouchUpper.FlatAppearance.BorderSize = 0; + this.bnShiftTouchUpper.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchUpper.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchUpper.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftTouchUpper.Name = "bnShiftTouchUpper"; + this.bnShiftTouchUpper.UseVisualStyleBackColor = false; + this.bnShiftTouchUpper.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftTouchLeft + // + this.bnShiftTouchLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftTouchLeft, "bnShiftTouchLeft"); + this.bnShiftTouchLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftTouchLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftTouchLeft.FlatAppearance.BorderSize = 0; + this.bnShiftTouchLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftTouchLeft.Name = "bnShiftTouchLeft"; + this.bnShiftTouchLeft.UseVisualStyleBackColor = false; + this.bnShiftTouchLeft.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftTouchRight + // + this.bnShiftTouchRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftTouchRight, "bnShiftTouchRight"); + this.bnShiftTouchRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftTouchRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftTouchRight.FlatAppearance.BorderSize = 0; + this.bnShiftTouchRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftTouchRight.Name = "bnShiftTouchRight"; + this.bnShiftTouchRight.UseVisualStyleBackColor = false; + this.bnShiftTouchRight.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftTouchMulti + // + this.bnShiftTouchMulti.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftTouchMulti, "bnShiftTouchMulti"); + this.bnShiftTouchMulti.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftTouchMulti.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftTouchMulti.FlatAppearance.BorderSize = 0; + this.bnShiftTouchMulti.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchMulti.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTouchMulti.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftTouchMulti.Name = "bnShiftTouchMulti"; + this.bnShiftTouchMulti.UseVisualStyleBackColor = false; + this.bnShiftTouchMulti.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftR1 + // + this.bnShiftR1.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftR1, "bnShiftR1"); + this.bnShiftR1.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftR1.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftR1.FlatAppearance.BorderSize = 0; + this.bnShiftR1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR1.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftR1.Name = "bnShiftR1"; + this.bnShiftR1.UseVisualStyleBackColor = false; + this.bnShiftR1.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftCross + // + this.bnShiftCross.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftCross, "bnShiftCross"); + this.bnShiftCross.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftCross.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftCross.FlatAppearance.BorderSize = 0; + this.bnShiftCross.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftCross.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftCross.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftCross.Name = "bnShiftCross"; + this.bnShiftCross.UseVisualStyleBackColor = false; + this.bnShiftCross.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftCircle + // + this.bnShiftCircle.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftCircle, "bnShiftCircle"); + this.bnShiftCircle.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftCircle.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftCircle.FlatAppearance.BorderSize = 0; + this.bnShiftCircle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftCircle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftCircle.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftCircle.Name = "bnShiftCircle"; + this.bnShiftCircle.UseVisualStyleBackColor = false; + this.bnShiftCircle.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnShiftRightStick + // + this.btnShiftRightStick.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnShiftRightStick, "btnShiftRightStick"); + this.btnShiftRightStick.Cursor = System.Windows.Forms.Cursors.Default; + this.btnShiftRightStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnShiftRightStick.FlatAppearance.BorderSize = 0; + this.btnShiftRightStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnShiftRightStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnShiftRightStick.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnShiftRightStick.Name = "btnShiftRightStick"; + this.btnShiftRightStick.UseVisualStyleBackColor = false; + // + // bnShiftSquare + // + this.bnShiftSquare.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftSquare, "bnShiftSquare"); + this.bnShiftSquare.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftSquare.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftSquare.FlatAppearance.BorderSize = 0; + this.bnShiftSquare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftSquare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftSquare.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftSquare.Name = "bnShiftSquare"; + this.bnShiftSquare.UseVisualStyleBackColor = false; + this.bnShiftSquare.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnShiftLightbar + // + this.btnShiftLightbar.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnShiftLightbar, "btnShiftLightbar"); + this.btnShiftLightbar.Cursor = System.Windows.Forms.Cursors.Default; + this.btnShiftLightbar.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnShiftLightbar.FlatAppearance.BorderSize = 0; + this.btnShiftLightbar.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnShiftLightbar.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnShiftLightbar.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnShiftLightbar.Name = "btnShiftLightbar"; + this.btnShiftLightbar.UseVisualStyleBackColor = false; + this.btnShiftLightbar.Click += new System.EventHandler(this.btnLightbar_Click); + // + // bnShiftTriangle + // + this.bnShiftTriangle.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftTriangle, "bnShiftTriangle"); + this.bnShiftTriangle.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftTriangle.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftTriangle.FlatAppearance.BorderSize = 0; + this.bnShiftTriangle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTriangle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftTriangle.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftTriangle.Name = "bnShiftTriangle"; + this.bnShiftTriangle.UseVisualStyleBackColor = false; + this.bnShiftTriangle.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftUp + // + this.bnShiftUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftUp, "bnShiftUp"); + this.bnShiftUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftUp.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.bnShiftUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftUp.FlatAppearance.BorderSize = 0; + this.bnShiftUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftUp.Name = "bnShiftUp"; + this.bnShiftUp.UseVisualStyleBackColor = false; + this.bnShiftUp.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnShiftLeftStick + // + this.btnShiftLeftStick.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnShiftLeftStick, "btnShiftLeftStick"); + this.btnShiftLeftStick.Cursor = System.Windows.Forms.Cursors.Default; + this.btnShiftLeftStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnShiftLeftStick.FlatAppearance.BorderSize = 0; + this.btnShiftLeftStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnShiftLeftStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnShiftLeftStick.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnShiftLeftStick.Name = "btnShiftLeftStick"; + this.btnShiftLeftStick.UseVisualStyleBackColor = false; + // + // bnShiftDown + // + this.bnShiftDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftDown, "bnShiftDown"); + this.bnShiftDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftDown.FlatAppearance.BorderSize = 0; + this.bnShiftDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftDown.Name = "bnShiftDown"; + this.bnShiftDown.UseVisualStyleBackColor = false; + this.bnShiftDown.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftL2 + // + this.bnShiftL2.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftL2, "bnShiftL2"); + this.bnShiftL2.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftL2.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftL2.FlatAppearance.BorderSize = 0; + this.bnShiftL2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL2.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftL2.Name = "bnShiftL2"; + this.bnShiftL2.UseVisualStyleBackColor = false; + this.bnShiftL2.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftRight + // + this.bnShiftRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftRight, "bnShiftRight"); + this.bnShiftRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftRight.FlatAppearance.BorderSize = 0; + this.bnShiftRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftRight.Name = "bnShiftRight"; + this.bnShiftRight.UseVisualStyleBackColor = false; + this.bnShiftRight.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftR2 + // + this.bnShiftR2.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftR2, "bnShiftR2"); + this.bnShiftR2.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftR2.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftR2.FlatAppearance.BorderSize = 0; + this.bnShiftR2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR2.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftR2.Name = "bnShiftR2"; + this.bnShiftR2.UseVisualStyleBackColor = false; + this.bnShiftR2.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftLeft + // + this.bnShiftLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftLeft, "bnShiftLeft"); + this.bnShiftLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftLeft.FlatAppearance.BorderSize = 0; + this.bnShiftLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftLeft.Name = "bnShiftLeft"; + this.bnShiftLeft.UseVisualStyleBackColor = false; + this.bnShiftLeft.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftL1 + // + this.bnShiftL1.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftL1, "bnShiftL1"); + this.bnShiftL1.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftL1.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftL1.FlatAppearance.BorderSize = 0; + this.bnShiftL1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL1.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftL1.Name = "bnShiftL1"; + this.bnShiftL1.UseVisualStyleBackColor = false; + this.bnShiftL1.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftOptions + // + this.bnShiftOptions.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftOptions, "bnShiftOptions"); + this.bnShiftOptions.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftOptions.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftOptions.FlatAppearance.BorderSize = 0; + this.bnShiftOptions.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftOptions.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftOptions.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftOptions.Name = "bnShiftOptions"; + this.bnShiftOptions.UseVisualStyleBackColor = false; + this.bnShiftOptions.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftPS + // + this.bnShiftPS.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftPS, "bnShiftPS"); + this.bnShiftPS.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftPS.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftPS.FlatAppearance.BorderSize = 0; + this.bnShiftPS.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftPS.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftPS.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftPS.Name = "bnShiftPS"; + this.bnShiftPS.UseVisualStyleBackColor = false; + this.bnShiftPS.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftShare + // + this.bnShiftShare.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftShare, "bnShiftShare"); + this.bnShiftShare.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftShare.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftShare.FlatAppearance.BorderSize = 0; + this.bnShiftShare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftShare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftShare.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftShare.Name = "bnShiftShare"; + this.bnShiftShare.UseVisualStyleBackColor = false; + this.bnShiftShare.Click += new System.EventHandler(this.Show_ControlsBn); + // + // pnlShiftSticks + // + this.pnlShiftSticks.Controls.Add(this.btnShiftFullView); + this.pnlShiftSticks.Controls.Add(this.pBShiftSticks); + this.pnlShiftSticks.Controls.Add(this.bnShiftL3); + this.pnlShiftSticks.Controls.Add(this.bnShiftRSDown); + this.pnlShiftSticks.Controls.Add(this.bnShiftLSUp); + this.pnlShiftSticks.Controls.Add(this.bnShiftRSUp); + this.pnlShiftSticks.Controls.Add(this.bnShiftLSLeft); + this.pnlShiftSticks.Controls.Add(this.bnShiftRSRight); + this.pnlShiftSticks.Controls.Add(this.bnShiftLSRight); + this.pnlShiftSticks.Controls.Add(this.bnShiftRSLeft); + this.pnlShiftSticks.Controls.Add(this.bnShiftLSDown); + this.pnlShiftSticks.Controls.Add(this.bnShiftR3); + resources.ApplyResources(this.pnlShiftSticks, "pnlShiftSticks"); + this.pnlShiftSticks.Name = "pnlShiftSticks"; + // + // btnShiftFullView + // + resources.ApplyResources(this.btnShiftFullView, "btnShiftFullView"); + this.btnShiftFullView.Name = "btnShiftFullView"; + this.btnShiftFullView.UseVisualStyleBackColor = true; + this.btnShiftFullView.Click += new System.EventHandler(this.btnShiftFullView_Click); + // + // pBShiftSticks + // + resources.ApplyResources(this.pBShiftSticks, "pBShiftSticks"); + this.pBShiftSticks.Image = global::ScpServer.Properties.Resources.sticks; + this.pBShiftSticks.Name = "pBShiftSticks"; + this.pBShiftSticks.TabStop = false; + // + // bnShiftL3 + // + this.bnShiftL3.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftL3, "bnShiftL3"); + this.bnShiftL3.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftL3.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftL3.FlatAppearance.BorderSize = 0; + this.bnShiftL3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftL3.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftL3.Name = "bnShiftL3"; + this.bnShiftL3.UseVisualStyleBackColor = false; + this.bnShiftL3.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftRSDown + // + this.bnShiftRSDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftRSDown, "bnShiftRSDown"); + this.bnShiftRSDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftRSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftRSDown.FlatAppearance.BorderSize = 0; + this.bnShiftRSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftRSDown.Name = "bnShiftRSDown"; + this.bnShiftRSDown.UseVisualStyleBackColor = false; + this.bnShiftRSDown.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftLSUp + // + this.bnShiftLSUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftLSUp, "bnShiftLSUp"); + this.bnShiftLSUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftLSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftLSUp.FlatAppearance.BorderSize = 0; + this.bnShiftLSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftLSUp.Name = "bnShiftLSUp"; + this.bnShiftLSUp.UseVisualStyleBackColor = false; + this.bnShiftLSUp.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftRSUp + // + this.bnShiftRSUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftRSUp, "bnShiftRSUp"); + this.bnShiftRSUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftRSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftRSUp.FlatAppearance.BorderSize = 0; + this.bnShiftRSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftRSUp.Name = "bnShiftRSUp"; + this.bnShiftRSUp.UseVisualStyleBackColor = false; + this.bnShiftRSUp.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftLSLeft + // + this.bnShiftLSLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftLSLeft, "bnShiftLSLeft"); + this.bnShiftLSLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftLSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftLSLeft.FlatAppearance.BorderSize = 0; + this.bnShiftLSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftLSLeft.Name = "bnShiftLSLeft"; + this.bnShiftLSLeft.UseVisualStyleBackColor = false; + this.bnShiftLSLeft.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftRSRight + // + this.bnShiftRSRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftRSRight, "bnShiftRSRight"); + this.bnShiftRSRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftRSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftRSRight.FlatAppearance.BorderSize = 0; + this.bnShiftRSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftRSRight.Name = "bnShiftRSRight"; + this.bnShiftRSRight.UseVisualStyleBackColor = false; + this.bnShiftRSRight.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftLSRight + // + this.bnShiftLSRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftLSRight, "bnShiftLSRight"); + this.bnShiftLSRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftLSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftLSRight.FlatAppearance.BorderSize = 0; + this.bnShiftLSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftLSRight.Name = "bnShiftLSRight"; + this.bnShiftLSRight.UseVisualStyleBackColor = false; + this.bnShiftLSRight.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftRSLeft + // + this.bnShiftRSLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftRSLeft, "bnShiftRSLeft"); + this.bnShiftRSLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftRSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftRSLeft.FlatAppearance.BorderSize = 0; + this.bnShiftRSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftRSLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftRSLeft.Name = "bnShiftRSLeft"; + this.bnShiftRSLeft.UseVisualStyleBackColor = false; + this.bnShiftRSLeft.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftLSDown + // + this.bnShiftLSDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftLSDown, "bnShiftLSDown"); + this.bnShiftLSDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftLSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftLSDown.FlatAppearance.BorderSize = 0; + this.bnShiftLSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftLSDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftLSDown.Name = "bnShiftLSDown"; + this.bnShiftLSDown.UseVisualStyleBackColor = false; + this.bnShiftLSDown.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShiftR3 + // + this.bnShiftR3.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShiftR3, "bnShiftR3"); + this.bnShiftR3.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShiftR3.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShiftR3.FlatAppearance.BorderSize = 0; + this.bnShiftR3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShiftR3.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShiftR3.Name = "bnShiftR3"; + this.bnShiftR3.UseVisualStyleBackColor = false; + this.bnShiftR3.Click += new System.EventHandler(this.Show_ControlsBn); // // tPControls // @@ -2018,185 +2012,404 @@ this.tPControls.Name = "tPControls"; this.tPControls.UseVisualStyleBackColor = true; // - // pnlSticks + // lbGryo // - this.pnlSticks.Controls.Add(this.btnFullView); - this.pnlSticks.Controls.Add(this.pBSticks); - this.pnlSticks.Controls.Add(this.bnL3); - this.pnlSticks.Controls.Add(this.bnRSDown); - this.pnlSticks.Controls.Add(this.bnLSUp); - this.pnlSticks.Controls.Add(this.bnRSUp); - this.pnlSticks.Controls.Add(this.bnLSLeft); - this.pnlSticks.Controls.Add(this.bnRSRight); - this.pnlSticks.Controls.Add(this.bnLSRight); - this.pnlSticks.Controls.Add(this.bnRSLeft); - this.pnlSticks.Controls.Add(this.bnLSDown); - this.pnlSticks.Controls.Add(this.bnR3); - resources.ApplyResources(this.pnlSticks, "pnlSticks"); - this.pnlSticks.Name = "pnlSticks"; + resources.ApplyResources(this.lbGryo, "lbGryo"); + this.lbGryo.Name = "lbGryo"; // - // bnR3 + // fLPTiltControls // - this.bnR3.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnR3, "bnR3"); - this.bnR3.Cursor = System.Windows.Forms.Cursors.Default; - this.bnR3.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnR3.FlatAppearance.BorderSize = 0; - this.bnR3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnR3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnR3.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnR3.Name = "bnR3"; - this.bnR3.UseVisualStyleBackColor = false; - this.bnR3.Click += new System.EventHandler(this.Show_ControlsBn); + this.fLPTiltControls.Controls.Add(this.bnGyroZN); + this.fLPTiltControls.Controls.Add(this.bnGyroZP); + this.fLPTiltControls.Controls.Add(this.bnGyroXP); + this.fLPTiltControls.Controls.Add(this.bnGyroXN); + resources.ApplyResources(this.fLPTiltControls, "fLPTiltControls"); + this.fLPTiltControls.Name = "fLPTiltControls"; // - // bnLSDown + // bnGyroZN // - this.bnLSDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnLSDown, "bnLSDown"); - this.bnLSDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnLSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnLSDown.FlatAppearance.BorderSize = 0; - this.bnLSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnLSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnLSDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnLSDown.Name = "bnLSDown"; - this.bnLSDown.UseVisualStyleBackColor = false; - this.bnLSDown.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnGyroZN, "bnGyroZN"); + this.bnGyroZN.Name = "bnGyroZN"; + this.bnGyroZN.UseVisualStyleBackColor = true; + this.bnGyroZN.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnRSLeft + // bnGyroZP // - this.bnRSLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnRSLeft, "bnRSLeft"); - this.bnRSLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnRSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnRSLeft.FlatAppearance.BorderSize = 0; - this.bnRSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnRSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnRSLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnRSLeft.Name = "bnRSLeft"; - this.bnRSLeft.UseVisualStyleBackColor = false; - this.bnRSLeft.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnGyroZP, "bnGyroZP"); + this.bnGyroZP.Name = "bnGyroZP"; + this.bnGyroZP.UseVisualStyleBackColor = true; + this.bnGyroZP.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnLSRight + // bnGyroXP // - this.bnLSRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnLSRight, "bnLSRight"); - this.bnLSRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnLSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnLSRight.FlatAppearance.BorderSize = 0; - this.bnLSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnLSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnLSRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnLSRight.Name = "bnLSRight"; - this.bnLSRight.UseVisualStyleBackColor = false; - this.bnLSRight.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnGyroXP, "bnGyroXP"); + this.bnGyroXP.Name = "bnGyroXP"; + this.bnGyroXP.UseVisualStyleBackColor = true; + this.bnGyroXP.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnRSRight + // bnGyroXN // - this.bnRSRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnRSRight, "bnRSRight"); - this.bnRSRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnRSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnRSRight.FlatAppearance.BorderSize = 0; - this.bnRSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnRSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnRSRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnRSRight.Name = "bnRSRight"; - this.bnRSRight.UseVisualStyleBackColor = false; - this.bnRSRight.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.bnGyroXN, "bnGyroXN"); + this.bnGyroXN.Name = "bnGyroXN"; + this.bnGyroXN.UseVisualStyleBackColor = true; + this.bnGyroXN.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnLSLeft + // pnlMain // - this.bnLSLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnLSLeft, "bnLSLeft"); - this.bnLSLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnLSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnLSLeft.FlatAppearance.BorderSize = 0; - this.bnLSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnLSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnLSLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnLSLeft.Name = "bnLSLeft"; - this.bnLSLeft.UseVisualStyleBackColor = false; - this.bnLSLeft.Click += new System.EventHandler(this.Show_ControlsBn); + this.pnlMain.Controls.Add(this.pBController); + this.pnlMain.Controls.Add(this.bnTouchUpper); + this.pnlMain.Controls.Add(this.bnTouchLeft); + this.pnlMain.Controls.Add(this.bnTouchRight); + this.pnlMain.Controls.Add(this.bnTouchMulti); + this.pnlMain.Controls.Add(this.bnR1); + this.pnlMain.Controls.Add(this.bnCross); + this.pnlMain.Controls.Add(this.bnCircle); + this.pnlMain.Controls.Add(this.btnRightStick); + this.pnlMain.Controls.Add(this.bnSquare); + this.pnlMain.Controls.Add(this.btnLightbar); + this.pnlMain.Controls.Add(this.bnTriangle); + this.pnlMain.Controls.Add(this.bnUp); + this.pnlMain.Controls.Add(this.btnLeftStick); + this.pnlMain.Controls.Add(this.bnDown); + this.pnlMain.Controls.Add(this.bnRight); + this.pnlMain.Controls.Add(this.bnLeft); + this.pnlMain.Controls.Add(this.bnL1); + this.pnlMain.Controls.Add(this.bnOptions); + this.pnlMain.Controls.Add(this.bnPS); + this.pnlMain.Controls.Add(this.bnShare); + this.pnlMain.Controls.Add(this.bnL2); + this.pnlMain.Controls.Add(this.bnR2); + resources.ApplyResources(this.pnlMain, "pnlMain"); + this.pnlMain.Name = "pnlMain"; // - // bnRSUp + // pBController // - this.bnRSUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnRSUp, "bnRSUp"); - this.bnRSUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnRSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnRSUp.FlatAppearance.BorderSize = 0; - this.bnRSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnRSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnRSUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnRSUp.Name = "bnRSUp"; - this.bnRSUp.UseVisualStyleBackColor = false; - this.bnRSUp.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.pBController, "pBController"); + this.pBController.Image = global::ScpServer.Properties.Resources.DS4_Controller; + this.pBController.Name = "pBController"; + this.pBController.TabStop = false; // - // bnLSUp + // bnTouchUpper // - this.bnLSUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnLSUp, "bnLSUp"); - this.bnLSUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnLSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnLSUp.FlatAppearance.BorderSize = 0; - this.bnLSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnLSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnLSUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnLSUp.Name = "bnLSUp"; - this.bnLSUp.UseVisualStyleBackColor = false; - this.bnLSUp.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchUpper.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnTouchUpper, "bnTouchUpper"); + this.bnTouchUpper.Cursor = System.Windows.Forms.Cursors.Default; + this.bnTouchUpper.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnTouchUpper.FlatAppearance.BorderSize = 0; + this.bnTouchUpper.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnTouchUpper.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnTouchUpper.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnTouchUpper.Name = "bnTouchUpper"; + this.bnTouchUpper.UseVisualStyleBackColor = false; + this.bnTouchUpper.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchUpper.MouseLeave += new System.EventHandler(this.Toucpad_Leave); + this.bnTouchUpper.MouseHover += new System.EventHandler(this.bnTouchUpper_MouseHover); // - // bnRSDown + // bnTouchLeft // - this.bnRSDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnRSDown, "bnRSDown"); - this.bnRSDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnRSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnRSDown.FlatAppearance.BorderSize = 0; - this.bnRSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnRSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnRSDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnRSDown.Name = "bnRSDown"; - this.bnRSDown.UseVisualStyleBackColor = false; - this.bnRSDown.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnTouchLeft, "bnTouchLeft"); + this.bnTouchLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnTouchLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnTouchLeft.FlatAppearance.BorderSize = 0; + this.bnTouchLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnTouchLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnTouchLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnTouchLeft.Name = "bnTouchLeft"; + this.bnTouchLeft.UseVisualStyleBackColor = false; + this.bnTouchLeft.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchLeft.MouseLeave += new System.EventHandler(this.Toucpad_Leave); + this.bnTouchLeft.MouseHover += new System.EventHandler(this.bnTouchLeft_MouseHover); // - // bnL3 + // bnTouchRight // - this.bnL3.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnL3, "bnL3"); - this.bnL3.Cursor = System.Windows.Forms.Cursors.Default; - this.bnL3.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnL3.FlatAppearance.BorderSize = 0; - this.bnL3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnL3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnL3.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnL3.Name = "bnL3"; - this.bnL3.UseVisualStyleBackColor = false; - this.bnL3.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnTouchRight, "bnTouchRight"); + this.bnTouchRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnTouchRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnTouchRight.FlatAppearance.BorderSize = 0; + this.bnTouchRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnTouchRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnTouchRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnTouchRight.Name = "bnTouchRight"; + this.bnTouchRight.UseVisualStyleBackColor = false; + this.bnTouchRight.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchRight.MouseLeave += new System.EventHandler(this.Toucpad_Leave); + this.bnTouchRight.MouseHover += new System.EventHandler(this.bnTouchRight_MouseHover); // - // pBSticks + // bnTouchMulti // - resources.ApplyResources(this.pBSticks, "pBSticks"); - this.pBSticks.Image = global::ScpServer.Properties.Resources.sticks; - this.pBSticks.Name = "pBSticks"; - this.pBSticks.TabStop = false; + this.bnTouchMulti.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnTouchMulti, "bnTouchMulti"); + this.bnTouchMulti.Cursor = System.Windows.Forms.Cursors.Default; + this.bnTouchMulti.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnTouchMulti.FlatAppearance.BorderSize = 0; + this.bnTouchMulti.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnTouchMulti.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnTouchMulti.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnTouchMulti.Name = "bnTouchMulti"; + this.bnTouchMulti.UseVisualStyleBackColor = false; + this.bnTouchMulti.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnTouchMulti.MouseLeave += new System.EventHandler(this.Toucpad_Leave); + this.bnTouchMulti.MouseHover += new System.EventHandler(this.bnTouchMulti_MouseHover); // - // btnFullView + // bnR1 // - resources.ApplyResources(this.btnFullView, "btnFullView"); - this.btnFullView.Name = "btnFullView"; - this.btnFullView.UseVisualStyleBackColor = true; - this.btnFullView.Click += new System.EventHandler(this.btnFullView_Click); + this.bnR1.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnR1, "bnR1"); + this.bnR1.Cursor = System.Windows.Forms.Cursors.Default; + this.bnR1.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnR1.FlatAppearance.BorderSize = 0; + this.bnR1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnR1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnR1.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnR1.Name = "bnR1"; + this.bnR1.UseVisualStyleBackColor = false; + this.bnR1.Click += new System.EventHandler(this.Show_ControlsBn); // - // lbControlTip + // bnCross // - resources.ApplyResources(this.lbControlTip, "lbControlTip"); - this.lbControlTip.Name = "lbControlTip"; + this.bnCross.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnCross, "bnCross"); + this.bnCross.Cursor = System.Windows.Forms.Cursors.Default; + this.bnCross.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnCross.FlatAppearance.BorderSize = 0; + this.bnCross.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnCross.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnCross.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnCross.Name = "bnCross"; + this.bnCross.UseVisualStyleBackColor = false; + this.bnCross.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnCircle + // + this.bnCircle.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnCircle, "bnCircle"); + this.bnCircle.Cursor = System.Windows.Forms.Cursors.Default; + this.bnCircle.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnCircle.FlatAppearance.BorderSize = 0; + this.bnCircle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnCircle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnCircle.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnCircle.Name = "bnCircle"; + this.bnCircle.UseVisualStyleBackColor = false; + this.bnCircle.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnRightStick + // + this.btnRightStick.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnRightStick, "btnRightStick"); + this.btnRightStick.Cursor = System.Windows.Forms.Cursors.Default; + this.btnRightStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnRightStick.FlatAppearance.BorderSize = 0; + this.btnRightStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnRightStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnRightStick.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnRightStick.Name = "btnRightStick"; + this.btnRightStick.UseVisualStyleBackColor = false; + this.btnRightStick.Click += new System.EventHandler(this.btnSticks_Enter); + // + // bnSquare + // + this.bnSquare.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnSquare, "bnSquare"); + this.bnSquare.Cursor = System.Windows.Forms.Cursors.Default; + this.bnSquare.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnSquare.FlatAppearance.BorderSize = 0; + this.bnSquare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnSquare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnSquare.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnSquare.Name = "bnSquare"; + this.bnSquare.UseVisualStyleBackColor = false; + this.bnSquare.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnLightbar + // + this.btnLightbar.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnLightbar, "btnLightbar"); + this.btnLightbar.Cursor = System.Windows.Forms.Cursors.Default; + this.btnLightbar.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnLightbar.FlatAppearance.BorderSize = 0; + this.btnLightbar.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnLightbar.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnLightbar.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnLightbar.Name = "btnLightbar"; + this.btnLightbar.UseVisualStyleBackColor = false; + this.btnLightbar.Click += new System.EventHandler(this.btnLightbar_Click); + // + // bnTriangle + // + this.bnTriangle.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnTriangle, "bnTriangle"); + this.bnTriangle.Cursor = System.Windows.Forms.Cursors.Default; + this.bnTriangle.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnTriangle.FlatAppearance.BorderSize = 0; + this.bnTriangle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnTriangle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnTriangle.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnTriangle.Name = "bnTriangle"; + this.bnTriangle.UseVisualStyleBackColor = false; + this.bnTriangle.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnUp + // + this.bnUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnUp, "bnUp"); + this.bnUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnUp.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.bnUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnUp.FlatAppearance.BorderSize = 0; + this.bnUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnUp.Name = "bnUp"; + this.bnUp.UseVisualStyleBackColor = false; + this.bnUp.Click += new System.EventHandler(this.Show_ControlsBn); + // + // btnLeftStick + // + this.btnLeftStick.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.btnLeftStick, "btnLeftStick"); + this.btnLeftStick.Cursor = System.Windows.Forms.Cursors.Default; + this.btnLeftStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.btnLeftStick.FlatAppearance.BorderSize = 0; + this.btnLeftStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.btnLeftStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.btnLeftStick.ForeColor = System.Drawing.SystemColors.WindowText; + this.btnLeftStick.Name = "btnLeftStick"; + this.btnLeftStick.UseVisualStyleBackColor = false; + this.btnLeftStick.Click += new System.EventHandler(this.btnSticks_Enter); + // + // bnDown + // + this.bnDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnDown, "bnDown"); + this.bnDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnDown.FlatAppearance.BorderSize = 0; + this.bnDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnDown.Name = "bnDown"; + this.bnDown.UseVisualStyleBackColor = false; + this.bnDown.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnRight + // + this.bnRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnRight, "bnRight"); + this.bnRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnRight.FlatAppearance.BorderSize = 0; + this.bnRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnRight.Name = "bnRight"; + this.bnRight.UseVisualStyleBackColor = false; + this.bnRight.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnLeft + // + this.bnLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnLeft, "bnLeft"); + this.bnLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnLeft.FlatAppearance.BorderSize = 0; + this.bnLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnLeft.Name = "bnLeft"; + this.bnLeft.UseVisualStyleBackColor = false; + this.bnLeft.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnL1 + // + this.bnL1.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnL1, "bnL1"); + this.bnL1.Cursor = System.Windows.Forms.Cursors.Default; + this.bnL1.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnL1.FlatAppearance.BorderSize = 0; + this.bnL1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnL1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnL1.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnL1.Name = "bnL1"; + this.bnL1.UseVisualStyleBackColor = false; + this.bnL1.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnOptions + // + this.bnOptions.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnOptions, "bnOptions"); + this.bnOptions.Cursor = System.Windows.Forms.Cursors.Default; + this.bnOptions.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnOptions.FlatAppearance.BorderSize = 0; + this.bnOptions.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnOptions.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnOptions.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnOptions.Name = "bnOptions"; + this.bnOptions.UseVisualStyleBackColor = false; + this.bnOptions.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnPS + // + this.bnPS.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnPS, "bnPS"); + this.bnPS.Cursor = System.Windows.Forms.Cursors.Default; + this.bnPS.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnPS.FlatAppearance.BorderSize = 0; + this.bnPS.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnPS.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnPS.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnPS.Name = "bnPS"; + this.bnPS.UseVisualStyleBackColor = false; + this.bnPS.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnShare + // + this.bnShare.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnShare, "bnShare"); + this.bnShare.Cursor = System.Windows.Forms.Cursors.Default; + this.bnShare.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnShare.FlatAppearance.BorderSize = 0; + this.bnShare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnShare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnShare.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnShare.Name = "bnShare"; + this.bnShare.UseVisualStyleBackColor = false; + this.bnShare.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnL2 + // + this.bnL2.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnL2, "bnL2"); + this.bnL2.Cursor = System.Windows.Forms.Cursors.Default; + this.bnL2.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnL2.FlatAppearance.BorderSize = 0; + this.bnL2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnL2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnL2.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnL2.Name = "bnL2"; + this.bnL2.UseVisualStyleBackColor = false; + this.bnL2.Click += new System.EventHandler(this.Show_ControlsBn); + // + // bnR2 + // + this.bnR2.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnR2, "bnR2"); + this.bnR2.Cursor = System.Windows.Forms.Cursors.Default; + this.bnR2.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnR2.FlatAppearance.BorderSize = 0; + this.bnR2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnR2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnR2.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnR2.Name = "bnR2"; + this.bnR2.UseVisualStyleBackColor = false; + this.bnR2.Click += new System.EventHandler(this.Show_ControlsBn); // // lBControls // this.lBControls.FormattingEnabled = true; + resources.ApplyResources(this.lBControls, "lBControls"); this.lBControls.Items.AddRange(new object[] { resources.GetString("lBControls.Items"), resources.GetString("lBControls.Items1"), @@ -2231,404 +2444,185 @@ resources.GetString("lBControls.Items30"), resources.GetString("lBControls.Items31"), resources.GetString("lBControls.Items32")}); - resources.ApplyResources(this.lBControls, "lBControls"); this.lBControls.Name = "lBControls"; this.lBControls.DoubleClick += new System.EventHandler(this.Show_ControlsList); this.lBControls.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_KeyDown); // - // pnlMain + // lbControlTip // - this.pnlMain.Controls.Add(this.pBController); - this.pnlMain.Controls.Add(this.bnTouchUpper); - this.pnlMain.Controls.Add(this.bnTouchLeft); - this.pnlMain.Controls.Add(this.bnTouchRight); - this.pnlMain.Controls.Add(this.bnTouchMulti); - this.pnlMain.Controls.Add(this.bnR1); - this.pnlMain.Controls.Add(this.bnCross); - this.pnlMain.Controls.Add(this.bnCircle); - this.pnlMain.Controls.Add(this.btnRightStick); - this.pnlMain.Controls.Add(this.bnSquare); - this.pnlMain.Controls.Add(this.btnLightbar); - this.pnlMain.Controls.Add(this.bnTriangle); - this.pnlMain.Controls.Add(this.bnUp); - this.pnlMain.Controls.Add(this.btnLeftStick); - this.pnlMain.Controls.Add(this.bnDown); - this.pnlMain.Controls.Add(this.bnRight); - this.pnlMain.Controls.Add(this.bnLeft); - this.pnlMain.Controls.Add(this.bnL1); - this.pnlMain.Controls.Add(this.bnOptions); - this.pnlMain.Controls.Add(this.bnPS); - this.pnlMain.Controls.Add(this.bnShare); - this.pnlMain.Controls.Add(this.bnL2); - this.pnlMain.Controls.Add(this.bnR2); - resources.ApplyResources(this.pnlMain, "pnlMain"); - this.pnlMain.Name = "pnlMain"; + resources.ApplyResources(this.lbControlTip, "lbControlTip"); + this.lbControlTip.Name = "lbControlTip"; // - // bnR2 + // pnlSticks // - this.bnR2.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnR2, "bnR2"); - this.bnR2.Cursor = System.Windows.Forms.Cursors.Default; - this.bnR2.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnR2.FlatAppearance.BorderSize = 0; - this.bnR2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnR2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnR2.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnR2.Name = "bnR2"; - this.bnR2.UseVisualStyleBackColor = false; - this.bnR2.Click += new System.EventHandler(this.Show_ControlsBn); + this.pnlSticks.Controls.Add(this.btnFullView); + this.pnlSticks.Controls.Add(this.pBSticks); + this.pnlSticks.Controls.Add(this.bnL3); + this.pnlSticks.Controls.Add(this.bnRSDown); + this.pnlSticks.Controls.Add(this.bnLSUp); + this.pnlSticks.Controls.Add(this.bnRSUp); + this.pnlSticks.Controls.Add(this.bnLSLeft); + this.pnlSticks.Controls.Add(this.bnRSRight); + this.pnlSticks.Controls.Add(this.bnLSRight); + this.pnlSticks.Controls.Add(this.bnRSLeft); + this.pnlSticks.Controls.Add(this.bnLSDown); + this.pnlSticks.Controls.Add(this.bnR3); + resources.ApplyResources(this.pnlSticks, "pnlSticks"); + this.pnlSticks.Name = "pnlSticks"; // - // bnL2 + // btnFullView // - this.bnL2.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnL2, "bnL2"); - this.bnL2.Cursor = System.Windows.Forms.Cursors.Default; - this.bnL2.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnL2.FlatAppearance.BorderSize = 0; - this.bnL2.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnL2.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnL2.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnL2.Name = "bnL2"; - this.bnL2.UseVisualStyleBackColor = false; - this.bnL2.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.btnFullView, "btnFullView"); + this.btnFullView.Name = "btnFullView"; + this.btnFullView.UseVisualStyleBackColor = true; + this.btnFullView.Click += new System.EventHandler(this.btnFullView_Click); // - // bnShare + // pBSticks // - this.bnShare.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnShare, "bnShare"); - this.bnShare.Cursor = System.Windows.Forms.Cursors.Default; - this.bnShare.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnShare.FlatAppearance.BorderSize = 0; - this.bnShare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnShare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnShare.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnShare.Name = "bnShare"; - this.bnShare.UseVisualStyleBackColor = false; - this.bnShare.Click += new System.EventHandler(this.Show_ControlsBn); + resources.ApplyResources(this.pBSticks, "pBSticks"); + this.pBSticks.Image = global::ScpServer.Properties.Resources.sticks; + this.pBSticks.Name = "pBSticks"; + this.pBSticks.TabStop = false; // - // bnPS + // bnL3 // - this.bnPS.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnPS, "bnPS"); - this.bnPS.Cursor = System.Windows.Forms.Cursors.Default; - this.bnPS.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnPS.FlatAppearance.BorderSize = 0; - this.bnPS.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnPS.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnPS.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnPS.Name = "bnPS"; - this.bnPS.UseVisualStyleBackColor = false; - this.bnPS.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnL3.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnL3, "bnL3"); + this.bnL3.Cursor = System.Windows.Forms.Cursors.Default; + this.bnL3.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnL3.FlatAppearance.BorderSize = 0; + this.bnL3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnL3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnL3.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnL3.Name = "bnL3"; + this.bnL3.UseVisualStyleBackColor = false; + this.bnL3.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnOptions + // bnRSDown // - this.bnOptions.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnOptions, "bnOptions"); - this.bnOptions.Cursor = System.Windows.Forms.Cursors.Default; - this.bnOptions.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnOptions.FlatAppearance.BorderSize = 0; - this.bnOptions.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnOptions.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnOptions.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnOptions.Name = "bnOptions"; - this.bnOptions.UseVisualStyleBackColor = false; - this.bnOptions.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnRSDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnRSDown, "bnRSDown"); + this.bnRSDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnRSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnRSDown.FlatAppearance.BorderSize = 0; + this.bnRSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnRSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnRSDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnRSDown.Name = "bnRSDown"; + this.bnRSDown.UseVisualStyleBackColor = false; + this.bnRSDown.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnL1 + // bnLSUp // - this.bnL1.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnL1, "bnL1"); - this.bnL1.Cursor = System.Windows.Forms.Cursors.Default; - this.bnL1.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnL1.FlatAppearance.BorderSize = 0; - this.bnL1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnL1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnL1.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnL1.Name = "bnL1"; - this.bnL1.UseVisualStyleBackColor = false; - this.bnL1.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnLSUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnLSUp, "bnLSUp"); + this.bnLSUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnLSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnLSUp.FlatAppearance.BorderSize = 0; + this.bnLSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnLSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnLSUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnLSUp.Name = "bnLSUp"; + this.bnLSUp.UseVisualStyleBackColor = false; + this.bnLSUp.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnLeft + // bnRSUp // - this.bnLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnLeft, "bnLeft"); - this.bnLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnLeft.FlatAppearance.BorderSize = 0; - this.bnLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnLeft.Name = "bnLeft"; - this.bnLeft.UseVisualStyleBackColor = false; - this.bnLeft.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnRSUp.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnRSUp, "bnRSUp"); + this.bnRSUp.Cursor = System.Windows.Forms.Cursors.Default; + this.bnRSUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnRSUp.FlatAppearance.BorderSize = 0; + this.bnRSUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnRSUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnRSUp.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnRSUp.Name = "bnRSUp"; + this.bnRSUp.UseVisualStyleBackColor = false; + this.bnRSUp.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnRight + // bnLSLeft // - this.bnRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnRight, "bnRight"); - this.bnRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnRight.FlatAppearance.BorderSize = 0; - this.bnRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnRight.Name = "bnRight"; - this.bnRight.UseVisualStyleBackColor = false; - this.bnRight.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnLSLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnLSLeft, "bnLSLeft"); + this.bnLSLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnLSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnLSLeft.FlatAppearance.BorderSize = 0; + this.bnLSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnLSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnLSLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnLSLeft.Name = "bnLSLeft"; + this.bnLSLeft.UseVisualStyleBackColor = false; + this.bnLSLeft.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnDown + // bnRSRight // - this.bnDown.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnDown, "bnDown"); - this.bnDown.Cursor = System.Windows.Forms.Cursors.Default; - this.bnDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnDown.FlatAppearance.BorderSize = 0; - this.bnDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnDown.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnDown.Name = "bnDown"; - this.bnDown.UseVisualStyleBackColor = false; - this.bnDown.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnRSRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnRSRight, "bnRSRight"); + this.bnRSRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnRSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnRSRight.FlatAppearance.BorderSize = 0; + this.bnRSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnRSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnRSRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnRSRight.Name = "bnRSRight"; + this.bnRSRight.UseVisualStyleBackColor = false; + this.bnRSRight.Click += new System.EventHandler(this.Show_ControlsBn); // - // btnLeftStick + // bnLSRight // - this.btnLeftStick.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnLeftStick, "btnLeftStick"); - this.btnLeftStick.Cursor = System.Windows.Forms.Cursors.Default; - this.btnLeftStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnLeftStick.FlatAppearance.BorderSize = 0; - this.btnLeftStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnLeftStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnLeftStick.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnLeftStick.Name = "btnLeftStick"; - this.btnLeftStick.UseVisualStyleBackColor = false; - this.btnLeftStick.Click += new System.EventHandler(this.btnSticks_Enter); + this.bnLSRight.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnLSRight, "bnLSRight"); + this.bnLSRight.Cursor = System.Windows.Forms.Cursors.Default; + this.bnLSRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnLSRight.FlatAppearance.BorderSize = 0; + this.bnLSRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnLSRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnLSRight.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnLSRight.Name = "bnLSRight"; + this.bnLSRight.UseVisualStyleBackColor = false; + this.bnLSRight.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnUp + // bnRSLeft // - this.bnUp.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnUp, "bnUp"); - this.bnUp.Cursor = System.Windows.Forms.Cursors.Default; - this.bnUp.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.bnUp.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnUp.FlatAppearance.BorderSize = 0; - this.bnUp.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnUp.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnUp.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnUp.Name = "bnUp"; - this.bnUp.UseVisualStyleBackColor = false; - this.bnUp.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnRSLeft.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnRSLeft, "bnRSLeft"); + this.bnRSLeft.Cursor = System.Windows.Forms.Cursors.Default; + this.bnRSLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnRSLeft.FlatAppearance.BorderSize = 0; + this.bnRSLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnRSLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnRSLeft.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnRSLeft.Name = "bnRSLeft"; + this.bnRSLeft.UseVisualStyleBackColor = false; + this.bnRSLeft.Click += new System.EventHandler(this.Show_ControlsBn); // - // bnTriangle + // bnLSDown // - this.bnTriangle.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnTriangle, "bnTriangle"); - this.bnTriangle.Cursor = System.Windows.Forms.Cursors.Default; - this.bnTriangle.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnTriangle.FlatAppearance.BorderSize = 0; - this.bnTriangle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnTriangle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnTriangle.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnTriangle.Name = "bnTriangle"; - this.bnTriangle.UseVisualStyleBackColor = false; - this.bnTriangle.Click += new System.EventHandler(this.Show_ControlsBn); + this.bnLSDown.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnLSDown, "bnLSDown"); + this.bnLSDown.Cursor = System.Windows.Forms.Cursors.Default; + this.bnLSDown.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnLSDown.FlatAppearance.BorderSize = 0; + this.bnLSDown.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnLSDown.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnLSDown.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnLSDown.Name = "bnLSDown"; + this.bnLSDown.UseVisualStyleBackColor = false; + this.bnLSDown.Click += new System.EventHandler(this.Show_ControlsBn); // - // btnLightbar + // bnR3 // - this.btnLightbar.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnLightbar, "btnLightbar"); - this.btnLightbar.Cursor = System.Windows.Forms.Cursors.Default; - this.btnLightbar.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnLightbar.FlatAppearance.BorderSize = 0; - this.btnLightbar.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnLightbar.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnLightbar.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnLightbar.Name = "btnLightbar"; - this.btnLightbar.UseVisualStyleBackColor = false; - this.btnLightbar.Click += new System.EventHandler(this.btnLightbar_Click); - // - // bnSquare - // - this.bnSquare.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnSquare, "bnSquare"); - this.bnSquare.Cursor = System.Windows.Forms.Cursors.Default; - this.bnSquare.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnSquare.FlatAppearance.BorderSize = 0; - this.bnSquare.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnSquare.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnSquare.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnSquare.Name = "bnSquare"; - this.bnSquare.UseVisualStyleBackColor = false; - this.bnSquare.Click += new System.EventHandler(this.Show_ControlsBn); - // - // btnRightStick - // - this.btnRightStick.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.btnRightStick, "btnRightStick"); - this.btnRightStick.Cursor = System.Windows.Forms.Cursors.Default; - this.btnRightStick.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.btnRightStick.FlatAppearance.BorderSize = 0; - this.btnRightStick.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.btnRightStick.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.btnRightStick.ForeColor = System.Drawing.SystemColors.WindowText; - this.btnRightStick.Name = "btnRightStick"; - this.btnRightStick.UseVisualStyleBackColor = false; - this.btnRightStick.Click += new System.EventHandler(this.btnSticks_Enter); - // - // bnCircle - // - this.bnCircle.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnCircle, "bnCircle"); - this.bnCircle.Cursor = System.Windows.Forms.Cursors.Default; - this.bnCircle.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnCircle.FlatAppearance.BorderSize = 0; - this.bnCircle.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnCircle.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnCircle.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnCircle.Name = "bnCircle"; - this.bnCircle.UseVisualStyleBackColor = false; - this.bnCircle.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnCross - // - this.bnCross.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnCross, "bnCross"); - this.bnCross.Cursor = System.Windows.Forms.Cursors.Default; - this.bnCross.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnCross.FlatAppearance.BorderSize = 0; - this.bnCross.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnCross.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnCross.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnCross.Name = "bnCross"; - this.bnCross.UseVisualStyleBackColor = false; - this.bnCross.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnR1 - // - this.bnR1.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnR1, "bnR1"); - this.bnR1.Cursor = System.Windows.Forms.Cursors.Default; - this.bnR1.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnR1.FlatAppearance.BorderSize = 0; - this.bnR1.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnR1.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnR1.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnR1.Name = "bnR1"; - this.bnR1.UseVisualStyleBackColor = false; - this.bnR1.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnTouchMulti - // - this.bnTouchMulti.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnTouchMulti, "bnTouchMulti"); - this.bnTouchMulti.Cursor = System.Windows.Forms.Cursors.Default; - this.bnTouchMulti.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnTouchMulti.FlatAppearance.BorderSize = 0; - this.bnTouchMulti.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnTouchMulti.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnTouchMulti.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnTouchMulti.Name = "bnTouchMulti"; - this.bnTouchMulti.UseVisualStyleBackColor = false; - this.bnTouchMulti.Click += new System.EventHandler(this.Show_ControlsBn); - this.bnTouchMulti.MouseLeave += new System.EventHandler(this.Toucpad_Leave); - this.bnTouchMulti.MouseHover += new System.EventHandler(this.bnTouchMulti_MouseHover); - // - // bnTouchRight - // - this.bnTouchRight.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnTouchRight, "bnTouchRight"); - this.bnTouchRight.Cursor = System.Windows.Forms.Cursors.Default; - this.bnTouchRight.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnTouchRight.FlatAppearance.BorderSize = 0; - this.bnTouchRight.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnTouchRight.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnTouchRight.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnTouchRight.Name = "bnTouchRight"; - this.bnTouchRight.UseVisualStyleBackColor = false; - this.bnTouchRight.Click += new System.EventHandler(this.Show_ControlsBn); - this.bnTouchRight.MouseLeave += new System.EventHandler(this.Toucpad_Leave); - this.bnTouchRight.MouseHover += new System.EventHandler(this.bnTouchRight_MouseHover); - // - // bnTouchLeft - // - this.bnTouchLeft.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnTouchLeft, "bnTouchLeft"); - this.bnTouchLeft.Cursor = System.Windows.Forms.Cursors.Default; - this.bnTouchLeft.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnTouchLeft.FlatAppearance.BorderSize = 0; - this.bnTouchLeft.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnTouchLeft.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnTouchLeft.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnTouchLeft.Name = "bnTouchLeft"; - this.bnTouchLeft.UseVisualStyleBackColor = false; - this.bnTouchLeft.Click += new System.EventHandler(this.Show_ControlsBn); - this.bnTouchLeft.MouseLeave += new System.EventHandler(this.Toucpad_Leave); - this.bnTouchLeft.MouseHover += new System.EventHandler(this.bnTouchLeft_MouseHover); - // - // bnTouchUpper - // - this.bnTouchUpper.BackColor = System.Drawing.Color.Transparent; - resources.ApplyResources(this.bnTouchUpper, "bnTouchUpper"); - this.bnTouchUpper.Cursor = System.Windows.Forms.Cursors.Default; - this.bnTouchUpper.FlatAppearance.BorderColor = System.Drawing.Color.Red; - this.bnTouchUpper.FlatAppearance.BorderSize = 0; - this.bnTouchUpper.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; - this.bnTouchUpper.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; - this.bnTouchUpper.ForeColor = System.Drawing.SystemColors.WindowText; - this.bnTouchUpper.Name = "bnTouchUpper"; - this.bnTouchUpper.UseVisualStyleBackColor = false; - this.bnTouchUpper.Click += new System.EventHandler(this.Show_ControlsBn); - this.bnTouchUpper.MouseLeave += new System.EventHandler(this.Toucpad_Leave); - this.bnTouchUpper.MouseHover += new System.EventHandler(this.bnTouchUpper_MouseHover); - // - // pBController - // - resources.ApplyResources(this.pBController, "pBController"); - this.pBController.Image = global::ScpServer.Properties.Resources.DS4_Controller; - this.pBController.Name = "pBController"; - this.pBController.TabStop = false; - // - // fLPTiltControls - // - this.fLPTiltControls.Controls.Add(this.bnGyroZN); - this.fLPTiltControls.Controls.Add(this.bnGyroZP); - this.fLPTiltControls.Controls.Add(this.bnGyroXP); - this.fLPTiltControls.Controls.Add(this.bnGyroXN); - resources.ApplyResources(this.fLPTiltControls, "fLPTiltControls"); - this.fLPTiltControls.Name = "fLPTiltControls"; - // - // bnGyroXN - // - resources.ApplyResources(this.bnGyroXN, "bnGyroXN"); - this.bnGyroXN.Name = "bnGyroXN"; - this.bnGyroXN.UseVisualStyleBackColor = true; - this.bnGyroXN.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnGyroXP - // - resources.ApplyResources(this.bnGyroXP, "bnGyroXP"); - this.bnGyroXP.Name = "bnGyroXP"; - this.bnGyroXP.UseVisualStyleBackColor = true; - this.bnGyroXP.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnGyroZP - // - resources.ApplyResources(this.bnGyroZP, "bnGyroZP"); - this.bnGyroZP.Name = "bnGyroZP"; - this.bnGyroZP.UseVisualStyleBackColor = true; - this.bnGyroZP.Click += new System.EventHandler(this.Show_ControlsBn); - // - // bnGyroZN - // - resources.ApplyResources(this.bnGyroZN, "bnGyroZN"); - this.bnGyroZN.Name = "bnGyroZN"; - this.bnGyroZN.UseVisualStyleBackColor = true; - this.bnGyroZN.Click += new System.EventHandler(this.Show_ControlsBn); - // - // lbGryo - // - resources.ApplyResources(this.lbGryo, "lbGryo"); - this.lbGryo.Name = "lbGryo"; + this.bnR3.BackColor = System.Drawing.Color.Transparent; + resources.ApplyResources(this.bnR3, "bnR3"); + this.bnR3.Cursor = System.Windows.Forms.Cursors.Default; + this.bnR3.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.bnR3.FlatAppearance.BorderSize = 0; + this.bnR3.FlatAppearance.MouseDownBackColor = System.Drawing.SystemColors.Control; + this.bnR3.FlatAppearance.MouseOverBackColor = System.Drawing.SystemColors.Control; + this.bnR3.ForeColor = System.Drawing.SystemColors.WindowText; + this.bnR3.Name = "bnR3"; + this.bnR3.UseVisualStyleBackColor = false; + this.bnR3.Click += new System.EventHandler(this.Show_ControlsBn); // // tabControls // @@ -2640,6 +2634,12 @@ this.tabControls.SelectedIndex = 0; this.tabControls.SelectedIndexChanged += new System.EventHandler(this.tabControls_SelectedIndexChanged); // + // advColorDialog + // + this.advColorDialog.AnyColor = true; + this.advColorDialog.Color = System.Drawing.Color.Blue; + this.advColorDialog.FullOpen = true; + // // Options // resources.ApplyResources(this, "$this"); @@ -2699,34 +2699,34 @@ ((System.ComponentModel.ISupportInitialize)(this.nUDSX)).EndInit(); this.tPController.ResumeLayout(false); this.tPController.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.tBL2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBR2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBLSDeadzone)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBRSDeadzone)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBSADeadzone)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pBDelayTracker)).EndInit(); this.pnlSixaxis.ResumeLayout(false); this.pnlSixaxis.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelZ)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelY)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroZ)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelX)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroZ)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelY)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBsixaxisAccelZ)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBDelayTracker)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBSADeadzone)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBRSDeadzone)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pBLSDeadzone)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBR2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.tBL2)).EndInit(); this.tPShiftMod.ResumeLayout(false); this.tPShiftMod.PerformLayout(); - this.pnlShiftSticks.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pBShiftSticks)).EndInit(); + this.fLPShiftTiltControls.ResumeLayout(false); this.pnlShiftMain.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pBShiftController)).EndInit(); - this.fLPShiftTiltControls.ResumeLayout(false); + this.pnlShiftSticks.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pBShiftSticks)).EndInit(); this.tPControls.ResumeLayout(false); this.tPControls.PerformLayout(); - this.pnlSticks.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pBSticks)).EndInit(); + this.fLPTiltControls.ResumeLayout(false); this.pnlMain.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pBController)).EndInit(); - this.fLPTiltControls.ResumeLayout(false); + this.pnlSticks.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pBSticks)).EndInit(); this.tabControls.ResumeLayout(false); this.ResumeLayout(false); diff --git a/DS4Tool/Options.cs b/DS4Tool/Options.cs index 66709c9..fabd02b 100644 --- a/DS4Tool/Options.cs +++ b/DS4Tool/Options.cs @@ -21,10 +21,16 @@ namespace ScpServer private Color reg, full; private Image colored, greyscale; ToolTip tp = new ToolTip(); - Graphics g; - ScpForm root; + DS4Form root; bool olddinputcheck = false; - public Options(DS4Control.Control bus_device, int deviceNum, string name, ScpForm rt) + Image L = Properties.Resources.LeftTouch; + Image R = Properties.Resources.RightTouch; + Image M = Properties.Resources.MultiTouch; + Image U = Properties.Resources.UpperTouch; + private float dpix; + private float dpiy; + + public Options(DS4Control.Control bus_device, int deviceNum, string name, DS4Form rt) { InitializeComponent(); device = deviceNum; @@ -32,7 +38,17 @@ namespace ScpServer filename = name; colored = pBRainbow.Image; root = rt; - g = CreateGraphics(); + Graphics g = this.CreateGraphics(); + try + { + dpix = g.DpiX / 100f * 1.041666666667f; + dpiy = g.DpiY / 100f * 1.041666666667f; + } + finally + { + g.Dispose(); + } + greyscale = GreyscaleImage((Bitmap)pBRainbow.Image); foreach (System.Windows.Forms.Control control in pnlMain.Controls) if (control is Button && !((Button)control).Name.Contains("btn")) @@ -88,7 +104,7 @@ namespace ScpServer nUDflashLED.Value = Global.getFlashAt(device); pnlLowBattery.Visible = cBLightbyBattery.Checked; lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "Color:"); - pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, 42) : new Point(pnlFull.Location.X, 48)); + pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, (int)(dpix * 42)) : new Point(pnlFull.Location.X, (int)(dpiy * 48))); DS4Color lowColor = Global.loadLowColor(device); tBLowRedBar.Value = lowColor.red; @@ -200,7 +216,6 @@ namespace ScpServer sixaxisTimer.Interval = 1000 / 60; } - void sixaxisTimer_Tick(object sender, EventArgs e) { // MEMS gyro data is all calibrated to roughly -1G..1G for values -0x2000..0x1fff @@ -223,15 +238,15 @@ namespace ScpServer SetDynamicTrackBarValue(tBsixaxisAccelZ, (scpDevice.ExposedState[(int)nUDSixaxis.Value - 1].AccelZ + tBsixaxisAccelZ.Value * 2) / 3); int x = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).LX; int y = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).LY; - btnLSTrack.Location = new Point((int)(x / 2.09 + lbLSTrack.Location.X), (int)(y / 2.09 + lbLSTrack.Location.Y)); + btnLSTrack.Location = new Point((int)(dpix * x / 2.09 + lbLSTrack.Location.X), (int)(dpiy * y / 2.09 + lbLSTrack.Location.Y)); x = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).RX; y = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).RY; - btnRSTrack.Location = new Point((int)(x / 2.09 + lbRSTrack.Location.X), (int)(y / 2.09 + lbRSTrack.Location.Y)); + btnRSTrack.Location = new Point((int)(dpix * x / 2.09 + lbRSTrack.Location.X), (int)(dpiy * y / 2.09 + lbRSTrack.Location.Y)); x = -scpDevice.ExposedState[(int)nUDSixaxis.Value - 1].GyroX / 62 + 127; y = scpDevice.ExposedState[(int)nUDSixaxis.Value - 1].GyroZ / 62 + 127; - btnSATrack.Location = new Point((int)(x / 2.09 + lbSATrack.Location.X), (int)(y / 2.09 + lbSATrack.Location.Y)); + btnSATrack.Location = new Point((int)(dpix * x / 2.09 + lbSATrack.Location.X), (int)(dpiy * y / 2.09 + lbSATrack.Location.Y)); tBL2.Value = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).L2; - lbL2Track.Location = new Point(tBL2.Location.X - 15, (int)(24 - tBL2.Value / 10.625) + 10); + lbL2Track.Location = new Point(tBL2.Location.X - (int)(dpix * 15), (int)((dpix * (24 - tBL2.Value / 10.625) + 10))); if (tBL2.Value == 255) lbL2Track.ForeColor = Color.Green; else if (tBL2.Value < (double)nUDL2.Value * 255) @@ -239,7 +254,7 @@ namespace ScpServer else lbL2Track.ForeColor = Color.Black; tBR2.Value = scpDevice.getDS4State((int)nUDSixaxis.Value - 1).R2; - lbR2Track.Location = new Point(tBR2.Location.X + 20, (int)(24 - tBR2.Value / 10.625) + 10); + lbR2Track.Location = new Point(tBR2.Location.X + (int)(dpix * 20), (int)((dpix * (24 - tBR2.Value / 10.625) + 10))); if (tBR2.Value == 255) lbR2Track.ForeColor = Color.Green; else if (tBR2.Value < (double)nUDR2.Value * 255) @@ -387,7 +402,7 @@ namespace ScpServer { pnlLowBattery.Visible = cBLightbyBattery.Checked; lbFull.Text = (cBLightbyBattery.Checked ? Properties.Resources.Full + ":": Properties.Resources.Color + ":"); - pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, 42) : new Point(pnlFull.Location.X, 48)); + pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, (int)(dpix * 42)) : new Point(pnlFull.Location.X, (int)(dpiy * 48))); Global.saveColor(device, (byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value); Global.saveLowColor(device, (byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value); Global.saveShiftColor(device, (byte)tBShiftRedBar.Value, (byte)tBShiftGreenBar.Value, (byte)tBShiftBlueBar.Value); @@ -565,10 +580,10 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveColor(device, (byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + //if (g.DpiX == 120) + //tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); + //else + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(dpix * 100), 0, 2000); } private void greenBar_ValueChanged(object sender, EventArgs e) { @@ -581,10 +596,10 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveColor(device, (byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + //if (g.DpiX == 120) + //tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); + //else + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100*dpix), 0, 2000); } private void blueBar_ValueChanged(object sender, EventArgs e) { @@ -597,10 +612,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveColor(device, (byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void lowRedBar_ValueChanged(object sender, EventArgs e) @@ -614,10 +626,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveLowColor(device, (byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void lowGreenBar_ValueChanged(object sender, EventArgs e) @@ -631,10 +640,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveLowColor(device, (byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void lowBlueBar_ValueChanged(object sender, EventArgs e) @@ -648,10 +654,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveLowColor(device, (byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void shiftRedBar_ValueChanged(object sender, EventArgs e) @@ -665,10 +668,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBShiftController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveShiftColor(device, (byte)tBShiftRedBar.Value, (byte)tBShiftGreenBar.Value, (byte)tBShiftBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void shiftGreenBar_ValueChanged(object sender, EventArgs e) @@ -682,10 +682,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBShiftController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveShiftColor(device, (byte)tBShiftRedBar.Value, (byte)tBShiftGreenBar.Value, (byte)tBShiftBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void shiftBlueBar_ValueChanged(object sender, EventArgs e) @@ -699,10 +696,7 @@ namespace ScpServer full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg); pBShiftController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full); Global.saveShiftColor(device, (byte)tBShiftRedBar.Value, (byte)tBShiftGreenBar.Value, (byte)tBShiftBlueBar.Value); - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } public Color HuetoRGB(float hue, float light, Color rgb) @@ -761,7 +755,7 @@ namespace ScpServer { Global.setLedAsBatteryIndicator(device, cBLightbyBattery.Checked); pnlLowBattery.Visible = cBLightbyBattery.Checked; - pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, 42) : new Point(pnlFull.Location.X, 48)); + pnlFull.Location = (cBLightbyBattery.Checked ? new Point(pnlFull.Location.X, (int)(dpix * 42)) : new Point(pnlFull.Location.X, (int)(dpiy * 48))); lbFull.Text = (cBLightbyBattery.Checked ? Properties.Resources.Full + ":" : Properties.Resources.Color + ":"); } @@ -1125,7 +1119,7 @@ namespace ScpServer { pBSADeadzone.Visible = true; pBSADeadzone.Size = new Size((int)(nUDSX.Value * 125), (int)(nUDSZ.Value * 125)); - pBSADeadzone.Location = new Point(lbSATrack.Location.X + 63 - pBSADeadzone.Size.Width / 2, lbSATrack.Location.Y + 63 - pBSADeadzone.Size.Height / 2); + pBSADeadzone.Location = new Point(lbSATrack.Location.X + (int)(dpix * 63) - pBSADeadzone.Size.Width / 2, lbSATrack.Location.Y + (int)(dpix * 63) - pBSADeadzone.Size.Height / 2); } } @@ -1138,14 +1132,10 @@ namespace ScpServer { pBSADeadzone.Visible = true; pBSADeadzone.Size = new Size((int)(nUDSX.Value * 125), (int)(nUDSZ.Value * 125)); - pBSADeadzone.Location = new Point(lbSATrack.Location.X + 63 - pBSADeadzone.Size.Width / 2, lbSATrack.Location.Y + 63 - pBSADeadzone.Size.Height / 2); + pBSADeadzone.Location = new Point(lbSATrack.Location.X + (int)(dpix * 63) - pBSADeadzone.Size.Width / 2, lbSATrack.Location.Y + (int)(dpiy * 63) - pBSADeadzone.Size.Height / 2); } } - Image L = Properties.Resources.LeftTouch; - Image R = Properties.Resources.RightTouch; - Image M = Properties.Resources.MultiTouch; - Image U = Properties.Resources.UpperTouch; private void bnTouchLeft_MouseHover(object sender, EventArgs e) { pBController.Image = L; @@ -1180,7 +1170,7 @@ namespace ScpServer { pBRSDeadzone.Visible = true; pBRSDeadzone.Size = new Size((int)(nUDRS.Value * 125), (int)(nUDRS.Value * 125)); - pBRSDeadzone.Location = new Point(lbRSTrack.Location.X + 63 - pBRSDeadzone.Size.Width / 2, lbRSTrack.Location.Y + 63 - pBRSDeadzone.Size.Width / 2); + pBRSDeadzone.Location = new Point(lbRSTrack.Location.X + (int)(dpix * 63) - pBRSDeadzone.Size.Width / 2, lbRSTrack.Location.Y + (int)(dpiy * 63) - pBRSDeadzone.Size.Width / 2); } } @@ -1193,7 +1183,7 @@ namespace ScpServer { pBLSDeadzone.Visible = true; pBLSDeadzone.Size = new Size((int)(nUDLS.Value*125), (int)(nUDLS.Value*125)); - pBLSDeadzone.Location = new Point(lbLSTrack.Location.X + 63 - pBLSDeadzone.Size.Width / 2, lbLSTrack.Location.Y + 63 - pBLSDeadzone.Size.Width / 2); + pBLSDeadzone.Location = new Point(lbLSTrack.Location.X + (int)(dpix * 63) - pBLSDeadzone.Size.Width / 2, lbLSTrack.Location.Y + (int)(dpiy * 63) - pBLSDeadzone.Size.Width / 2); } } @@ -1204,10 +1194,7 @@ namespace ScpServer private void LightBar_MouseDown(object sender, MouseEventArgs e) { - if (g.DpiX == 120) - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 125, 0, 2000); - else - tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), 100, 0, 2000); + tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000); } private void Lightbar_MouseUp(object sender, MouseEventArgs e) diff --git a/DS4Tool/Options.resx b/DS4Tool/Options.resx index ea8391b..fba3816 100644 --- a/DS4Tool/Options.resx +++ b/DS4Tool/Options.resx @@ -126,10 +126,13 @@ - 44, 9 + 66, 13 + + + 5, 5, 5, 5 - 13, 13 + 19, 19 @@ -148,10 +151,13 @@ 0 - 181, 16 + 271, 24 + + + 5, 5, 5, 5 - 39, 20 + 59, 26 167 @@ -172,10 +178,13 @@ NoControl - 159, 18 + 239, 26 + + + 5, 5, 5, 5 - 16, 16 + 24, 24 StretchImage @@ -202,10 +211,13 @@ NoControl - 325, 4 + 487, 6 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 12 @@ -229,10 +241,13 @@ NoControl - 196, 4 + 294, 6 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 11 @@ -256,10 +271,13 @@ NoControl - 73, 4 + 109, 6 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 10 @@ -283,10 +301,13 @@ NoControl - 316, 17 + 474, 25 + + + 5, 5, 5, 5 - 111, 17 + 165, 24 162 @@ -313,10 +334,13 @@ NoControl - 308, 7 + 462, 11 + + + 5, 0, 5, 0 - 14, 13 + 20, 20 160 @@ -343,10 +367,13 @@ NoControl - 180, 7 + 270, 11 + + + 5, 0, 5, 0 - 15, 13 + 22, 20 159 @@ -373,10 +400,13 @@ NoControl - 223, 19 + 335, 29 + + + 5, 0, 5, 0 - 59, 13 + 81, 20 157 @@ -403,10 +433,13 @@ NoControl - 58, 7 + 86, 11 + + + 5, 0, 5, 0 - 15, 13 + 21, 20 158 @@ -433,13 +466,16 @@ NoControl - 355, 18 + 533, 26 + + + 5, 5, 5, 5 No - 82, 17 + 117, 24 226 @@ -466,13 +502,16 @@ NoControl - 258, 18 + 386, 26 + + + 5, 5, 5, 5 Yes - 45, 17 + 62, 24 230 @@ -493,10 +532,13 @@ 6 - 309, 17 + 463, 25 + + + 5, 5, 5, 5 - 40, 20 + 60, 26 227 @@ -520,13 +562,16 @@ NoControl - 108, 48 + 162, 72 + + + 5, 5, 5, 5 Yes - 52, 17 + 74, 24 231 @@ -553,13 +598,16 @@ NoControl - 7, 48 + 11, 72 + + + 5, 5, 5, 5 Yes - 49, 17 + 70, 24 232 @@ -580,10 +628,13 @@ 4 - 166, 46 + 250, 70 + + + 5, 5, 5, 5 - 40, 20 + 60, 26 228 @@ -601,10 +652,13 @@ 7 - 62, 46 + 94, 70 + + + 5, 5, 5, 5 - 40, 20 + 60, 26 229 @@ -628,10 +682,13 @@ NoControl - 5, 18 + 7, 26 + + + 5, 0, 5, 0 - 92, 13 + 135, 20 206 @@ -661,13 +718,16 @@ NoControl - 132, 18 + 198, 26 + + + 5, 5, 5, 5 No - 124, 17 + 181, 24 223 @@ -694,13 +754,16 @@ NoControl - 12, 18 + 18, 26 + + + 5, 5, 5, 5 No - 118, 17 + 177, 24 224 @@ -727,10 +790,13 @@ NoControl - 7, 17 + 11, 25 + + + 5, 0, 5, 0 - 19, 13 + 27, 20 196 @@ -757,10 +823,13 @@ NoControl - 88, 17 + 132, 25 + + + 5, 0, 5, 0 - 21, 13 + 30, 20 197 @@ -787,10 +856,13 @@ NoControl - 163, 46 + 245, 70 + + + 5, 0, 5, 0 - 28, 13 + 42, 20 200 @@ -811,10 +883,13 @@ 13 - 109, 44 + 163, 66 + + + 5, 5, 5, 5 - 50, 20 + 74, 26 201 @@ -832,10 +907,13 @@ 8 - 111, 15 + 167, 23 + + + 5, 5, 5, 5 - 50, 20 + 74, 26 202 @@ -862,13 +940,16 @@ NoControl - 357, 16 + 535, 24 + + + 5, 5, 5, 5 Yes - 73, 17 + 107, 24 198 @@ -890,10 +971,13 @@ 12 - 14, 15 + 22, 23 + + + 5, 5, 5, 5 - 43, 20 + 65, 26 211 @@ -914,10 +998,13 @@ NoControl - 14, 39 + 22, 59 + + + 5, 5, 5, 5 - 64, 23 + 96, 35 214 @@ -944,10 +1031,13 @@ NoControl - 7, 7 + 11, 11 + + + 5, 0, 5, 0 - 26, 13 + 38, 20 225 @@ -974,10 +1064,13 @@ NoControl - 58, 9 + 86, 13 + + + 5, 0, 5, 0 - 15, 13 + 21, 20 158 @@ -1004,10 +1097,13 @@ NoControl - 180, 9 + 270, 13 + + + 5, 0, 5, 0 - 15, 13 + 22, 20 159 @@ -1034,10 +1130,13 @@ NoControl - 308, 9 + 462, 13 + + + 5, 0, 5, 0 - 14, 13 + 20, 20 160 @@ -1064,10 +1163,13 @@ NoControl - 73, 5 + 109, 7 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 10 @@ -1091,10 +1193,13 @@ NoControl - 196, 5 + 294, 7 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 11 @@ -1118,10 +1223,13 @@ NoControl - 325, 5 + 487, 7 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 12 @@ -1145,10 +1253,13 @@ NoControl - 7, 9 + 11, 13 + + + 5, 0, 5, 0 - 39, 13 + 58, 20 225 @@ -1169,10 +1280,13 @@ 7 - 2, 42 + 2, 62 + + + 5, 5, 5, 5 - 435, 29 + 653, 43 235 @@ -1190,10 +1304,13 @@ 14 - 2, 72 + 2, 108 + + + 5, 5, 5, 5 - 435, 29 + 653, 43 234 @@ -1208,7 +1325,7 @@ gBLightbar - 13 + 15 True @@ -1217,10 +1334,13 @@ NoControl - 88, 46 + 132, 70 + + + 5, 0, 5, 0 - 22, 13 + 32, 20 197 @@ -1247,10 +1367,13 @@ NoControl - 6, 46 + 10, 70 + + + 5, 0, 5, 0 - 20, 13 + 29, 20 196 @@ -1271,13 +1394,16 @@ 7 - 111, 43 + 167, 65 + + + 5, 5, 5, 5 No - 50, 20 + 74, 26 203 @@ -1295,10 +1421,13 @@ 9 - 109, 16 + 163, 24 + + + 5, 5, 5, 5 - 50, 20 + 74, 26 241 @@ -1316,13 +1445,16 @@ 11 - 31, 44 + 47, 66 + + + 5, 5, 5, 5 No - 50, 20 + 74, 26 203 @@ -1340,13 +1472,16 @@ 11 - 31, 15 + 47, 23 + + + 5, 5, 5, 5 No - 50, 20 + 74, 26 203 @@ -1370,10 +1505,13 @@ NoControl - 212, 48 + 318, 72 + + + 5, 5, 5, 5 - 142, 17 + 207, 24 233 @@ -1394,10 +1532,16 @@ 0 - 2, 251 + 2, 377 + + + 5, 5, 5, 5 + + + 5, 5, 5, 5 - 437, 70 + 655, 106 246 @@ -1424,13 +1568,16 @@ NoControl - 329, 73 + 493, 109 + + + 5, 5, 5, 5 Yes - 101, 17 + 147, 24 256 @@ -1454,10 +1601,13 @@ NoControl - 406, 39 + 610, 59 + + + 5, 5, 5, 5 - 23, 23 + 35, 35 Zoom @@ -1484,13 +1634,16 @@ NoControl - 224, 38 + 336, 58 + + + 5, 5, 5, 5 Yes - 107, 30 + 156, 44 254 @@ -1521,10 +1674,13 @@ with profile NoControl - 335, 41 + 503, 61 + + + 5, 5, 5, 5 - 67, 23 + 101, 35 253 @@ -1551,10 +1707,13 @@ with profile NoControl - 7, 75 + 11, 113 + + + 5, 0, 5, 0 - 73, 13 + 110, 20 252 @@ -1581,10 +1740,13 @@ with profile NoControl - 170, 17 + 254, 25 + + + 5, 5, 5, 5 - 120, 17 + 175, 24 251 @@ -1605,10 +1767,13 @@ with profile 5 - 82, 73 + 122, 109 + + + 5, 5, 5, 5 - 29, 20 + 43, 26 250 @@ -1632,13 +1797,16 @@ with profile NoControl - 117, 74 + 175, 110 + + + 5, 5, 5, 5 Yes - 142, 17 + 209, 24 242 @@ -1665,13 +1833,16 @@ with profile NoControl - 6, 45 + 10, 67 + + + 5, 5, 5, 5 Yes - 100, 17 + 145, 24 232 @@ -1692,10 +1863,16 @@ with profile 9 - 445, 226 + 667, 338 + + + 5, 5, 5, 5 + + + 5, 5, 5, 5 - 436, 95 + 654, 143 247 @@ -1722,10 +1899,13 @@ with profile NoControl - 391, 108 + 587, 162 + + + 5, 5, 5, 5 - 13, 13 + 19, 19 49 @@ -1752,10 +1932,13 @@ with profile NoControl - 336, 106 + 504, 158 + + + 5, 5, 5, 5 - 49, 17 + 71, 24 238 @@ -1782,10 +1965,13 @@ with profile NoControl - 158, 106 + 238, 158 + + + 5, 5, 5, 5 - 99, 17 + 145, 24 237 @@ -1812,10 +1998,13 @@ with profile NoControl - 97, 106 + 145, 158 + + + 5, 5, 5, 5 - 58, 17 + 84, 24 237 @@ -1842,10 +2031,13 @@ with profile NoControl - 263, 106 + 395, 158 + + + 5, 5, 5, 5 - 67, 17 + 96, 24 237 @@ -1872,10 +2064,13 @@ with profile NoControl - 9, 108 + 13, 162 + + + 5, 0, 5, 0 - 82, 13 + 120, 20 236 @@ -1902,10 +2097,13 @@ with profile NoControl - 98, 18 + 146, 26 + + + 5, 0, 5, 0 - 15, 13 + 23, 20 207 @@ -1926,10 +2124,13 @@ with profile 6 - 54, 16 + 82, 24 + + + 5, 5, 5, 5 - 43, 20 + 65, 26 167 @@ -1953,10 +2154,13 @@ with profile NoControl - 9, 18 + 13, 26 + + + 5, 0, 5, 0 - 44, 13 + 66, 20 207 @@ -1983,10 +2187,13 @@ with profile NoControl - 8, 8 + 12, 12 + + + 5, 5, 5, 5 - 176, 17 + 262, 24 226 @@ -2013,10 +2220,13 @@ with profile NoControl - 7, 33 + 11, 49 + + + 5, 0, 5, 0 - 31, 13 + 46, 20 225 @@ -2043,10 +2253,13 @@ with profile NoControl - 58, 33 + 86, 49 + + + 5, 0, 5, 0 - 15, 13 + 21, 20 158 @@ -2073,10 +2286,13 @@ with profile NoControl - 180, 33 + 270, 49 + + + 5, 0, 5, 0 - 15, 13 + 22, 20 159 @@ -2103,10 +2319,13 @@ with profile NoControl - 308, 33 + 462, 49 + + + 5, 0, 5, 0 - 14, 13 + 20, 20 160 @@ -2133,10 +2352,13 @@ with profile NoControl - 73, 30 + 109, 46 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 10 @@ -2160,10 +2382,13 @@ with profile NoControl - 196, 30 + 294, 46 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 11 @@ -2187,10 +2412,13 @@ with profile NoControl - 325, 30 + 487, 46 + + + 5, 5, 5, 5 - 100, 20 + 150, 30 12 @@ -2208,10 +2436,13 @@ with profile 7 - 2, 42 + 2, 62 + + + 5, 5, 5, 5 - 435, 60 + 653, 90 235 @@ -2229,13 +2460,19 @@ with profile gBLightbar - 15 + 13 - 443, 85 + 665, 127 + + + 5, 5, 5, 5 + + + 5, 5, 5, 5 - 438, 129 + 658, 193 247 @@ -2262,10 +2499,13 @@ with profile NoControl - 63, 17 + 95, 25 + + + 5, 0, 5, 0 - 15, 13 + 23, 20 207 @@ -2286,10 +2526,16 @@ with profile 0 - 445, 12 + 667, 18 + + + 5, 5, 5, 5 + + + 5, 5, 5, 5 - 89, 67 + 133, 101 247 @@ -2316,10 +2562,13 @@ with profile NoControl - 168, 16 + 252, 24 + + + 5, 0, 5, 0 - 49, 13 + 72, 20 197 @@ -2346,10 +2595,13 @@ with profile NoControl - 168, 45 + 252, 67 + + + 5, 0, 5, 0 - 49, 13 + 71, 20 197 @@ -2370,13 +2622,16 @@ with profile 3 - 223, 43 + 335, 65 + + + 5, 5, 5, 5 No - 50, 20 + 74, 26 203 @@ -2394,10 +2649,13 @@ with profile 6 - 223, 14 + 335, 22 + + + 5, 5, 5, 5 - 50, 20 + 74, 26 202 @@ -2415,10 +2673,16 @@ with profile 8 - 601, 11 + 901, 17 + + + 5, 5, 5, 5 + + + 5, 5, 5, 5 - 282, 67 + 422, 101 248 @@ -2441,9 +2705,6 @@ with profile 153, 17 - - 17, 17 - False @@ -2451,10 +2712,13 @@ with profile NoControl - 71, 25 + 107, 37 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 219 @@ -2478,10 +2742,13 @@ with profile NoControl - 81, 4 + 121, 6 + + + 5, 0, 5, 0 - 34, 13 + 48, 20 215 @@ -2508,10 +2775,13 @@ with profile NoControl - 3, 24 + 5, 36 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 222 @@ -2535,10 +2805,13 @@ with profile NoControl - 13, 5 + 19, 7 + + + 5, 0, 5, 0 - 29, 13 + 43, 20 216 @@ -2565,10 +2838,13 @@ with profile NoControl - 3, 49 + 5, 73 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 221 @@ -2592,10 +2868,13 @@ with profile NoControl - 3, 79 + 5, 119 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 220 @@ -2619,10 +2898,13 @@ with profile NoControl - 72, 49 + 108, 73 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 218 @@ -2646,10 +2928,13 @@ with profile NoControl - 71, 79 + 107, 119 + + + 5, 5, 5, 5 - 50, 19 + 74, 29 217 @@ -2667,10 +2952,13 @@ with profile 7 - 300, 88 + 450, 132 + + + 5, 5, 5, 5 - 125, 125 + 187, 187 236 @@ -2697,10 +2985,13 @@ with profile NoControl - 316, 33 + 474, 49 + + + 5, 0, 5, 0 - 19, 13 + 27, 20 216 @@ -2727,10 +3018,13 @@ with profile NoControl - 112, 9 + 168, 13 + + + 5, 5, 5, 5 - 10, 10 + 14, 14 243 @@ -2757,10 +3051,13 @@ with profile NoControl - 362, 150 + 542, 226 + + + 5, 5, 5, 5 - 3, 3 + 5, 5 237 @@ -2790,10 +3087,13 @@ with profile NoControl - 211, 149 + 317, 223 + + + 5, 5, 5, 5 - 3, 3 + 5, 5 237 @@ -2817,10 +3117,13 @@ with profile NoControl - 150, 56 + 226, 84 + + + 5, 0, 5, 0 - 125, 30 + 187, 46 216 @@ -2850,10 +3153,13 @@ with profile NoControl - 6, 7 + 10, 11 + + + 5, 0, 5, 0 - 100, 13 + 145, 20 216 @@ -2883,10 +3189,13 @@ with profile NoControl - 385, 33 + 577, 49 + + + 5, 0, 5, 0 - 21, 13 + 30, 20 216 @@ -2913,10 +3222,13 @@ with profile NoControl - 6, 56 + 10, 84 + + + 5, 0, 5, 0 - 125, 30 + 187, 46 216 @@ -2943,10 +3255,13 @@ with profile NoControl - 300, 56 + 450, 84 + + + 5, 0, 5, 0 - 125, 30 + 187, 46 216 @@ -2979,10 +3294,13 @@ with profile NoControl - 67, 149 + 101, 223 + + + 5, 5, 5, 5 - 3, 3 + 5, 5 237 @@ -3094,10 +3412,13 @@ with profile NoControl - 348, 136 + 522, 204 + + + 5, 5, 5, 5 - 31, 31 + 47, 47 StretchImage @@ -3209,10 +3530,13 @@ with profile NoControl - 207, 146 + 311, 218 + + + 5, 5, 5, 5 - 10, 10 + 14, 14 StretchImage @@ -3239,10 +3563,13 @@ with profile NoControl - 150, 88 + 226, 132 + + + 5, 0, 5, 0 - 125, 125 + 187, 187 239 @@ -3354,10 +3681,13 @@ with profile NoControl - 63, 146 + 95, 218 + + + 5, 5, 5, 5 - 10, 10 + 14, 14 StretchImage @@ -3384,10 +3714,13 @@ with profile NoControl - 5, 88 + 7, 132 + + + 5, 0, 5, 0 - 125, 125 + 187, 187 239 @@ -3417,7 +3750,10 @@ with profile NoControl - 365, 3 + 547, 5 + + + 5, 5, 5, 5 Vertical @@ -3426,7 +3762,7 @@ with profile Yes - 25, 50 + 37, 74 244 @@ -3453,7 +3789,10 @@ with profile NoControl - 331, 3 + 497, 5 + + + 5, 5, 5, 5 Vertical @@ -3465,7 +3804,7 @@ with profile True - 25, 50 + 37, 74 244 @@ -3486,10 +3825,13 @@ with profile NoControl - 300, 88 + 450, 132 + + + 5, 0, 5, 0 - 125, 125 + 187, 187 239 @@ -3510,13 +3852,16 @@ with profile 18 - 4, 22 + 4, 29 + + + 5, 5, 5, 5 - 3, 3, 3, 3 + 5, 5, 5, 5 - 428, 216 + 646, 329 2 @@ -3543,10 +3888,13 @@ with profile NoControl - 5, 192 + 7, 288 + + + 5, 0, 5, 0 - 67, 13 + 99, 20 255 @@ -3570,10 +3918,13 @@ with profile NoControl - 3, 3 + 5, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -3597,10 +3948,13 @@ with profile NoControl - 89, 3 + 135, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -3624,10 +3978,13 @@ with profile NoControl - 175, 3 + 265, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -3651,10 +4008,13 @@ with profile NoControl - 261, 3 + 395, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -3675,10 +4035,13 @@ with profile 3 - 72, 185 + 108, 277 + + + 5, 5, 5, 5 - 350, 31 + 526, 47 256 @@ -3777,10 +4140,13 @@ with profile Touchpad (not clicked in) - 79, 3 + 119, 5 + + + 5, 5, 5, 5 - 145, 21 + 215, 28 192 @@ -3797,6 +4163,9 @@ with profile 2 + + 20 + Cross : @@ -3897,10 +4266,13 @@ with profile Sixaxis Right : - 257, 7 + 385, 11 + + + 5, 5, 5, 5 - 169, 173 + 251, 244 188 @@ -3924,10 +4296,13 @@ with profile NoControl - 44, 6 + 66, 10 + + + 5, 0, 5, 0 - 29, 13 + 42, 20 189 @@ -3957,10 +4332,13 @@ with profile NoControl - 84, 24 + 126, 36 + + + 5, 0, 5, 0 - 105, 13 + 157, 20 189 @@ -3995,8 +4373,11 @@ with profile 0, 0 + + 5, 5, 5, 5 + - 245, 132 + 367, 198 StretchImage @@ -4026,10 +4407,13 @@ with profile NoControl - 84, 25 + 126, 37 + + + 5, 5, 5, 5 - 78, 16 + 118, 24 193 @@ -4059,10 +4443,13 @@ with profile NoControl - 84, 40 + 126, 60 + + + 5, 5, 5, 5 - 25, 35 + 37, 53 191 @@ -4092,10 +4479,13 @@ with profile NoControl - 139, 40 + 209, 60 + + + 5, 5, 5, 5 - 23, 34 + 35, 50 190 @@ -4125,10 +4515,13 @@ with profile NoControl - 109, 40 + 163, 60 + + + 5, 5, 5, 5 - 30, 34 + 46, 50 192 @@ -4158,10 +4551,13 @@ with profile NoControl - 175, 13 + 263, 19 + + + 5, 5, 5, 5 - 43, 15 + 65, 23 87 @@ -4191,10 +4587,13 @@ with profile NoControl - 187, 76 + 281, 114 + + + 5, 5, 5, 5 - 19, 17 + 29, 25 74 @@ -4224,10 +4623,13 @@ with profile NoControl - 208, 60 + 312, 90 + + + 5, 5, 5, 5 - 16, 17 + 24, 25 71 @@ -4257,10 +4659,13 @@ with profile NoControl - 150, 90 + 226, 134 + + + 5, 5, 5, 5 - 28, 28 + 42, 42 91 @@ -4290,10 +4695,13 @@ with profile NoControl - 173, 61 + 259, 91 + + + 5, 5, 5, 5 - 15, 14 + 23, 22 72 @@ -4323,10 +4731,13 @@ with profile NoControl - 84, 6 + 126, 10 + + + 5, 5, 5, 5 - 78, 19 + 118, 29 91 @@ -4356,10 +4767,13 @@ with profile NoControl - 188, 45 + 282, 67 + + + 5, 5, 5, 5 - 20, 16 + 30, 24 73 @@ -4389,10 +4803,13 @@ with profile NoControl - 44, 48 + 66, 72 + + + 5, 5, 5, 5 - 11, 15 + 17, 23 80 @@ -4422,10 +4839,13 @@ with profile NoControl - 70, 90 + 106, 134 + + + 5, 5, 5, 5 - 28, 28 + 42, 42 91 @@ -4455,10 +4875,13 @@ with profile NoControl - 44, 73 + 66, 109 + + + 5, 5, 5, 5 - 12, 12 + 18, 18 81 @@ -4488,10 +4911,13 @@ with profile NoControl - 31, 0 + 47, 0 + + + 5, 5, 5, 5 - 43, 12 + 65, 18 90 @@ -4521,10 +4947,13 @@ with profile NoControl - 55, 61 + 83, 91 + + + 5, 5, 5, 5 - 14, 14 + 22, 22 82 @@ -4554,10 +4983,13 @@ with profile NoControl - 174, 0 + 262, 0 + + + 5, 5, 5, 5 - 40, 13 + 60, 19 89 @@ -4587,10 +5019,13 @@ with profile NoControl - 31, 61 + 47, 91 + + + 5, 5, 5, 5 - 14, 12 + 22, 18 83 @@ -4620,10 +5055,13 @@ with profile NoControl - 31, 13 + 47, 19 + + + 5, 5, 5, 5 - 43, 15 + 65, 23 88 @@ -4653,10 +5091,13 @@ with profile NoControl - 167, 33 + 251, 49 + + + 5, 5, 5, 5 - 11, 21 + 17, 31 84 @@ -4686,10 +5127,13 @@ with profile NoControl - 115, 87 + 173, 131 + + + 5, 5, 5, 5 - 18, 18 + 26, 26 86 @@ -4719,10 +5163,13 @@ with profile NoControl - 71, 33 + 107, 49 + + + 5, 5, 5, 5 - 11, 18 + 17, 26 85 @@ -4743,10 +5190,13 @@ with profile 22 - 6, 42 + 10, 62 + + + 5, 5, 5, 5 - 249, 137 + 373, 205 190 @@ -4767,10 +5217,13 @@ with profile NoControl - 71, 9 + 107, 13 + + + 5, 5, 5, 5 - 106, 23 + 158, 35 184 @@ -4799,8 +5252,11 @@ with profile 0, 1 + + 5, 5, 5, 5 + - 245, 132 + 367, 198 StretchImage @@ -4830,10 +5286,13 @@ with profile NoControl - 36, 92 + 54, 138 + + + 5, 5, 5, 5 - 23, 23 + 35, 35 163 @@ -4863,10 +5322,13 @@ with profile NoControl - 182, 116 + 274, 174 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 172 @@ -4896,10 +5358,13 @@ with profile NoControl - 36, 77 + 54, 115 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 167 @@ -4929,10 +5394,13 @@ with profile NoControl - 182, 78 + 274, 118 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 171 @@ -4962,10 +5430,13 @@ with profile NoControl - 21, 92 + 31, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 164 @@ -4995,10 +5466,13 @@ with profile NoControl - 210, 92 + 314, 138 + + + 5, 5, 5, 5 - 13, 23 + 19, 35 170 @@ -5028,10 +5502,13 @@ with profile NoControl - 65, 92 + 97, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 165 @@ -5061,10 +5538,13 @@ with profile NoControl - 165, 92 + 247, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 169 @@ -5094,10 +5574,13 @@ with profile NoControl - 36, 120 + 54, 180 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 166 @@ -5127,10 +5610,13 @@ with profile NoControl - 182, 92 + 274, 138 + + + 5, 5, 5, 5 - 23, 23 + 35, 35 168 @@ -5151,10 +5637,13 @@ with profile 11 - 6, 42 + 10, 62 + + + 5, 5, 5, 5 - 249, 142 + 373, 214 191 @@ -5175,13 +5664,16 @@ with profile 7 - 4, 22 + 4, 29 + + + 5, 5, 5, 5 - 3, 3, 3, 3 + 5, 5, 5, 5 - 428, 216 + 646, 329 1 @@ -5208,10 +5700,13 @@ with profile NoControl - 5, 192 + 7, 288 + + + 5, 0, 5, 0 - 67, 13 + 99, 20 253 @@ -5235,10 +5730,13 @@ with profile NoControl - 3, 3 + 5, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -5262,10 +5760,13 @@ with profile NoControl - 89, 3 + 135, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -5289,10 +5790,13 @@ with profile NoControl - 175, 3 + 265, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -5316,10 +5820,13 @@ with profile NoControl - 261, 3 + 395, 5 + + + 5, 5, 5, 5 - 80, 23 + 120, 35 250 @@ -5340,10 +5847,13 @@ with profile 3 - 72, 185 + 108, 277 + + + 5, 5, 5, 5 - 350, 31 + 526, 47 254 @@ -5372,8 +5882,11 @@ with profile 0, 0 + + 5, 5, 5, 5 + - 245, 132 + 367, 198 StretchImage @@ -5403,10 +5916,13 @@ with profile NoControl - 84, 25 + 126, 37 + + + 5, 5, 5, 5 - 78, 16 + 118, 24 193 @@ -5436,10 +5952,13 @@ with profile NoControl - 84, 40 + 126, 60 + + + 5, 5, 5, 5 - 25, 35 + 37, 53 191 @@ -5469,10 +5988,13 @@ with profile NoControl - 139, 40 + 209, 60 + + + 5, 5, 5, 5 - 23, 34 + 35, 50 190 @@ -5502,10 +6024,13 @@ with profile NoControl - 109, 40 + 163, 60 + + + 5, 5, 5, 5 - 30, 34 + 46, 50 192 @@ -5535,10 +6060,13 @@ with profile NoControl - 175, 13 + 263, 19 + + + 5, 5, 5, 5 - 43, 15 + 65, 23 87 @@ -5568,10 +6096,13 @@ with profile NoControl - 187, 76 + 281, 114 + + + 5, 5, 5, 5 - 19, 17 + 29, 25 74 @@ -5601,10 +6132,13 @@ with profile NoControl - 208, 60 + 312, 90 + + + 5, 5, 5, 5 - 16, 17 + 24, 25 71 @@ -5634,10 +6168,13 @@ with profile NoControl - 150, 90 + 226, 134 + + + 5, 5, 5, 5 - 28, 28 + 42, 42 91 @@ -5667,10 +6204,13 @@ with profile NoControl - 173, 61 + 259, 91 + + + 5, 5, 5, 5 - 15, 14 + 23, 22 72 @@ -5700,10 +6240,13 @@ with profile NoControl - 84, 6 + 126, 10 + + + 5, 5, 5, 5 - 78, 19 + 118, 29 91 @@ -5733,10 +6276,13 @@ with profile NoControl - 188, 45 + 282, 67 + + + 5, 5, 5, 5 - 20, 16 + 30, 24 73 @@ -5766,10 +6312,13 @@ with profile NoControl - 44, 48 + 66, 72 + + + 5, 5, 5, 5 - 11, 15 + 17, 23 80 @@ -5799,10 +6348,13 @@ with profile NoControl - 70, 90 + 106, 134 + + + 5, 5, 5, 5 - 28, 28 + 42, 42 91 @@ -5832,10 +6384,13 @@ with profile NoControl - 44, 73 + 66, 109 + + + 5, 5, 5, 5 - 12, 12 + 18, 18 81 @@ -5865,10 +6420,13 @@ with profile NoControl - 55, 61 + 83, 91 + + + 5, 5, 5, 5 - 14, 14 + 22, 22 82 @@ -5898,10 +6456,13 @@ with profile NoControl - 31, 61 + 47, 91 + + + 5, 5, 5, 5 - 14, 12 + 22, 18 83 @@ -5931,10 +6492,13 @@ with profile NoControl - 31, 13 + 47, 19 + + + 5, 5, 5, 5 - 43, 15 + 65, 23 88 @@ -5964,10 +6528,13 @@ with profile NoControl - 167, 33 + 251, 49 + + + 5, 5, 5, 5 - 11, 21 + 17, 31 84 @@ -5997,10 +6564,13 @@ with profile NoControl - 115, 87 + 173, 131 + + + 5, 5, 5, 5 - 18, 18 + 26, 26 86 @@ -6030,10 +6600,13 @@ with profile NoControl - 71, 33 + 107, 49 + + + 5, 5, 5, 5 - 11, 18 + 17, 26 85 @@ -6063,10 +6636,13 @@ with profile NoControl - 31, 0 + 47, 0 + + + 5, 5, 5, 5 - 43, 12 + 65, 18 90 @@ -6096,10 +6672,13 @@ with profile NoControl - 174, 0 + 262, 0 + + + 5, 5, 5, 5 - 40, 13 + 60, 19 89 @@ -6120,10 +6699,13 @@ with profile 22 - 6, 42 + 10, 62 + + + 5, 5, 5, 5 - 249, 137 + 373, 205 185 @@ -6140,6 +6722,9 @@ with profile 2 + + 20 + Cross : @@ -6240,10 +6825,13 @@ with profile Sixaxis Right : - 257, 7 + 385, 11 + + + 5, 5, 5, 5 - 169, 173 + 251, 244 180 @@ -6264,10 +6852,13 @@ with profile NoControl - 24, 5 + 36, 7 + + + 5, 0, 5, 0 - 219, 26 + 329, 38 181 @@ -6295,10 +6886,13 @@ Click the lightbar for color picker NoControl - 71, 9 + 107, 13 + + + 5, 5, 5, 5 - 106, 23 + 158, 35 184 @@ -6327,8 +6921,11 @@ Click the lightbar for color picker 0, 1 + + 5, 5, 5, 5 + - 245, 132 + 367, 198 StretchImage @@ -6358,10 +6955,13 @@ Click the lightbar for color picker NoControl - 36, 92 + 54, 138 + + + 5, 5, 5, 5 - 23, 23 + 35, 35 163 @@ -6391,10 +6991,13 @@ Click the lightbar for color picker NoControl - 182, 116 + 274, 174 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 172 @@ -6424,10 +7027,13 @@ Click the lightbar for color picker NoControl - 36, 77 + 54, 115 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 167 @@ -6457,10 +7063,13 @@ Click the lightbar for color picker NoControl - 182, 78 + 274, 118 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 171 @@ -6490,10 +7099,13 @@ Click the lightbar for color picker NoControl - 21, 92 + 31, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 164 @@ -6523,10 +7135,13 @@ Click the lightbar for color picker NoControl - 210, 92 + 314, 138 + + + 5, 5, 5, 5 - 13, 23 + 19, 35 170 @@ -6556,10 +7171,13 @@ Click the lightbar for color picker NoControl - 65, 92 + 97, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 165 @@ -6589,10 +7207,13 @@ Click the lightbar for color picker NoControl - 165, 92 + 247, 138 + + + 5, 5, 5, 5 - 11, 23 + 17, 35 169 @@ -6622,10 +7243,13 @@ Click the lightbar for color picker NoControl - 36, 120 + 54, 180 + + + 5, 5, 5, 5 - 23, 11 + 35, 17 166 @@ -6655,10 +7279,13 @@ Click the lightbar for color picker NoControl - 182, 92 + 274, 138 + + + 5, 5, 5, 5 - 23, 23 + 35, 35 168 @@ -6679,10 +7306,13 @@ Click the lightbar for color picker 11 - 6, 42 + 10, 62 + + + 5, 5, 5, 5 - 249, 142 + 373, 214 187 @@ -6703,13 +7333,16 @@ Click the lightbar for color picker 5 - 4, 22 + 4, 29 + + + 5, 5, 5, 5 - 3, 3, 3, 3 + 5, 5, 5, 5 - 428, 216 + 646, 329 0 @@ -6730,10 +7363,13 @@ Click the lightbar for color picker 0 - 3, 3 + 5, 5 + + + 5, 5, 5, 5 - 436, 242 + 654, 362 253 @@ -6750,26 +7386,29 @@ Click the lightbar for color picker 0 + + 17, 17 + True - 96, 96 + 144, 144 True - 885, 325 + 1320, 464 - - NoControl + + 5, 5, 5, 5 - 901, 364 + 1347, 525 - 100, 100 + 140, 124 Profile Options diff --git a/DS4Tool/Program.cs b/DS4Tool/Program.cs index 1d8f651..5d9ec14 100644 --- a/DS4Tool/Program.cs +++ b/DS4Tool/Program.cs @@ -38,7 +38,7 @@ namespace ScpServer { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new ScpForm(args)); + Application.Run(new DS4Form(args)); } else { diff --git a/DS4Tool/Properties/AssemblyInfo.cs b/DS4Tool/Properties/AssemblyInfo.cs index 97f51be..3d88380 100644 --- a/DS4Tool/Properties/AssemblyInfo.cs +++ b/DS4Tool/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.4.0.872")] -[assembly: AssemblyFileVersion("1.4.0.872")] +[assembly: AssemblyVersion("1.4.1")] +[assembly: AssemblyFileVersion("1.4.1")] diff --git a/DS4Tool/Properties/Resources.resx b/DS4Tool/Properties/Resources.resx index c2141e7..160431d 100644 --- a/DS4Tool/Properties/Resources.resx +++ b/DS4Tool/Properties/Resources.resx @@ -118,9 +118,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\Resources\DS4.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\mouse.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -547,4 +544,13 @@ Installing... + + ..\Resources\DS4.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\DS4W.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Install Failed, Please Retry + \ No newline at end of file diff --git a/DS4Tool/Properties/Resources1.Designer.cs b/DS4Tool/Properties/Resources1.Designer.cs index 7eb8b03..f075499 100644 --- a/DS4Tool/Properties/Resources1.Designer.cs +++ b/DS4Tool/Properties/Resources1.Designer.cs @@ -431,6 +431,16 @@ namespace ScpServer.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon DS4W { + get { + object obj = ResourceManager.GetObject("DS4W", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized string similar to DS4Windows cannot edit settings here, This will now close. /// @@ -596,6 +606,15 @@ namespace ScpServer.Properties { } } + /// + /// Looks up a localized string similar to Install Failed, Please Retry. + /// + internal static string InstallFailed { + get { + return ResourceManager.GetString("InstallFailed", resourceCulture); + } + } + /// /// Looks up a localized string similar to Installing.... /// diff --git a/DS4Tool/Properties/Settings.Designer.cs b/DS4Tool/Properties/Settings.Designer.cs index 6679ee6..c075372 100644 --- a/DS4Tool/Properties/Settings.Designer.cs +++ b/DS4Tool/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34209 +// Runtime Version:4.0.30319.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/DS4Tool/RecordBox.Designer.cs b/DS4Tool/RecordBox.Designer.cs index 92bd343..cdf9512 100644 --- a/DS4Tool/RecordBox.Designer.cs +++ b/DS4Tool/RecordBox.Designer.cs @@ -38,13 +38,16 @@ this.cBStyle = new System.Windows.Forms.ComboBox(); this.btnSave = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); - this.cB360Controls = new System.Windows.Forms.ComboBox(); - this.lBHoldX360 = new System.Windows.Forms.Label(); - this.pnlSettings = new System.Windows.Forms.Panel(); + this.btnSaveP = new System.Windows.Forms.Button(); + this.lbRecordTip = new System.Windows.Forms.Label(); this.pnlMouseButtons = new System.Windows.Forms.Panel(); this.btn5th = new System.Windows.Forms.Button(); this.btn4th = new System.Windows.Forms.Button(); - this.pnlSettings.SuspendLayout(); + this.btnLoadP = new System.Windows.Forms.Button(); + this.savePresets = new System.Windows.Forms.SaveFileDialog(); + this.openPresets = new System.Windows.Forms.OpenFileDialog(); + this.lbMacroOrder = new System.Windows.Forms.Label(); + this.lbDelayTip = new System.Windows.Forms.Label(); this.pnlMouseButtons.SuspendLayout(); this.SuspendLayout(); // @@ -74,16 +77,19 @@ resources.ApplyResources(this.lVMacros, "lVMacros"); this.lVMacros.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1}); - this.lVMacros.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.lVMacros.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; this.lVMacros.LargeImageList = this.iLKeys; + this.lVMacros.MultiSelect = false; this.lVMacros.Name = "lVMacros"; this.lVMacros.SmallImageList = this.iLKeys; + this.lVMacros.TileSize = new System.Drawing.Size(180, 30); this.lVMacros.UseCompatibleStateImageBehavior = false; this.lVMacros.View = System.Windows.Forms.View.Details; this.lVMacros.KeyDown += new System.Windows.Forms.KeyEventHandler(this.anyKeyDown); this.lVMacros.KeyUp += new System.Windows.Forms.KeyEventHandler(this.anyKeyUp); + this.lVMacros.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lVMacros_MouseDoubleClick); this.lVMacros.MouseDown += new System.Windows.Forms.MouseEventHandler(this.anyMouseDown); - this.lVMacros.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lVMacros_MouseMove); + this.lVMacros.MouseHover += new System.EventHandler(this.lVMacros_MouseHover); this.lVMacros.MouseUp += new System.Windows.Forms.MouseEventHandler(this.anyMouseUp); // // columnHeader1 @@ -122,57 +128,17 @@ this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // - // cB360Controls + // btnSaveP // - resources.ApplyResources(this.cB360Controls, "cB360Controls"); - this.cB360Controls.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cB360Controls.FormattingEnabled = true; - this.cB360Controls.Items.AddRange(new object[] { - resources.GetString("cB360Controls.Items"), - resources.GetString("cB360Controls.Items1"), - resources.GetString("cB360Controls.Items2"), - resources.GetString("cB360Controls.Items3"), - resources.GetString("cB360Controls.Items4"), - resources.GetString("cB360Controls.Items5"), - resources.GetString("cB360Controls.Items6"), - resources.GetString("cB360Controls.Items7"), - resources.GetString("cB360Controls.Items8"), - resources.GetString("cB360Controls.Items9"), - resources.GetString("cB360Controls.Items10"), - resources.GetString("cB360Controls.Items11"), - resources.GetString("cB360Controls.Items12"), - resources.GetString("cB360Controls.Items13"), - resources.GetString("cB360Controls.Items14"), - resources.GetString("cB360Controls.Items15"), - resources.GetString("cB360Controls.Items16"), - resources.GetString("cB360Controls.Items17"), - resources.GetString("cB360Controls.Items18"), - resources.GetString("cB360Controls.Items19"), - resources.GetString("cB360Controls.Items20"), - resources.GetString("cB360Controls.Items21"), - resources.GetString("cB360Controls.Items22"), - resources.GetString("cB360Controls.Items23"), - resources.GetString("cB360Controls.Items24"), - resources.GetString("cB360Controls.Items25")}); - this.cB360Controls.Name = "cB360Controls"; + resources.ApplyResources(this.btnSaveP, "btnSaveP"); + this.btnSaveP.Name = "btnSaveP"; + this.btnSaveP.UseVisualStyleBackColor = true; + this.btnSaveP.Click += new System.EventHandler(this.btnSaveP_Click); // - // lBHoldX360 + // lbRecordTip // - resources.ApplyResources(this.lBHoldX360, "lBHoldX360"); - this.lBHoldX360.Name = "lBHoldX360"; - // - // pnlSettings - // - resources.ApplyResources(this.pnlSettings, "pnlSettings"); - this.pnlSettings.Controls.Add(this.lBHoldX360); - this.pnlSettings.Controls.Add(this.cBStyle); - this.pnlSettings.Controls.Add(this.cB360Controls); - this.pnlSettings.Controls.Add(this.cBRecordDelays); - this.pnlSettings.Controls.Add(this.btnCancel); - this.pnlSettings.Controls.Add(this.btnSave); - this.pnlSettings.Name = "pnlSettings"; - this.pnlSettings.MouseDown += new System.Windows.Forms.MouseEventHandler(this.anyMouseDown); - this.pnlSettings.MouseUp += new System.Windows.Forms.MouseEventHandler(this.anyMouseUp); + resources.ApplyResources(this.lbRecordTip, "lbRecordTip"); + this.lbRecordTip.Name = "lbRecordTip"; // // pnlMouseButtons // @@ -201,16 +167,50 @@ this.btn4th.KeyDown += new System.Windows.Forms.KeyEventHandler(this.anyKeyDown); this.btn4th.KeyUp += new System.Windows.Forms.KeyEventHandler(this.anyKeyUp); // + // btnLoadP + // + resources.ApplyResources(this.btnLoadP, "btnLoadP"); + this.btnLoadP.Name = "btnLoadP"; + this.btnLoadP.UseVisualStyleBackColor = true; + this.btnLoadP.Click += new System.EventHandler(this.btnLoadP_Click); + // + // savePresets + // + resources.ApplyResources(this.savePresets, "savePresets"); + // + // openPresets + // + this.openPresets.FileName = "openFileDialog1"; + resources.ApplyResources(this.openPresets, "openPresets"); + // + // lbMacroOrder + // + resources.ApplyResources(this.lbMacroOrder, "lbMacroOrder"); + this.lbMacroOrder.Name = "lbMacroOrder"; + // + // lbDelayTip + // + resources.ApplyResources(this.lbDelayTip, "lbDelayTip"); + this.lbDelayTip.Name = "lbDelayTip"; + // // RecordBox // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.Controls.Add(this.lbMacroOrder); + this.Controls.Add(this.cBStyle); + this.Controls.Add(this.btnSaveP); + this.Controls.Add(this.cBRecordDelays); + this.Controls.Add(this.btnLoadP); + this.Controls.Add(this.lbDelayTip); + this.Controls.Add(this.lbRecordTip); this.Controls.Add(this.btnRecord); this.Controls.Add(this.lVMacros); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.btnSave); this.Controls.Add(this.pnlMouseButtons); - this.Controls.Add(this.pnlSettings); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "RecordBox"; this.ShowInTaskbar = false; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.RecordBox_FormClosing); @@ -218,10 +218,9 @@ this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.anyKeyUp); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.anyMouseDown); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.anyMouseUp); - this.pnlSettings.ResumeLayout(false); - this.pnlSettings.PerformLayout(); this.pnlMouseButtons.ResumeLayout(false); this.ResumeLayout(false); + this.PerformLayout(); } @@ -235,11 +234,15 @@ private System.Windows.Forms.ComboBox cBStyle; private System.Windows.Forms.Button btnSave; private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.ComboBox cB360Controls; - private System.Windows.Forms.Label lBHoldX360; - private System.Windows.Forms.Panel pnlSettings; private System.Windows.Forms.Panel pnlMouseButtons; private System.Windows.Forms.Button btn5th; private System.Windows.Forms.Button btn4th; + private System.Windows.Forms.Label lbRecordTip; + private System.Windows.Forms.Button btnSaveP; + private System.Windows.Forms.Button btnLoadP; + private System.Windows.Forms.SaveFileDialog savePresets; + private System.Windows.Forms.OpenFileDialog openPresets; + private System.Windows.Forms.Label lbMacroOrder; + private System.Windows.Forms.Label lbDelayTip; } } \ No newline at end of file diff --git a/DS4Tool/RecordBox.cs b/DS4Tool/RecordBox.cs index 4a515fe..3460620 100644 --- a/DS4Tool/RecordBox.cs +++ b/DS4Tool/RecordBox.cs @@ -9,17 +9,27 @@ using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using DS4Control; +using DS4Library; +using System.IO; +using System.Reflection; namespace ScpServer { public partial class RecordBox : Form { + private DS4Control.Control scpDevice; Stopwatch sw = new Stopwatch(); + Timer ds4 = new Timer(); public List macros = new List(); public List macronames = new List(); KBM360 kbm; - public RecordBox(KBM360 op) + DS4State cState; + public bool saved = false; + List dcs = new List(); + public RecordBox(KBM360 op, DS4Control.Control bus_device) { + scpDevice = bus_device; kbm = op; InitializeComponent(); if (op != null) @@ -27,7 +37,178 @@ namespace ScpServer cBStyle.SelectedIndex = 1; else cBStyle.SelectedIndex = 0; - cB360Controls.SelectedIndex = 0; + ds4.Tick += ds4_Tick; + ds4.Interval = 1; + dcs.Add(DS4Controls.Cross); + dcs.Add(DS4Controls.Cross); + dcs.Add(DS4Controls.Circle); + dcs.Add(DS4Controls.Square); + dcs.Add(DS4Controls.Triangle); + dcs.Add(DS4Controls.Options); + dcs.Add(DS4Controls.Share); + dcs.Add(DS4Controls.DpadUp); + dcs.Add(DS4Controls.DpadDown); + dcs.Add(DS4Controls.DpadLeft); + dcs.Add(DS4Controls.DpadRight); + dcs.Add(DS4Controls.PS); + dcs.Add(DS4Controls.L1); + dcs.Add(DS4Controls.R1); + dcs.Add(DS4Controls.L2); + dcs.Add(DS4Controls.R2); + dcs.Add(DS4Controls.L3); + dcs.Add(DS4Controls.R3); + dcs.Add(DS4Controls.LXPos); + dcs.Add(DS4Controls.LXNeg); + dcs.Add(DS4Controls.LYPos); + dcs.Add(DS4Controls.LYNeg); + dcs.Add(DS4Controls.RXPos); + dcs.Add(DS4Controls.RXNeg); + dcs.Add(DS4Controls.RYPos); + dcs.Add(DS4Controls.RYNeg); + if (kbm.macrostag.Count > 0) + { + macros.AddRange(kbm.macrostag); + LoadMacro(); + saved = true; + } + } + + void ds4_Tick(object sender, EventArgs e) + { + if (scpDevice.DS4Controllers[0] != null) + { + cState = scpDevice.getDS4State(0); + if (btnRecord.Text == Properties.Resources.StopText) + foreach (DS4Controls dc in dcs) + if (Mapping.getBoolMapping(dc, cState, null, null)) + { + int value = DS4ControltoInt(dc); + int count = 0; + foreach (int i in macros) + { + if (i == value) + count++; + } + if (macros.Count == 0) + { + macros.Add(value); + lVMacros.Items.Add(DS4ControltoX360(dc), 0); + if (cBRecordDelays.Checked) + { + sw.Reset(); + sw.Start(); + } + } + else if (count % 2 == 0) + { + if (cBRecordDelays.Checked) + { + macros.Add((int)sw.ElapsedMilliseconds + 300); + lVMacros.Items.Add(Properties.Resources.WaitMS.Replace("*number*", sw.ElapsedMilliseconds.ToString()).Replace("*ms*", "ms"), 2); + sw.Reset(); + sw.Start(); + } + macros.Add(value); + lVMacros.Items.Add(DS4ControltoX360(dc), 0); + } + lVMacros.Items[lVMacros.Items.Count - 1].EnsureVisible(); + } + else if (!Mapping.getBoolMapping(dc, cState, null, null)) + { + if (macros.Count != 0) + { + int value = DS4ControltoInt(dc); + int count = 0; + foreach (int i in macros) + { + if (i == value) + count++; + } + /*for (int i = macros.Count - 1; i >= 0; i--) + if (macros.Count == 261) + count++;*/ + if (count % 2 == 1) + { + if (cBRecordDelays.Checked) + { + macros.Add((int)sw.ElapsedMilliseconds + 300); + lVMacros.Items.Add(Properties.Resources.WaitMS.Replace("*number*", sw.ElapsedMilliseconds.ToString()).Replace("*ms*", "ms"), 2); + sw.Reset(); + sw.Start(); + } + macros.Add(value); + lVMacros.Items.Add(DS4ControltoX360(dc), 1); + lVMacros.Items[lVMacros.Items.Count - 1].EnsureVisible(); + } + } + } + } + } + + public static int DS4ControltoInt(DS4Controls ctrl) + { + switch (ctrl) + { + case DS4Controls.Cross: return 261; + case DS4Controls.Circle: return 262; + case DS4Controls.Square: return 263; + case DS4Controls.Triangle: return 264; + case DS4Controls.Options: return 265; + case DS4Controls.Share: return 266; + case DS4Controls.DpadUp: return 267; + case DS4Controls.DpadDown: return 268; + case DS4Controls.DpadLeft: return 269; + case DS4Controls.DpadRight: return 270; + case DS4Controls.PS: return 271; + case DS4Controls.L1: return 272; + case DS4Controls.R1: return 273; + case DS4Controls.L2: return 274; + case DS4Controls.R2: return 275; + case DS4Controls.L3: return 276; + case DS4Controls.R3: return 277; + case DS4Controls.LXPos: return 278; + case DS4Controls.LXNeg: return 279; + case DS4Controls.LYPos: return 280; + case DS4Controls.LYNeg: return 281; + case DS4Controls.RXPos: return 282; + case DS4Controls.RXNeg: return 283; + case DS4Controls.RYPos: return 284; + case DS4Controls.RYNeg: return 285; + } + return 0; + } + + public static string DS4ControltoX360(DS4Controls ctrl) + { + switch (ctrl) + { + case DS4Controls.Cross: return "A Button"; + case DS4Controls.Circle: return "B Button"; + case DS4Controls.Square: return "X Button"; + case DS4Controls.Triangle: return "Y Button"; + case DS4Controls.Options: return "Start"; + case DS4Controls.Share: return "Back"; + case DS4Controls.DpadUp: return "Up Button"; + case DS4Controls.DpadDown: return "Down Button"; + case DS4Controls.DpadLeft: return "Left Button"; + case DS4Controls.DpadRight: return "Right Button"; + case DS4Controls.PS: return "Guide"; + case DS4Controls.L1: return "Left Bumper"; + case DS4Controls.R1: return "Right Bumper"; + case DS4Controls.L2: return "Left Trigger"; + case DS4Controls.R2: return "Right Trigger"; + case DS4Controls.L3: return "Left Stick"; + case DS4Controls.R3: return "Right Stick"; + case DS4Controls.LXPos: return "LS Right"; + case DS4Controls.LXNeg: return "LS Left"; + case DS4Controls.LYPos: return "LS Down"; + case DS4Controls.LYNeg: return "LS Up"; + case DS4Controls.RXPos: return "RS Right"; + case DS4Controls.RXNeg: return "RS Left"; + case DS4Controls.RYPos: return "RS Down"; + case DS4Controls.RYNeg: return "RS Up"; + } + return "None"; } private void btnRecord_Click(object sender, EventArgs e) @@ -36,6 +217,9 @@ namespace ScpServer { if (cBRecordDelays.Checked) sw.Start(); + scpDevice.recordingMacro = true; + saved = false; + ds4.Start(); macros.Clear(); lVMacros.Items.Clear(); btnRecord.Text = Properties.Resources.StopText; @@ -45,12 +229,16 @@ namespace ScpServer } else { + scpDevice.recordingMacro = false; + ds4.Stop(); if (btn4th.Text.Contains(Properties.Resources.UpText)) btn4th_Click(sender, e); if (btn5th.Text.Contains(Properties.Resources.UpText)) btn5th_Click(sender, e); if (cBRecordDelays.Checked) sw.Reset(); + if (cBRecordDelays.Checked) + lbDelayTip.Visible = true; btnRecord.Text = Properties.Resources.RecordText; EnableControls(true); } @@ -59,7 +247,8 @@ namespace ScpServer private void EnableControls(bool on) { lVMacros.Enabled = on; - pnlSettings.Visible = on; + cBRecordDelays.Enabled = on; + cBStyle.Enabled = on; pnlMouseButtons.Visible = !on; } @@ -255,14 +444,13 @@ namespace ScpServer } } - bool saved = false; - private void btnSave_Click(object sender, EventArgs e) + + public void btnSave_Click(object sender, EventArgs e) { if (macros.Count > 0) { - if (cB360Controls.SelectedIndex > 0) - macros.Insert(0, cB360Controls.SelectedIndex + 260); kbm.macrostag = macros; + macronames.Clear(); foreach (ListViewItem lvi in lVMacros.Items) { macronames.Add(lvi.Text); @@ -273,13 +461,72 @@ namespace ScpServer if (cBStyle.SelectedIndex == 1) kbm.macrorepeat = true; saved = true; - Close(); + if (sender != kbm) + kbm.Close(); + //Close(); } else MessageBox.Show(Properties.Resources.NoMacroRecorded, "DS4Windows", MessageBoxButtons.OK, MessageBoxIcon.Warning); } - - private void lVMacros_MouseMove(object sender, MouseEventArgs e) + + + private void btnSaveP_Click(object sender, EventArgs e) { + if (macros.Count > 0) + { + Stream stream; + Console.WriteLine(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName); + Console.WriteLine(Global.appdatapath); + //string path; + if (Global.appdatapath == Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName) + savePresets.InitialDirectory = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName + @"\Macros\"; + else + savePresets.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DS4Tool" + @"\Macros\"; + if (!Directory.Exists(savePresets.InitialDirectory)) + { + Directory.CreateDirectory(savePresets.InitialDirectory); + //savePresets.InitialDirectory = path; + } + Console.WriteLine(savePresets.InitialDirectory); + if (savePresets.ShowDialog() == System.Windows.Forms.DialogResult.OK) + if ((stream = savePresets.OpenFile()) != null) + { + string macro = string.Join("/", macros.ToArray()); + StreamWriter sw = new StreamWriter(stream); + sw.Write(macro); + sw.Close(); + //stream.Close(); + } + } + else MessageBox.Show(Properties.Resources.NoMacroRecorded, "DS4Windows", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + + private void btnLoadP_Click(object sender, EventArgs e) + { + if (Global.appdatapath == Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName) + openPresets.InitialDirectory = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName + @"\Macros\"; + else + openPresets.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\DS4Tool" + @"\Macros\"; + if (openPresets.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + string file = openPresets.FileName; + macros.Clear(); + lVMacros.Items.Clear(); + StreamReader sr = new StreamReader(file); + string[] macs = File.ReadAllText(file).Split('/'); + int temp; + foreach (string s in macs) + { + if (int.TryParse(s, out temp)) + macros.Add(temp); + } + LoadMacro(); + sr.Close(); + } + } + + private void lVMacros_MouseHover(object sender, EventArgs e) + { + lVMacros.Focus(); } private void btnCancel_Click(object sender, EventArgs e) @@ -287,65 +534,7 @@ namespace ScpServer saved = true; Close(); } - - - - private void RecordBox_FormClosing(object sender, FormClosingEventArgs e) - { - if (!saved && macros.Count > 0) - if (MessageBox.Show(Properties.Resources.SaveRecordedMacro, "DS4Windows", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) - btnSave_Click(null, null); - } - - protected override bool IsInputKey(Keys keyData) - { - switch (keyData) - { - case Keys.Right: - case Keys.Left: - case Keys.Up: - case Keys.Down: - case Keys.Tab: - case Keys.MediaPlayPause: - case Keys.MediaPreviousTrack: - case Keys.MediaNextTrack: - return true; - case Keys.Shift | Keys.Right: - case Keys.Shift | Keys.Left: - case Keys.Shift | Keys.Up: - case Keys.Shift | Keys.Down: - case Keys.Shift | Keys.Tab: - case Keys.Shift | Keys.MediaPlayPause: - case Keys.Shift | Keys.MediaPreviousTrack: - case Keys.Shift | Keys.MediaNextTrack: - return true; - } - return base.IsInputKey(keyData); - } - protected override void OnKeyDown(KeyEventArgs e) - { - base.OnKeyDown(e); - switch (e.KeyCode) - { - case Keys.Left: - case Keys.Right: - case Keys.Up: - case Keys.Down: - case Keys.Tab: - case Keys.MediaPlayPause: - case Keys.MediaPreviousTrack: - case Keys.MediaNextTrack: - if (e.Shift) - { - - } - else - { - } - break; - } - } - + private void btn4th_Click(object sender, EventArgs e) { int value = 259; @@ -435,5 +624,243 @@ namespace ScpServer } lVMacros.Items[lVMacros.Items.Count - 1].EnsureVisible(); } + + void LoadMacro() + { + + if (macros.Count > 0) + { + bool[] keydown = new bool[286]; + foreach (int i in macros) + { + if (i >= 300) //ints over 300 used to delay + lVMacros.Items.Add(Properties.Resources.WaitMS.Replace("*number*", (i - 300).ToString()).Replace("*ms*", "ms"), 2); + else if (!keydown[i]) + { + //anything above 255 is not a keyvalue + if (i == 256) lVMacros.Items.Add("Left Mouse Button", 0); + else if (i == 257) lVMacros.Items.Add("Right Mouse Button", 0); + else if (i == 258) lVMacros.Items.Add("Middle Mouse Button", 0); + else if (i == 259) lVMacros.Items.Add("4th Mouse Button", 0); + else if (i == 260) lVMacros.Items.Add("5th Mouse Button", 0); + else if (i == 261) lVMacros.Items.Add("A Button", 0); + else if (i == 262) lVMacros.Items.Add("B Button", 0); + else if (i == 263) lVMacros.Items.Add("X Button", 0); + else if (i == 264) lVMacros.Items.Add("Y Button", 0); + else if (i == 265) lVMacros.Items.Add("Start", 0); + else if (i == 266) lVMacros.Items.Add("Back", 0); + else if (i == 267) lVMacros.Items.Add("Up Button", 0); + else if (i == 268) lVMacros.Items.Add("Down Button", 0); + else if (i == 269) lVMacros.Items.Add("Left Button", 0); + else if (i == 270) lVMacros.Items.Add("Right Button", 0); + else if (i == 271) lVMacros.Items.Add("Guide", 0); + else if (i == 272) lVMacros.Items.Add("Left Bumper", 0); + else if (i == 273) lVMacros.Items.Add("Right Bumper", 0); + else if (i == 274) lVMacros.Items.Add("Left Trigger", 0); + else if (i == 275) lVMacros.Items.Add("Right Trigger", 0); + else if (i == 276) lVMacros.Items.Add("Left Stick", 0); + else if (i == 277) lVMacros.Items.Add("Right Stick", 0); + else if (i == 278) lVMacros.Items.Add("LS Right", 0); + else if (i == 279) lVMacros.Items.Add("LS Left", 0); + else if (i == 280) lVMacros.Items.Add("LS Down", 0); + else if (i == 281) lVMacros.Items.Add("LS Up", 0); + else if (i == 282) lVMacros.Items.Add("RS Right", 0); + else if (i == 283) lVMacros.Items.Add("RS Left", 0); + else if (i == 284) lVMacros.Items.Add("RS Down", 0); + else if (i == 285) lVMacros.Items.Add("RS Up", 0); + else lVMacros.Items.Add(((Keys)i).ToString(), 0); + keydown[i] = true; + } + else + { + if (i == 256) lVMacros.Items.Add("Left Mouse Button", 1); + else if (i == 257) lVMacros.Items.Add("Right Mouse Button", 1); + else if (i == 258) lVMacros.Items.Add("Middle Mouse Button", 1); + else if (i == 259) lVMacros.Items.Add("4th Mouse Button", 1); + else if (i == 260) lVMacros.Items.Add("5th Mouse Button", 1); + else if (i == 261) lVMacros.Items.Add("A Button", 1); + else if (i == 262) lVMacros.Items.Add("B Button", 1); + else if (i == 263) lVMacros.Items.Add("X Button", 1); + else if (i == 264) lVMacros.Items.Add("Y Button", 1); + else if (i == 265) lVMacros.Items.Add("Start", 1); + else if (i == 266) lVMacros.Items.Add("Back", 1); + else if (i == 267) lVMacros.Items.Add("Up Button", 1); + else if (i == 268) lVMacros.Items.Add("Down Button", 1); + else if (i == 269) lVMacros.Items.Add("Left Button", 1); + else if (i == 270) lVMacros.Items.Add("Right Button", 1); + else if (i == 271) lVMacros.Items.Add("Guide", 1); + else if (i == 272) lVMacros.Items.Add("Left Bumper", 1); + else if (i == 273) lVMacros.Items.Add("Right Bumper", 1); + else if (i == 274) lVMacros.Items.Add("Left Trigger", 1); + else if (i == 275) lVMacros.Items.Add("Right Trigger", 1); + else if (i == 276) lVMacros.Items.Add("Left Stick", 1); + else if (i == 277) lVMacros.Items.Add("Right Stick", 1); + else if (i == 278) lVMacros.Items.Add("LS Right", 1); + else if (i == 279) lVMacros.Items.Add("LS Left", 1); + else if (i == 280) lVMacros.Items.Add("LS Down", 1); + else if (i == 281) lVMacros.Items.Add("LS Up", 1); + else if (i == 282) lVMacros.Items.Add("RS Right", 1); + else if (i == 283) lVMacros.Items.Add("RS Left", 1); + else if (i == 284) lVMacros.Items.Add("RS Down", 1); + else if (i == 285) lVMacros.Items.Add("RS Up", 1); + else lVMacros.Items.Add(((Keys)i).ToString(), 1); + keydown[i] = false; + } + } + for (ushort i = 0; i < keydown.Length; i++) + { + if (keydown[i]) + { + if (i == 256) lVMacros.Items.Add("Left Mouse Button", 1); + else if (i == 257) lVMacros.Items.Add("Right Mouse Button", 1); + else if (i == 258) lVMacros.Items.Add("Middle Mouse Button", 1); + else if (i == 259) lVMacros.Items.Add("4th Mouse Button", 1); + else if (i == 260) lVMacros.Items.Add("5th Mouse Button", 1); + else if (i == 261) lVMacros.Items.Add("A Button", 1); + else if (i == 262) lVMacros.Items.Add("B Button", 1); + else if (i == 263) lVMacros.Items.Add("X Button", 1); + else if (i == 264) lVMacros.Items.Add("Y Button", 1); + else if (i == 265) lVMacros.Items.Add("Start", 1); + else if (i == 266) lVMacros.Items.Add("Back", 1); + else if (i == 267) lVMacros.Items.Add("Up Button", 1); + else if (i == 268) lVMacros.Items.Add("Down Button", 1); + else if (i == 269) lVMacros.Items.Add("Left Button", 1); + else if (i == 270) lVMacros.Items.Add("Right Button", 1); + else if (i == 271) lVMacros.Items.Add("Guide", 1); + else if (i == 272) lVMacros.Items.Add("Left Bumper", 1); + else if (i == 273) lVMacros.Items.Add("Right Bumper", 1); + else if (i == 274) lVMacros.Items.Add("Left Trigger", 1); + else if (i == 275) lVMacros.Items.Add("Right Trigger", 1); + else if (i == 276) lVMacros.Items.Add("Left Stick", 1); + else if (i == 277) lVMacros.Items.Add("Right Stick", 1); + else if (i == 278) lVMacros.Items.Add("LS Right", 1); + else if (i == 279) lVMacros.Items.Add("LS Left", 1); + else if (i == 280) lVMacros.Items.Add("LS Down", 1); + else if (i == 281) lVMacros.Items.Add("LS Up", 1); + else if (i == 282) lVMacros.Items.Add("RS Right", 1); + else if (i == 283) lVMacros.Items.Add("RS Left", 1); + else if (i == 284) lVMacros.Items.Add("RS Down", 1); + else if (i == 285) lVMacros.Items.Add("RS Up", 1); + else lVMacros.Items.Add(((Keys)i).ToString(), 1); + macros.Add(i); + } + } + } + } + + + + private void RecordBox_FormClosing(object sender, FormClosingEventArgs e) + { + if (!saved && macros.Count > 0) + if (MessageBox.Show(Properties.Resources.SaveRecordedMacro, "DS4Windows", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) + btnSave_Click(null, null); + } + + protected override bool IsInputKey(Keys keyData) + { + switch (keyData) + { + case Keys.Right: + case Keys.Left: + case Keys.Up: + case Keys.Down: + case Keys.Tab: + case Keys.MediaPlayPause: + case Keys.MediaPreviousTrack: + case Keys.MediaNextTrack: + return true; + case Keys.Shift | Keys.Right: + case Keys.Shift | Keys.Left: + case Keys.Shift | Keys.Up: + case Keys.Shift | Keys.Down: + case Keys.Shift | Keys.Tab: + case Keys.Shift | Keys.MediaPlayPause: + case Keys.Shift | Keys.MediaPreviousTrack: + case Keys.Shift | Keys.MediaNextTrack: + return true; + } + return base.IsInputKey(keyData); + } + protected override void OnKeyDown(KeyEventArgs e) + { + base.OnKeyDown(e); + switch (e.KeyCode) + { + case Keys.Left: + case Keys.Right: + case Keys.Up: + case Keys.Down: + case Keys.Tab: + case Keys.MediaPlayPause: + case Keys.MediaPreviousTrack: + case Keys.MediaNextTrack: + if (e.Shift) + { + + } + else + { + } + break; + } + } + private int selection; + private void lVMacros_MouseDoubleClick(object sender, MouseEventArgs e) + { + if (lVMacros.SelectedIndices[0] >= 0 && lVMacros.SelectedItems[0].ImageIndex == 2) + { + TextBox tb = new TextBox(); + tb.KeyDown += nud_KeyDown; + tb.LostFocus += nud_LostFocus; + selection = lVMacros.SelectedIndices[0]; + Controls.Add(tb); + tb.Location = new Point(lVMacros.Location.X + lVMacros.SelectedItems[0].Position.X, lVMacros.Location.Y + lVMacros.SelectedItems[0].Position.Y); + tb.BringToFront(); + lVMacros.MouseHover -= lVMacros_MouseHover; + tb.TextChanged += tb_TextChanged; + tb.Focus(); + } + } + + void tb_TextChanged(object sender, EventArgs e) + { + TextBox tb = (TextBox)sender; + for (int i = tb.Text.Length - 1; i >= 0; i--) + if (!Char.IsDigit(tb.Text[i])) + tb.Text = tb.Text.Remove(i, 1); + } + + void nud_LostFocus(object sender, EventArgs e) + { + TextBox tb = (TextBox)sender; + int i; + if (!string.IsNullOrEmpty(tb.Text) && int.TryParse(tb.Text, out i)) + { + lVMacros.Items[selection] = new ListViewItem(Properties.Resources.WaitMS.Replace("*number*", (tb.Text)).Replace("*ms*", "ms"), 2); + macros[selection] = i + 300; + saved = false; + } + Controls.Remove(tb); + lVMacros.MouseHover += lVMacros_MouseHover; + } + + void nud_KeyDown(object sender, KeyEventArgs e) + { + TextBox tb = (TextBox)sender; + if (e.KeyCode == Keys.Enter && !string.IsNullOrEmpty(tb.Text)) + { + int i; + if (int.TryParse(tb.Text, out i)) + { + lVMacros.Items[selection] = new ListViewItem(Properties.Resources.WaitMS.Replace("*number*", (tb.Text)).Replace("*ms*", "ms"), 2); + macros[selection] = i + 300; + saved = false; + Controls.Remove(tb); + lVMacros.MouseHover += lVMacros_MouseHover; + } + } + } + } } diff --git a/DS4Tool/RecordBox.fr-FR.resx b/DS4Tool/RecordBox.fr-FR.resx index 43cc7e3..9a756c3 100644 --- a/DS4Tool/RecordBox.fr-FR.resx +++ b/DS4Tool/RecordBox.fr-FR.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAQ - CgAAAk1TRnQBSQFMAgEBAwEAAXABAAFwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CgAAAk1TRnQBSQFMAgEBAwEAAXgBAAF4AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/DS4Tool/RecordBox.resx b/DS4Tool/RecordBox.resx index 62f761e..c388ca0 100644 --- a/DS4Tool/RecordBox.resx +++ b/DS4Tool/RecordBox.resx @@ -117,420 +117,87 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - True - - - Bottom, Left, Right - - - lVMacros - - - - 3, 229 - - - pnlSettings - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - btn4th - - - X Button - - - False - - - pnlSettings - - - btnSave - - - 76, 13 - - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Right Button - - - 121, 21 - - - columnHeader1 - - - 1 - - - 327 - - - btnCancel - - - 0 - - - Record a Macro - - - 330 - - - btn5th - - - Down Button - - - pnlSettings - - - Play once - - - Left Bumper - - - Right Bumper - - - Back - - - Guide - - - Left Stick - - - Right Click - - - Left Trigger - - - Right Trigger - - - Left Y-Axis+ - - - Left Y-Axis- - - - 0 - - - 331 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 3, 232 - - - Also hold a X360 control: - - - (none) - - - Y Button - - - 0 - - - True - - - Repeat while held - - - RecordBox - - - System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 326 - - - 121, 21 - - - 268, 23 - - - 272, 78 - - - 272, 77 - - - 0 - - - 260, 205 - - - 328 - - - 147, 3 - - - 268, 200 - - - 5th Mouse Button Down - - - System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 4 - - - pnlSettings - - - B Button - - - pnlSettings - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - + Top, Right - - System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - pnlMouseButtons - - - 322 - - - Top - - - Right Y-Axis+ - - - Right Y-Axis- - - - Left X-Axis+ - - - Left X-Axis- - - - Right X-Axis+ - - - Right X-Axis- - - - 4th Mouse Button Down - - - Top, Bottom, Left, Right - - - 3 - + MiddleLeft - - System.Windows.Forms.ImageList, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 1 - - - 328 - - - Save - - - Top - - - System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Macro Order - - - 96, 17 - - - Start - - - -3, 30 - - - 3, 29 - - - Top, Left, Right - - - btnRecord - - - Cancel - - - 131, 23 - - - 147, 27 - - - 125, 13 - - - $this - - - 0, 5 - - - System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 75, 23 - - - Top, Right - - - cBStyle - - - lBHoldX360 - - - pnlMouseButtons - - 3, 2 + 536, 29 - - Left Button + + 213, 46 - - 6, 13 - - - iLKeys - - - 76, 42 - - - 0, 51 + + + 322 Record + + btnRecord + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + $this - - cBRecordDelays + + 7 + + + Top, Right + + + True + + + 591, 121 + + + 96, 17 324 - - $this - - - A Button - - - 276, 306 - - - 2 - - - pnlMouseButtons - - - pnlSettings - - - Bottom, Left, Right - - - pnlSettings - Record Delays - - 0 + + cBRecordDelays - - cB360Controls + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Top, Right + + $this - - 193, 51 - - - Up Button - - - 1 - - + 3 + + Top, Bottom, Left, Right + + + Macro Order + + + 525 + + + 17, 17 + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAQ - CgAAAk1TRnQBSQFMAgEBAwEAAVgBAAF8AQABEAEAARABAAT/AQkBEAj/AUIBTQE2AQQGAAE2AQQCAAEo + CgAAAk1TRnQBSQFMAgEBAwEAAcgBAAHIAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -572,44 +239,431 @@ AUIBTQE+BwABPgMAASgDAAFAAwABEAMAAQEBAAEBBQABgBcAA/8BAAT/AYcB4QIAAf4BfwH+AT8BgAEB AgAB/AE/Af4BPwHAAQMCAAH4AR8B/gE/AcABAwIAAfABDwH+AT8BgAEBAgAB8AEHAf4BPwGAAQECAAHy AQcB/gE/AYABAQIAAfYBJwH2ATcBgAEBAgAB/gE/AfIBJwGAAQECAAH+AT8B8AEHAYABAQIAAf4BPwHw - AQcBgAEBAgAB/gE/AfgBDwQAAf4BPwH8AR8EAAH+AT8B/gE/BAAB/gE/Af8BfwEAAQECAAT/AYMBwxgA + AQcBgAEBAgAB/gE/AfgBDwQAAf4BPwH8AR8EAAH+AT8B/gE/BAAB/gE/Af8BfwEAAQECAAT/AYMBwwIA Cw== - - 131, 23 + + 3, 29 + + + 527, 334 + + + 326 + + + lVMacros + + + System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 8 + + + Top, Right + + + Play once + + + Repeat while held + + + 578, 171 + + + 121, 21 + + + 327 + + + cBStyle + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + Top, Right + + + 536, 2 + + + 104, 23 + + + 328 + + + Save + + + btnSave + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 10 + + + Top, Right + + + 646, 2 + + + 103, 23 + + + 328 + + + Cancel + + + btnCancel + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 9 + + + Top, Right + + + NoControl + + + 646, 81 + + + 103, 23 + + + 332 + + + Save Preset + + + btnSaveP + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Top, Right + + + True + + + 309, 7 + + + 221, 13 + + + 329 + + + Use Keyboard/Mouse + Controller 1 to record + + + MiddleCenter + + + lbRecordTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 6 + + + Top, Right + + + btn5th + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + pnlMouseButtons + + + 0 + + + btn4th + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + pnlMouseButtons + + + 1 + + + 539, 198 + + + 210, 74 331 - - 75, 23 + + False - - System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + pnlMouseButtons - - 150 - - - 2 + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 $this - - 5 + + 11 - + + Top + + + 39, 39 + + + 131, 23 + + + 0 + + + 5th Mouse Button Down + + + btn5th + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + pnlMouseButtons + + + 0 + + + Top + + + 39, 10 + + + 131, 23 + + + 0 + + + 4th Mouse Button Down + + + btn4th + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + pnlMouseButtons + + + 1 + + + Top, Right + + + 536, 81 + + + 104, 23 + + + 332 + + + Load Preset + + + btnLoadP + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 4 + + + 102, 17 + + + Text Document (*.txt)|*.txt + + + 238, 17 + + + Text Document (*.txt)|*.txt + + + True + + + 3, 8 + + + 66, 13 + + + 333 + + + Macro Order + + + lbMacroOrder + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 0 + + + Top, Right + + + True + + + NoControl + + + 548, 142 + + + 184, 13 + + 329 + + Double click on a wait to edit the time + + + MiddleCenter + + + False + + + lbDelayTip + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 5 + True - - fr-FR - - - 17, 17 - + + 6, 13 + + + 750, 375 + + + 260, 205 + + + Record a Macro + + + columnHeader1 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + iLKeys + + + System.Windows.Forms.ImageList, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + savePresets + + + System.Windows.Forms.SaveFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + openPresets + + + System.Windows.Forms.OpenFileDialog, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + RecordBox + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/DS4Tool/Resources/DS4W.ico b/DS4Tool/Resources/DS4W.ico new file mode 100644 index 0000000..f75e9aa Binary files /dev/null and b/DS4Tool/Resources/DS4W.ico differ diff --git a/DS4Tool/SaveWhere.cs b/DS4Tool/SaveWhere.cs index 3e21b07..9089f18 100644 --- a/DS4Tool/SaveWhere.cs +++ b/DS4Tool/SaveWhere.cs @@ -21,7 +21,7 @@ namespace ScpServer public SaveWhere(bool multisavespots) { InitializeComponent(); - Icon = Properties.Resources.DS4; + Icon = Properties.Resources.DS4W; multisaves = multisavespots; lbMultiSaves.Visible = multisaves; cBDeleteOther.Visible = multisaves; diff --git a/DS4Tool/WelcomeDialog.cs b/DS4Tool/WelcomeDialog.cs index 6fec8af..3a584f9 100644 --- a/DS4Tool/WelcomeDialog.cs +++ b/DS4Tool/WelcomeDialog.cs @@ -23,7 +23,7 @@ namespace ScpServer public WelcomeDialog() { InitializeComponent(); - this.Icon = Properties.Resources.DS4; + Icon = Properties.Resources.DS4; } @@ -45,7 +45,7 @@ namespace ScpServer wb.DownloadFileAsync(new Uri("http://ds4windows.com/Files/Virtual Bus Driver.zip"), Global.appdatapath + "\\VBus.zip"); wb.DownloadProgressChanged += wb_DownloadProgressChanged; wb.DownloadFileCompleted += wb_DownloadFileCompleted; - } + } } private void wb_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e) @@ -106,8 +106,14 @@ namespace ScpServer { if (processes.Length < 1) { - bnStep1.Text = Properties.Resources.InstallComplete; - + string log = File.ReadAllText(exepath + "\\ScpDriver.log"); + if (log.Contains("Install Succeeded")) + bnStep1.Text = Properties.Resources.InstallComplete; + else + { + bnStep1.Text = Properties.Resources.InstallFailed; + Process.Start(Global.appdatapath + "\\Virtual Bus Driver"); + } try { File.Delete(exepath + "\\ScpDriver.exe"); diff --git a/DS4Tool/WinProgs.cs b/DS4Tool/WinProgs.cs index cec2564..d4fafc2 100644 --- a/DS4Tool/WinProgs.cs +++ b/DS4Tool/WinProgs.cs @@ -21,7 +21,7 @@ namespace ScpServer { ToolTip tp = new ToolTip(); ComboBox[] cbs; - ScpForm form; + DS4Form form; //C:\ProgramData\Microsoft\Windows\Start Menu\Programs string steamgamesdir, origingamesdir; protected String m_Profile = Global.appdatapath + "\\Auto Profiles.xml"; @@ -30,7 +30,7 @@ namespace ScpServer List lodsf = new List(); bool appsloaded = false; - public WinProgs(string[] oc, ScpForm main) + public WinProgs(string[] oc, DS4Form main) { InitializeComponent();