Version 1.4.0.75

Reworked x360 mapping again, better support for mapping multiple buttons
to the same thing + swapping buttons
Made the exclusive warning last message when connecting a controller
that can't get exclusive control to make it more noticeable
Hovering over the log message at the bottom shows the full message
Default colors provided when a new profile is made for certain controls
This commit is contained in:
jays2kings 2014-10-20 22:31:13 -04:00
parent b43ee4f4e3
commit ebea6d05dd
9 changed files with 923 additions and 1027 deletions

View File

@ -409,13 +409,13 @@ namespace DS4Control
if (Global.getHasCustomKeysorButtons(ind))
{
Mapping.MapCustom(ind, cState, MappedState[ind], ExposedState[ind]);
cState = MappedState[ind];
//cState = MappedState[ind];
}
// Update the GUI/whatever.
DS4LightBar.updateLightBar(device, ind, cState, ExposedState[ind]);
DS4LightBar.updateLightBar(device, ind, MappedState[ind], ExposedState[ind]);
x360Bus.Parse(cState, processingData[ind].Report, ind);
x360Bus.Parse(MappedState[ind], processingData[ind].Report, ind);
// We push the translated Xinput state, and simultaneously we
// pull back any possible rumble data coming from Xinput consumers.
if (x360Bus.Report(processingData[ind].Report, processingData[ind].Rumble))

View File

@ -283,146 +283,6 @@ namespace DS4Control
}
}
/** Map the touchpad button state to mouse or keyboard events. */
public static void MapTouchpadButton(int device, DS4Controls what, Click mouseEventFallback, DS4State MappedState = null)
{
SyntheticState deviceState = Mapping.deviceState[device];
string macro = Global.getCustomMacro(device, what);
if (macro != "0")
{
}
else if (Global.getCustomKey(device, what) != 0)
{
ushort key = Global.getCustomKey(device, what);
DS4KeyType keyType = Global.getCustomKeyType(device, what);
SyntheticState.KeyPresses kp;
if (!deviceState.keyPresses.TryGetValue(key, out kp))
deviceState.keyPresses[key] = kp = new SyntheticState.KeyPresses();
if (keyType.HasFlag(DS4KeyType.ScanCode))
kp.current.scanCodeCount++;
else
kp.current.vkCount++;
if (keyType.HasFlag(DS4KeyType.Toggle))
kp.current.toggleCount++;
}
else
{
X360Controls button = Global.getCustomButton(device, what);
switch (button)
{
case X360Controls.None:
switch (mouseEventFallback)
{
case Click.Left:
deviceState.currentClicks.leftCount++;
return;
case Click.Middle:
deviceState.currentClicks.middleCount++;
return;
case Click.Right:
deviceState.currentClicks.rightCount++;
return;
case Click.Fourth:
deviceState.currentClicks.fourthCount++;
return;
case Click.Fifth:
deviceState.currentClicks.fifthCount++;
return;
case Click.WUP:
deviceState.currentClicks.wUpCount++;
return;
case Click.WDOWN:
deviceState.currentClicks.wDownCount++;
return;
}
return;
case X360Controls.LeftMouse:
deviceState.currentClicks.leftCount++;
return;
case X360Controls.MiddleMouse:
deviceState.currentClicks.middleCount++;
return;
case X360Controls.RightMouse:
deviceState.currentClicks.rightCount++;
return;
case X360Controls.FourthMouse:
deviceState.currentClicks.fourthCount++;
return;
case X360Controls.FifthMouse:
deviceState.currentClicks.fifthCount++;
return;
case X360Controls.WUP:
deviceState.currentClicks.wUpCount++;
return;
case X360Controls.WDOWN:
deviceState.currentClicks.wDownCount++;
return;
case X360Controls.A:
MappedState.Cross = true;
return;
case X360Controls.B:
MappedState.Circle = true;
return;
case X360Controls.X:
MappedState.Square = true;
return;
case X360Controls.Y:
MappedState.Triangle = true;
return;
case X360Controls.LB:
MappedState.L1 = true;
return;
case X360Controls.LS:
MappedState.L3 = true;
return;
case X360Controls.RB:
MappedState.R1 = true;
return;
case X360Controls.RS:
MappedState.R3 = true;
return;
case X360Controls.DpadUp:
MappedState.DpadUp = true;
return;
case X360Controls.DpadDown:
MappedState.DpadDown = true;
return;
case X360Controls.DpadLeft:
MappedState.DpadLeft = true;
return;
case X360Controls.DpadRight:
MappedState.DpadRight = true;
return;
case X360Controls.Guide:
MappedState.PS = true;
return;
case X360Controls.Back:
MappedState.Share = true;
return;
case X360Controls.Start:
MappedState.Options = true;
return;
case X360Controls.LT:
if (MappedState.L2 == 0)
MappedState.L2 = 255;
return;
case X360Controls.RT:
if (MappedState.R2 == 0)
MappedState.R2 = 255;
return;
case X360Controls.Unbound:
return;
default:
if (MappedState == null)
return;
break;
}
}
}
public static int DS4ControltoInt(DS4Controls ctrl)
{
switch (ctrl)
@ -658,6 +518,31 @@ namespace DS4Control
Dictionary<DS4Controls, X360Controls> customButtons = Global.getCustomButtons(device);
//foreach (KeyValuePair<DS4Controls, X360Controls> customButton in customButtons)
// resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped
List<DS4Controls> Cross = new List<DS4Controls>();
List<DS4Controls> Circle = new List<DS4Controls>();
List<DS4Controls> Square = new List<DS4Controls>();
List<DS4Controls> Triangle = new List<DS4Controls>();
List<DS4Controls> Options = new List<DS4Controls>();
List<DS4Controls> Share = new List<DS4Controls>();
List<DS4Controls> DpadUp = new List<DS4Controls>();
List<DS4Controls> DpadDown = new List<DS4Controls>();
List<DS4Controls> DpadLeft = new List<DS4Controls>();
List<DS4Controls> DpadRight = new List<DS4Controls>();
List<DS4Controls> PS = new List<DS4Controls>();
List<DS4Controls> L1 = new List<DS4Controls>();
List<DS4Controls> R1 = new List<DS4Controls>();
List<DS4Controls> L2 = new List<DS4Controls>();
List<DS4Controls> R2 = new List<DS4Controls>();
List<DS4Controls> L3 = new List<DS4Controls>();
List<DS4Controls> R3 = new List<DS4Controls>();
List<DS4Controls> LXN = new List<DS4Controls>();
List<DS4Controls> LXP = new List<DS4Controls>();
List<DS4Controls> LYN = new List<DS4Controls>();
List<DS4Controls> LYP = new List<DS4Controls>();
List<DS4Controls> RXN = new List<DS4Controls>();
List<DS4Controls> RXP = new List<DS4Controls>();
List<DS4Controls> RYN = new List<DS4Controls>();
List<DS4Controls> RYP = new List<DS4Controls>();
foreach (KeyValuePair<DS4Controls, X360Controls> customButton in customButtons)
{
if (shift == false ||
@ -688,126 +573,39 @@ namespace DS4Control
}
deviceState.currentClicks.toggleCount++;
}
else// if (test = 1)// && pressedonce[keyvalue])
else// if (test = 1) && pressedonce[keyvalue])
{
pressedonce[keyvalue] = false;
}
}
bool LXChanged = Math.Abs(127 - MappedState.LX) <= 5;
bool LYChanged = Math.Abs(127 - MappedState.LY) <= 5;
bool RXChanged = Math.Abs(127 - MappedState.RX) <= 5;
bool RYChanged = Math.Abs(127 - MappedState.RY) <= 5;
//once++;
if (customButton.Key == DS4Controls.L2 || customButton.Key == DS4Controls.R2 ||
customButton.Key == DS4Controls.LXNeg || customButton.Key == DS4Controls.LXPos ||
customButton.Key == DS4Controls.LYNeg || customButton.Key == DS4Controls.LYPos ||
customButton.Key == DS4Controls.RXNeg || customButton.Key == DS4Controls.RXPos ||
customButton.Key == DS4Controls.RYNeg || customButton.Key == DS4Controls.RYPos)
resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped
resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped
switch (customButton.Value)
{
case X360Controls.A:
//if (!MappedState.Cross)
MappedState.Cross = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.B:
//if (!MappedState.Circle)
MappedState.Circle = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.X:
//if (!MappedState.Square)
MappedState.Square = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Y:
//if (!MappedState.Triangle)
MappedState.Triangle = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LB:
//if (!MappedState.L1)
MappedState.L1 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LS:
//if (!MappedState.L3)
MappedState.L3 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.RB:
//if (!MappedState.R1)
MappedState.R1 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.RS:
//if (!MappedState.R3)
MappedState.R3 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadUp:
//if (!MappedState.DpadUp)
MappedState.DpadUp = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadDown:
//if (!MappedState.DpadDown)
MappedState.DpadDown = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadLeft:
//if (!MappedState.DpadLeft)
MappedState.DpadLeft = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadRight:
//if (!MappedState.DpadRight)
MappedState.DpadRight = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Guide:
//if (!MappedState.PS)
MappedState.PS = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Back:
//if (!MappedState.Share)
MappedState.Share = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Start:
//if (!MappedState.Options)
MappedState.Options = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LXNeg:
if (LXChanged)
MappedState.LX = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.LYNeg:
if (LYChanged)
MappedState.LY = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RXNeg:
if (RXChanged)
MappedState.RX = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RYNeg:
if (RYChanged)
MappedState.RY = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.LXPos:
if (LXChanged)
MappedState.LX = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.LYPos:
if (LYChanged)
MappedState.LY = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.RXPos:
if (RXChanged)
MappedState.RX = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.RYPos:
if (RYChanged)
MappedState.RY = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.LT:
if (MappedState.L2 == 0)
MappedState.L2 = getByteMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RT:
if (MappedState.R2 == 0)
MappedState.R2 = getByteMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.A: Cross.Add(customButton.Key); break;
case X360Controls.B: Circle.Add(customButton.Key); break;
case X360Controls.X: Square.Add(customButton.Key); break;
case X360Controls.Y: Triangle.Add(customButton.Key); break;
case X360Controls.LB: L1.Add(customButton.Key); break;
case X360Controls.LS: L3.Add(customButton.Key); break;
case X360Controls.RB: R1.Add(customButton.Key); break;
case X360Controls.RS: R3.Add(customButton.Key); break;
case X360Controls.DpadUp: DpadUp.Add(customButton.Key); break;
case X360Controls.DpadDown: DpadDown.Add(customButton.Key); break;
case X360Controls.DpadLeft: DpadLeft.Add(customButton.Key); break;
case X360Controls.DpadRight: DpadRight.Add(customButton.Key); break;
case X360Controls.Start: Options.Add(customButton.Key); break;
case X360Controls.Guide: PS.Add(customButton.Key); break;
case X360Controls.Back: Share.Add(customButton.Key); break;
case X360Controls.LXNeg: LXN.Add(customButton.Key); break;
case X360Controls.LYNeg: LYN.Add(customButton.Key); break;
case X360Controls.RXNeg: RXN.Add(customButton.Key); break;
case X360Controls.RYNeg: RYN.Add(customButton.Key); break;
case X360Controls.LXPos: LXP.Add(customButton.Key); break;
case X360Controls.LYPos: LYP.Add(customButton.Key); break;
case X360Controls.RXPos: RXP.Add(customButton.Key); break;
case X360Controls.RYPos: RYP.Add(customButton.Key); break;
case X360Controls.LT: L2.Add(customButton.Key); break;
case X360Controls.RT: R2.Add(customButton.Key); break;
case X360Controls.LeftMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.leftCount++;
@ -867,14 +665,81 @@ namespace DS4Control
}
}
}
if (Math.Abs(127 - MappedState.LX) <= 5)
MappedState.LX = cState.LX;
if (Math.Abs(127 - MappedState.LY) <= 5)
MappedState.LY = cState.LY;
if (Math.Abs(127 - MappedState.RX) <= 5)
MappedState.RX = cState.RX;
if (Math.Abs(127 - MappedState.RY) <= 5)
MappedState.RY = cState.RY;
foreach (DS4Controls dc in Cross)
if (getBoolMapping(dc, cState, eState))
MappedState.Cross = true;
foreach (DS4Controls dc in Circle)
if (getBoolMapping(dc, cState, eState))
MappedState.Circle = true;
foreach (DS4Controls dc in Square)
if (getBoolMapping(dc, cState, eState))
MappedState.Square = true;
foreach (DS4Controls dc in Triangle)
if (getBoolMapping(dc, cState, eState))
MappedState.Triangle = true;
foreach (DS4Controls dc in L1)
if (getBoolMapping(dc, cState, eState))
MappedState.L1 = true;
foreach (DS4Controls dc in L2)
if (getByteMapping(device, dc, cState, eState) != 0)
MappedState.L2 = getByteMapping(device, dc, cState, eState);
foreach (DS4Controls dc in L3)
if (getBoolMapping(dc, cState, eState))
MappedState.L3 = true;
foreach (DS4Controls dc in R1)
if (getBoolMapping(dc, cState, eState))
MappedState.R1 = true;
foreach (DS4Controls dc in R2)
if (getByteMapping(device, dc, cState, eState) != 0)
MappedState.R2 = getByteMapping(device, dc, cState, eState);
foreach (DS4Controls dc in R3)
if (getBoolMapping(dc, cState, eState))
MappedState.R3 = true;
foreach (DS4Controls dc in DpadUp)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadUp = true;
foreach (DS4Controls dc in DpadRight)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadRight = true;
foreach (DS4Controls dc in DpadLeft)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadLeft = true;
foreach (DS4Controls dc in DpadDown)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadDown = true;
foreach (DS4Controls dc in Options)
if (getBoolMapping(dc, cState, eState))
MappedState.Options = true;
foreach (DS4Controls dc in Share)
if (getBoolMapping(dc, cState, eState))
MappedState.Share = true;
foreach (DS4Controls dc in PS)
if (getBoolMapping(dc, cState, eState))
MappedState.PS = true;
foreach (DS4Controls dc in LXN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LX = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in LXP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LX = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in LYN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LY = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in LYP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LY = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in RXN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RX = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in RXP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RX = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in RYN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RY = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in RYP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RY = getXYAxisMapping(device, dc, cState, eState, true);
InputMethods.MoveCursorBy(MouseDeltaX, MouseDeltaY);
}
@ -1025,6 +890,32 @@ namespace DS4Control
Dictionary<DS4Controls, X360Controls> customButtons = Global.getShiftCustomButtons(device);
//foreach (KeyValuePair<DS4Controls, X360Controls> customButton in customButtons)
// resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped
List<DS4Controls> Cross = new List<DS4Controls>();
List<DS4Controls> Circle = new List<DS4Controls>();
List<DS4Controls> Square = new List<DS4Controls>();
List<DS4Controls> Triangle = new List<DS4Controls>();
List<DS4Controls> Options = new List<DS4Controls>();
List<DS4Controls> Share = new List<DS4Controls>();
List<DS4Controls> DpadUp = new List<DS4Controls>();
List<DS4Controls> DpadDown = new List<DS4Controls>();
List<DS4Controls> DpadLeft = new List<DS4Controls>();
List<DS4Controls> DpadRight = new List<DS4Controls>();
List<DS4Controls> PS = new List<DS4Controls>();
List<DS4Controls> L1 = new List<DS4Controls>();
List<DS4Controls> R1 = new List<DS4Controls>();
List<DS4Controls> L2 = new List<DS4Controls>();
List<DS4Controls> R2 = new List<DS4Controls>();
List<DS4Controls> L3 = new List<DS4Controls>();
List<DS4Controls> R3 = new List<DS4Controls>();
List<DS4Controls> LXN = new List<DS4Controls>();
List<DS4Controls> LXP = new List<DS4Controls>();
List<DS4Controls> LYN = new List<DS4Controls>();
List<DS4Controls> LYP = new List<DS4Controls>();
List<DS4Controls> RXN = new List<DS4Controls>();
List<DS4Controls> RXP = new List<DS4Controls>();
List<DS4Controls> RYN = new List<DS4Controls>();
List<DS4Controls> RYP = new List<DS4Controls>();
foreach (KeyValuePair<DS4Controls, X360Controls> customButton in customButtons)
{
DS4KeyType keyType = Global.getShiftCustomKeyType(device, customButton.Key);
@ -1055,187 +946,166 @@ namespace DS4Control
pressedonce[keyvalue] = false;
}
}
bool LXChanged = Math.Abs(127 - MappedState.LX) <= 5;
bool LYChanged = Math.Abs(127 - MappedState.LY) <= 5;
bool RXChanged = Math.Abs(127 - MappedState.RX) <= 5;
bool RYChanged = Math.Abs(127 - MappedState.RY) <= 5;
//once++;
if (customButton.Key == DS4Controls.L2 || customButton.Key == DS4Controls.R2 ||
customButton.Key == DS4Controls.LXNeg || customButton.Key == DS4Controls.LXPos ||
customButton.Key == DS4Controls.LYNeg || customButton.Key == DS4Controls.LYPos ||
customButton.Key == DS4Controls.RXNeg || customButton.Key == DS4Controls.RXPos ||
customButton.Key == DS4Controls.RYNeg || customButton.Key == DS4Controls.RYPos)
resetToDefaultValue(customButton.Key, MappedState); // erase default mappings for things that are remapped
switch (customButton.Value)
{
case X360Controls.A:
//if (!MappedState.Cross)
MappedState.Cross = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.B:
//if (!MappedState.Circle)
MappedState.Circle = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.X:
//if (!MappedState.Square)
MappedState.Square = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Y:
//if (!MappedState.Triangle)
MappedState.Triangle = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LB:
//if (!MappedState.L1)
MappedState.L1 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LS:
//if (!MappedState.L3)
MappedState.L3 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.RB:
//if (!MappedState.R1)
MappedState.R1 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.RS:
//if (!MappedState.R3)
MappedState.R3 = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadUp:
//if (!MappedState.DpadUp)
MappedState.DpadUp = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadDown:
//if (!MappedState.DpadDown)
MappedState.DpadDown = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadLeft:
//if (!MappedState.DpadLeft)
MappedState.DpadLeft = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.DpadRight:
//if (!MappedState.DpadRight)
MappedState.DpadRight = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Guide:
//if (!MappedState.PS)
MappedState.PS = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Back:
//if (!MappedState.Share)
MappedState.Share = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.Start:
//if (!MappedState.Options)
MappedState.Options = getBoolMapping(customButton.Key, cState, eState);
break;
case X360Controls.LXNeg:
//if (LXChanged)
MappedState.LX = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.LYNeg:
//if (LYChanged)
MappedState.LY = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RXNeg:
//if (RXChanged)
MappedState.RX = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RYNeg:
//if (RYChanged)
MappedState.RY = getXYAxisMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.LXPos:
//if (LXChanged)
MappedState.LX = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.LYPos:
//if (LYChanged)
MappedState.LY = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.RXPos:
//if (RXChanged)
MappedState.RX = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.RYPos:
//if (RYChanged)
MappedState.RY = getXYAxisMapping(device, customButton.Key, cState, eState, true);
break;
case X360Controls.LT:
//if (MappedState.L2 == 0)
MappedState.L2 = getByteMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.RT:
//if (MappedState.R2 == 0)
MappedState.R2 = getByteMapping(device, customButton.Key, cState, eState);
break;
case X360Controls.LeftMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.leftCount++;
break;
case X360Controls.RightMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.rightCount++;
break;
case X360Controls.MiddleMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.middleCount++;
break;
case X360Controls.FourthMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.fourthCount++;
break;
case X360Controls.FifthMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.fifthCount++;
break;
case X360Controls.WUP:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.wUpCount++;
break;
case X360Controls.WDOWN:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.wDownCount++;
break;
case X360Controls.MouseUp:
if (MouseDeltaY == 0)
{
MouseDeltaY = getMouseMapping(device, customButton.Key, cState, eState, 0);
MouseDeltaY = -Math.Abs((MouseDeltaY == -2147483648 ? 0 : MouseDeltaY));
}
break;
case X360Controls.MouseDown:
if (MouseDeltaY == 0)
{
MouseDeltaY = getMouseMapping(device, customButton.Key, cState, eState, 1);
MouseDeltaY = Math.Abs((MouseDeltaY == -2147483648 ? 0 : MouseDeltaY));
}
break;
case X360Controls.MouseLeft:
if (MouseDeltaX == 0)
{
MouseDeltaX = getMouseMapping(device, customButton.Key, cState, eState, 2);
MouseDeltaX = -Math.Abs((MouseDeltaX == -2147483648 ? 0 : MouseDeltaX));
}
break;
case X360Controls.MouseRight:
if (MouseDeltaX == 0)
{
MouseDeltaX = getMouseMapping(device, customButton.Key, cState, eState, 3);
MouseDeltaX = Math.Abs((MouseDeltaX == -2147483648 ? 0 : MouseDeltaX));
}
break;
switch (customButton.Value)
{
case X360Controls.A: Cross.Add(customButton.Key); break;
case X360Controls.B: Circle.Add(customButton.Key); break;
case X360Controls.X: Square.Add(customButton.Key); break;
case X360Controls.Y: Triangle.Add(customButton.Key); break;
case X360Controls.LB: L1.Add(customButton.Key); break;
case X360Controls.LS: L3.Add(customButton.Key); break;
case X360Controls.RB: R1.Add(customButton.Key); break;
case X360Controls.RS: R3.Add(customButton.Key); break;
case X360Controls.DpadUp: DpadUp.Add(customButton.Key); break;
case X360Controls.DpadDown: DpadDown.Add(customButton.Key); break;
case X360Controls.DpadLeft: DpadLeft.Add(customButton.Key); break;
case X360Controls.DpadRight: DpadRight.Add(customButton.Key); break;
case X360Controls.Start: Options.Add(customButton.Key); break;
case X360Controls.Guide: PS.Add(customButton.Key); break;
case X360Controls.Back: Share.Add(customButton.Key); break;
case X360Controls.LXNeg: LXN.Add(customButton.Key); break;
case X360Controls.LYNeg: LYN.Add(customButton.Key); break;
case X360Controls.RXNeg: RXN.Add(customButton.Key); break;
case X360Controls.RYNeg: RYN.Add(customButton.Key); break;
case X360Controls.LXPos: LXP.Add(customButton.Key); break;
case X360Controls.LYPos: LYP.Add(customButton.Key); break;
case X360Controls.RXPos: RXP.Add(customButton.Key); break;
case X360Controls.RYPos: RYP.Add(customButton.Key); break;
case X360Controls.LT: L2.Add(customButton.Key); break;
case X360Controls.RT: R2.Add(customButton.Key); break;
case X360Controls.LeftMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.leftCount++;
break;
case X360Controls.RightMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.rightCount++;
break;
case X360Controls.MiddleMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.middleCount++;
break;
case X360Controls.FourthMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.fourthCount++;
break;
case X360Controls.FifthMouse:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.fifthCount++;
break;
case X360Controls.WUP:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.wUpCount++;
break;
case X360Controls.WDOWN:
if (getBoolMapping(customButton.Key, cState, eState))
deviceState.currentClicks.wDownCount++;
break;
case X360Controls.MouseUp:
if (MouseDeltaY == 0)
{
MouseDeltaY = getMouseMapping(device, customButton.Key, cState, eState, 0);
MouseDeltaY = -Math.Abs((MouseDeltaY == -2147483648 ? 0 : MouseDeltaY));
}
break;
case X360Controls.MouseDown:
if (MouseDeltaY == 0)
{
MouseDeltaY = getMouseMapping(device, customButton.Key, cState, eState, 1);
MouseDeltaY = Math.Abs((MouseDeltaY == -2147483648 ? 0 : MouseDeltaY));
}
break;
case X360Controls.MouseLeft:
if (MouseDeltaX == 0)
{
MouseDeltaX = getMouseMapping(device, customButton.Key, cState, eState, 2);
MouseDeltaX = -Math.Abs((MouseDeltaX == -2147483648 ? 0 : MouseDeltaX));
}
break;
case X360Controls.MouseRight:
if (MouseDeltaX == 0)
{
MouseDeltaX = getMouseMapping(device, customButton.Key, cState, eState, 3);
MouseDeltaX = Math.Abs((MouseDeltaX == -2147483648 ? 0 : MouseDeltaX));
}
break;
}
}
}
//if (!LX)
if (Math.Abs(127 - MappedState.LX) <= 5)// || (Math.Abs(127 - cState.LX) > 5))
MappedState.LX = cState.LX;
if (Math.Abs(127 - MappedState.LY) <= 5)
MappedState.LY = cState.LY;
if (Math.Abs(127 - MappedState.RX) <= 5)
MappedState.RX = cState.RX;
if (Math.Abs(127 - MappedState.RY) <= 5)
MappedState.RY = cState.RY;
foreach (DS4Controls dc in Cross)
if (getBoolMapping(dc, cState, eState))
MappedState.Cross = true;
foreach (DS4Controls dc in Circle)
if (getBoolMapping(dc, cState, eState))
MappedState.Circle = true;
foreach (DS4Controls dc in Square)
if (getBoolMapping(dc, cState, eState))
MappedState.Square = true;
foreach (DS4Controls dc in Triangle)
if (getBoolMapping(dc, cState, eState))
MappedState.Triangle = true;
foreach (DS4Controls dc in L1)
if (getBoolMapping(dc, cState, eState))
MappedState.L1 = true;
foreach (DS4Controls dc in L2)
if (getByteMapping(device, dc, cState, eState) != 0)
MappedState.L2 = getByteMapping(device, dc, cState, eState);
foreach (DS4Controls dc in L3)
if (getBoolMapping(dc, cState, eState))
MappedState.L3 = true;
foreach (DS4Controls dc in R1)
if (getBoolMapping(dc, cState, eState))
MappedState.R1 = true;
foreach (DS4Controls dc in R2)
if (getByteMapping(device, dc, cState, eState) != 0)
MappedState.R2 = getByteMapping(device, dc, cState, eState);
foreach (DS4Controls dc in R3)
if (getBoolMapping(dc, cState, eState))
MappedState.R3 = true;
foreach (DS4Controls dc in DpadUp)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadUp = true;
foreach (DS4Controls dc in DpadRight)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadRight = true;
foreach (DS4Controls dc in DpadLeft)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadLeft = true;
foreach (DS4Controls dc in DpadDown)
if (getBoolMapping(dc, cState, eState))
MappedState.DpadDown = true;
foreach (DS4Controls dc in Options)
if (getBoolMapping(dc, cState, eState))
MappedState.Options = true;
foreach (DS4Controls dc in Share)
if (getBoolMapping(dc, cState, eState))
MappedState.Share = true;
foreach (DS4Controls dc in PS)
if (getBoolMapping(dc, cState, eState))
MappedState.PS = true;
foreach (DS4Controls dc in LXN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LX = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in LXP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LX = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in LYN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LY = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in LYP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.LY = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in RXN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RX = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in RXP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RX = getXYAxisMapping(device, dc, cState, eState, true);
foreach (DS4Controls dc in RYN)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RY = getXYAxisMapping(device, dc, cState, eState);
foreach (DS4Controls dc in RYP)
if (getXYAxisMapping(device, dc, cState, eState) != 127)
MappedState.RY = getXYAxisMapping(device, dc, cState, eState, true);
InputMethods.MoveCursorBy(MouseDeltaX, MouseDeltaY);
}

View File

@ -115,15 +115,14 @@ namespace DS4Control
private DS4State remapped = new DS4State();
private void synthesizeMouseButtons()
{
//Mapping.MapCustom(deviceNum, s, remapped, null);
if (leftDown)
Mapping.MapTouchpadButton(deviceNum, DS4Controls.TouchLeft, Mapping.Click.Left, remapped);
if (upperDown)
Mapping.MapTouchpadButton(deviceNum, DS4Controls.TouchUpper, Mapping.Click.Middle, remapped);
if (rightDown)
Mapping.MapTouchpadButton(deviceNum, DS4Controls.TouchRight, Mapping.Click.Left, remapped);
if (multiDown)
Mapping.MapTouchpadButton(deviceNum, DS4Controls.TouchMulti, Mapping.Click.Right, remapped);
if (Global.getCustomButton(deviceNum, DS4Controls.TouchLeft) == X360Controls.None && leftDown)
Mapping.MapClick(deviceNum, Mapping.Click.Left);
if (Global.getCustomButton(deviceNum, DS4Controls.TouchUpper) == X360Controls.None && upperDown)
Mapping.MapClick(deviceNum, Mapping.Click.Middle);
if (Global.getCustomButton(deviceNum, DS4Controls.TouchRight) == X360Controls.None && rightDown)
Mapping.MapClick(deviceNum, Mapping.Click.Left);
if (Global.getCustomButton(deviceNum, DS4Controls.TouchMulti) == X360Controls.None && multiDown)
Mapping.MapClick(deviceNum, Mapping.Click.Right);
if (tappedOnce)
{
DateTime tester = DateTime.Now;

View File

@ -71,9 +71,9 @@
this.lowColorChooserButton = new System.Windows.Forms.Button();
this.nUDRainbow = new System.Windows.Forms.NumericUpDown();
this.pBRainbow = new System.Windows.Forms.PictureBox();
this.blueBar = new System.Windows.Forms.TrackBar();
this.greenBar = new System.Windows.Forms.TrackBar();
this.redBar = new System.Windows.Forms.TrackBar();
this.tBBlueBar = new System.Windows.Forms.TrackBar();
this.tBGreenBar = new System.Windows.Forms.TrackBar();
this.tBRedBar = new System.Windows.Forms.TrackBar();
this.cBLightbyBattery = new System.Windows.Forms.CheckBox();
this.lbBlue = new System.Windows.Forms.Label();
this.lbGreen = new System.Windows.Forms.Label();
@ -108,9 +108,9 @@
this.lbLowRed = new System.Windows.Forms.Label();
this.lbLowGreen = new System.Windows.Forms.Label();
this.lbLowBlue = new System.Windows.Forms.Label();
this.lowRedBar = new System.Windows.Forms.TrackBar();
this.lowGreenBar = new System.Windows.Forms.TrackBar();
this.lowBlueBar = new System.Windows.Forms.TrackBar();
this.tBLowRedBar = new System.Windows.Forms.TrackBar();
this.tBLowGreenBar = new System.Windows.Forms.TrackBar();
this.tBLowBlueBar = new System.Windows.Forms.TrackBar();
this.lbEmpty = new System.Windows.Forms.Label();
this.FullPanel = new System.Windows.Forms.Panel();
this.lowBatteryPanel = new System.Windows.Forms.Panel();
@ -140,9 +140,9 @@
this.lbShiftRed = new System.Windows.Forms.Label();
this.lbShiftGreen = new System.Windows.Forms.Label();
this.lbShiftBlue = new System.Windows.Forms.Label();
this.shiftRedBar = new System.Windows.Forms.TrackBar();
this.shiftGreenBar = new System.Windows.Forms.TrackBar();
this.shiftBlueBar = new System.Windows.Forms.TrackBar();
this.tBShiftRedBar = new System.Windows.Forms.TrackBar();
this.tBShiftGreenBar = new System.Windows.Forms.TrackBar();
this.tBShiftBlueBar = new System.Windows.Forms.TrackBar();
this.btnChargingColor = new System.Windows.Forms.Button();
this.rBColor = new System.Windows.Forms.RadioButton();
this.rBFade = new System.Windows.Forms.RadioButton();
@ -243,9 +243,9 @@
((System.ComponentModel.ISupportInitialize)(this.pBSticks)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDRainbow)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pBRainbow)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.blueBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.greenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.redBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBBlueBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBGreenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBRedBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDTap)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDScroll)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDTouch)).BeginInit();
@ -258,9 +258,9 @@
((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDRumbleBoost)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lowRedBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lowGreenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lowBlueBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowRedBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowGreenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowBlueBar)).BeginInit();
this.FullPanel.SuspendLayout();
this.lowBatteryPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nUDRS)).BeginInit();
@ -273,9 +273,9 @@
((System.ComponentModel.ISupportInitialize)(this.nUDSixaxis)).BeginInit();
this.gBLightbar.SuspendLayout();
this.ShiftPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.shiftRedBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.shiftGreenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.shiftBlueBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftRedBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftGreenBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftBlueBar)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nUDflashLED)).BeginInit();
this.gBRumble.SuspendLayout();
this.gBDeadzone.SuspendLayout();
@ -897,44 +897,44 @@
this.pBRainbow.TabStop = false;
this.pBRainbow.Click += new System.EventHandler(this.pbRainbow_Click);
//
// blueBar
// tBBlueBar
//
resources.ApplyResources(this.blueBar, "blueBar");
this.blueBar.BackColor = System.Drawing.Color.Blue;
this.blueBar.Maximum = 255;
this.blueBar.Name = "blueBar";
this.blueBar.TickFrequency = 25;
this.blueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.blueBar.Value = 255;
this.blueBar.ValueChanged += new System.EventHandler(this.blueBar_ValueChanged);
this.blueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.blueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBBlueBar, "tBBlueBar");
this.tBBlueBar.BackColor = System.Drawing.Color.Blue;
this.tBBlueBar.Maximum = 255;
this.tBBlueBar.Name = "tBBlueBar";
this.tBBlueBar.TickFrequency = 25;
this.tBBlueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBBlueBar.Value = 255;
this.tBBlueBar.ValueChanged += new System.EventHandler(this.blueBar_ValueChanged);
this.tBBlueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBBlueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// greenBar
// tBGreenBar
//
resources.ApplyResources(this.greenBar, "greenBar");
this.greenBar.BackColor = System.Drawing.Color.Green;
this.greenBar.Maximum = 255;
this.greenBar.Name = "greenBar";
this.greenBar.TickFrequency = 25;
this.greenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.greenBar.Value = 255;
this.greenBar.ValueChanged += new System.EventHandler(this.greenBar_ValueChanged);
this.greenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.greenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBGreenBar, "tBGreenBar");
this.tBGreenBar.BackColor = System.Drawing.Color.Green;
this.tBGreenBar.Maximum = 255;
this.tBGreenBar.Name = "tBGreenBar";
this.tBGreenBar.TickFrequency = 25;
this.tBGreenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBGreenBar.Value = 255;
this.tBGreenBar.ValueChanged += new System.EventHandler(this.greenBar_ValueChanged);
this.tBGreenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBGreenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// redBar
// tBRedBar
//
resources.ApplyResources(this.redBar, "redBar");
this.redBar.BackColor = System.Drawing.Color.Red;
this.redBar.Maximum = 255;
this.redBar.Name = "redBar";
this.redBar.TickFrequency = 25;
this.redBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.redBar.Value = 255;
this.redBar.ValueChanged += new System.EventHandler(this.redBar_ValueChanged);
this.redBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.redBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBRedBar, "tBRedBar");
this.tBRedBar.BackColor = System.Drawing.Color.Red;
this.tBRedBar.Maximum = 255;
this.tBRedBar.Name = "tBRedBar";
this.tBRedBar.TickFrequency = 25;
this.tBRedBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBRedBar.Value = 255;
this.tBRedBar.ValueChanged += new System.EventHandler(this.redBar_ValueChanged);
this.tBRedBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBRedBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// cBLightbyBattery
//
@ -1226,44 +1226,44 @@
resources.ApplyResources(this.lbLowBlue, "lbLowBlue");
this.lbLowBlue.Name = "lbLowBlue";
//
// lowRedBar
// tBLowRedBar
//
resources.ApplyResources(this.lowRedBar, "lowRedBar");
this.lowRedBar.BackColor = System.Drawing.Color.Red;
this.lowRedBar.Maximum = 255;
this.lowRedBar.Name = "lowRedBar";
this.lowRedBar.TickFrequency = 25;
this.lowRedBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.lowRedBar.Value = 255;
this.lowRedBar.ValueChanged += new System.EventHandler(this.lowRedBar_ValueChanged);
this.lowRedBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.lowRedBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBLowRedBar, "tBLowRedBar");
this.tBLowRedBar.BackColor = System.Drawing.Color.Red;
this.tBLowRedBar.Maximum = 255;
this.tBLowRedBar.Name = "tBLowRedBar";
this.tBLowRedBar.TickFrequency = 25;
this.tBLowRedBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBLowRedBar.Value = 255;
this.tBLowRedBar.ValueChanged += new System.EventHandler(this.lowRedBar_ValueChanged);
this.tBLowRedBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBLowRedBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// lowGreenBar
// tBLowGreenBar
//
resources.ApplyResources(this.lowGreenBar, "lowGreenBar");
this.lowGreenBar.BackColor = System.Drawing.Color.Green;
this.lowGreenBar.Maximum = 255;
this.lowGreenBar.Name = "lowGreenBar";
this.lowGreenBar.TickFrequency = 25;
this.lowGreenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.lowGreenBar.Value = 255;
this.lowGreenBar.ValueChanged += new System.EventHandler(this.lowGreenBar_ValueChanged);
this.lowGreenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.lowGreenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBLowGreenBar, "tBLowGreenBar");
this.tBLowGreenBar.BackColor = System.Drawing.Color.Green;
this.tBLowGreenBar.Maximum = 255;
this.tBLowGreenBar.Name = "tBLowGreenBar";
this.tBLowGreenBar.TickFrequency = 25;
this.tBLowGreenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBLowGreenBar.Value = 255;
this.tBLowGreenBar.ValueChanged += new System.EventHandler(this.lowGreenBar_ValueChanged);
this.tBLowGreenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBLowGreenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// lowBlueBar
// tBLowBlueBar
//
resources.ApplyResources(this.lowBlueBar, "lowBlueBar");
this.lowBlueBar.BackColor = System.Drawing.Color.Blue;
this.lowBlueBar.Maximum = 255;
this.lowBlueBar.Name = "lowBlueBar";
this.lowBlueBar.TickFrequency = 25;
this.lowBlueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.lowBlueBar.Value = 255;
this.lowBlueBar.ValueChanged += new System.EventHandler(this.lowBlueBar_ValueChanged);
this.lowBlueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.lowBlueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBLowBlueBar, "tBLowBlueBar");
this.tBLowBlueBar.BackColor = System.Drawing.Color.Blue;
this.tBLowBlueBar.Maximum = 255;
this.tBLowBlueBar.Name = "tBLowBlueBar";
this.tBLowBlueBar.TickFrequency = 25;
this.tBLowBlueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBLowBlueBar.Value = 255;
this.tBLowBlueBar.ValueChanged += new System.EventHandler(this.lowBlueBar_ValueChanged);
this.tBLowBlueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBLowBlueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// lbEmpty
//
@ -1277,9 +1277,9 @@
this.FullPanel.Controls.Add(this.lbRed);
this.FullPanel.Controls.Add(this.lbGreen);
this.FullPanel.Controls.Add(this.lbBlue);
this.FullPanel.Controls.Add(this.redBar);
this.FullPanel.Controls.Add(this.greenBar);
this.FullPanel.Controls.Add(this.blueBar);
this.FullPanel.Controls.Add(this.tBRedBar);
this.FullPanel.Controls.Add(this.tBGreenBar);
this.FullPanel.Controls.Add(this.tBBlueBar);
resources.ApplyResources(this.FullPanel, "FullPanel");
this.FullPanel.Name = "FullPanel";
//
@ -1289,9 +1289,9 @@
this.lowBatteryPanel.Controls.Add(this.lbLowRed);
this.lowBatteryPanel.Controls.Add(this.lbLowGreen);
this.lowBatteryPanel.Controls.Add(this.lbLowBlue);
this.lowBatteryPanel.Controls.Add(this.lowRedBar);
this.lowBatteryPanel.Controls.Add(this.lowGreenBar);
this.lowBatteryPanel.Controls.Add(this.lowBlueBar);
this.lowBatteryPanel.Controls.Add(this.tBLowRedBar);
this.lowBatteryPanel.Controls.Add(this.tBLowGreenBar);
this.lowBatteryPanel.Controls.Add(this.tBLowBlueBar);
this.lowBatteryPanel.Controls.Add(this.lbEmpty);
resources.ApplyResources(this.lowBatteryPanel, "lowBatteryPanel");
this.lowBatteryPanel.Name = "lowBatteryPanel";
@ -1499,7 +1499,6 @@
//
// gBLightbar
//
this.gBLightbar.Controls.Add(this.ShiftPanel);
this.gBLightbar.Controls.Add(this.btnChargingColor);
this.gBLightbar.Controls.Add(this.rBColor);
this.gBLightbar.Controls.Add(this.rBFade);
@ -1515,6 +1514,7 @@
this.gBLightbar.Controls.Add(this.lbFlashAt);
this.gBLightbar.Controls.Add(this.lowBatteryPanel);
this.gBLightbar.Controls.Add(this.FullPanel);
this.gBLightbar.Controls.Add(this.ShiftPanel);
resources.ApplyResources(this.gBLightbar, "gBLightbar");
this.gBLightbar.Name = "gBLightbar";
this.gBLightbar.TabStop = false;
@ -1526,9 +1526,9 @@
this.ShiftPanel.Controls.Add(this.lbShiftRed);
this.ShiftPanel.Controls.Add(this.lbShiftGreen);
this.ShiftPanel.Controls.Add(this.lbShiftBlue);
this.ShiftPanel.Controls.Add(this.shiftRedBar);
this.ShiftPanel.Controls.Add(this.shiftGreenBar);
this.ShiftPanel.Controls.Add(this.shiftBlueBar);
this.ShiftPanel.Controls.Add(this.tBShiftRedBar);
this.ShiftPanel.Controls.Add(this.tBShiftGreenBar);
this.ShiftPanel.Controls.Add(this.tBShiftBlueBar);
resources.ApplyResources(this.ShiftPanel, "ShiftPanel");
this.ShiftPanel.Name = "ShiftPanel";
//
@ -1562,44 +1562,44 @@
resources.ApplyResources(this.lbShiftBlue, "lbShiftBlue");
this.lbShiftBlue.Name = "lbShiftBlue";
//
// shiftRedBar
// tBShiftRedBar
//
resources.ApplyResources(this.shiftRedBar, "shiftRedBar");
this.shiftRedBar.BackColor = System.Drawing.Color.Red;
this.shiftRedBar.Maximum = 255;
this.shiftRedBar.Name = "shiftRedBar";
this.shiftRedBar.TickFrequency = 25;
this.shiftRedBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.shiftRedBar.Value = 255;
this.shiftRedBar.ValueChanged += new System.EventHandler(this.shiftRedBar_ValueChanged);
this.shiftRedBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.shiftRedBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBShiftRedBar, "tBShiftRedBar");
this.tBShiftRedBar.BackColor = System.Drawing.Color.Red;
this.tBShiftRedBar.Maximum = 255;
this.tBShiftRedBar.Name = "tBShiftRedBar";
this.tBShiftRedBar.TickFrequency = 25;
this.tBShiftRedBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBShiftRedBar.Value = 255;
this.tBShiftRedBar.ValueChanged += new System.EventHandler(this.shiftRedBar_ValueChanged);
this.tBShiftRedBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBShiftRedBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// shiftGreenBar
// tBShiftGreenBar
//
resources.ApplyResources(this.shiftGreenBar, "shiftGreenBar");
this.shiftGreenBar.BackColor = System.Drawing.Color.Green;
this.shiftGreenBar.Maximum = 255;
this.shiftGreenBar.Name = "shiftGreenBar";
this.shiftGreenBar.TickFrequency = 25;
this.shiftGreenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.shiftGreenBar.Value = 255;
this.shiftGreenBar.ValueChanged += new System.EventHandler(this.shiftGreenBar_ValueChanged);
this.shiftGreenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.shiftGreenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBShiftGreenBar, "tBShiftGreenBar");
this.tBShiftGreenBar.BackColor = System.Drawing.Color.Green;
this.tBShiftGreenBar.Maximum = 255;
this.tBShiftGreenBar.Name = "tBShiftGreenBar";
this.tBShiftGreenBar.TickFrequency = 25;
this.tBShiftGreenBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBShiftGreenBar.Value = 255;
this.tBShiftGreenBar.ValueChanged += new System.EventHandler(this.shiftGreenBar_ValueChanged);
this.tBShiftGreenBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBShiftGreenBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// shiftBlueBar
// tBShiftBlueBar
//
resources.ApplyResources(this.shiftBlueBar, "shiftBlueBar");
this.shiftBlueBar.BackColor = System.Drawing.Color.Blue;
this.shiftBlueBar.Maximum = 255;
this.shiftBlueBar.Name = "shiftBlueBar";
this.shiftBlueBar.TickFrequency = 25;
this.shiftBlueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.shiftBlueBar.Value = 255;
this.shiftBlueBar.ValueChanged += new System.EventHandler(this.shiftBlueBar_ValueChanged);
this.shiftBlueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.shiftBlueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
resources.ApplyResources(this.tBShiftBlueBar, "tBShiftBlueBar");
this.tBShiftBlueBar.BackColor = System.Drawing.Color.Blue;
this.tBShiftBlueBar.Maximum = 255;
this.tBShiftBlueBar.Name = "tBShiftBlueBar";
this.tBShiftBlueBar.TickFrequency = 25;
this.tBShiftBlueBar.TickStyle = System.Windows.Forms.TickStyle.None;
this.tBShiftBlueBar.Value = 255;
this.tBShiftBlueBar.ValueChanged += new System.EventHandler(this.shiftBlueBar_ValueChanged);
this.tBShiftBlueBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
this.tBShiftBlueBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
//
// btnChargingColor
//
@ -2661,9 +2661,9 @@
((System.ComponentModel.ISupportInitialize)(this.pBSticks)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDRainbow)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pBRainbow)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.blueBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.greenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.redBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBBlueBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBGreenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBRedBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDTap)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDScroll)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDTouch)).EndInit();
@ -2676,9 +2676,9 @@
((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroY)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBsixaxisGyroX)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDRumbleBoost)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lowRedBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lowGreenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lowBlueBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowRedBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowGreenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBLowBlueBar)).EndInit();
this.FullPanel.ResumeLayout(false);
this.FullPanel.PerformLayout();
this.lowBatteryPanel.ResumeLayout(false);
@ -2697,9 +2697,9 @@
this.gBLightbar.PerformLayout();
this.ShiftPanel.ResumeLayout(false);
this.ShiftPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.shiftRedBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.shiftGreenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.shiftBlueBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftRedBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftGreenBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tBShiftBlueBar)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nUDflashLED)).EndInit();
this.gBRumble.ResumeLayout(false);
this.gBRumble.PerformLayout();
@ -2778,9 +2778,9 @@
private System.Windows.Forms.NumericUpDown nUDRainbow;
private System.Windows.Forms.PictureBox pBRainbow;
private System.Windows.Forms.Button lowColorChooserButton;
private System.Windows.Forms.TrackBar blueBar;
private System.Windows.Forms.TrackBar greenBar;
private System.Windows.Forms.TrackBar redBar;
private System.Windows.Forms.TrackBar tBBlueBar;
private System.Windows.Forms.TrackBar tBGreenBar;
private System.Windows.Forms.TrackBar tBRedBar;
private System.Windows.Forms.CheckBox cBLightbyBattery;
private System.Windows.Forms.Label lbBlue;
private System.Windows.Forms.Label lbGreen;
@ -2815,9 +2815,9 @@
private System.Windows.Forms.Label lbLowRed;
private System.Windows.Forms.Label lbLowGreen;
private System.Windows.Forms.Label lbLowBlue;
private System.Windows.Forms.TrackBar lowRedBar;
private System.Windows.Forms.TrackBar lowGreenBar;
private System.Windows.Forms.TrackBar lowBlueBar;
private System.Windows.Forms.TrackBar tBLowRedBar;
private System.Windows.Forms.TrackBar tBLowGreenBar;
private System.Windows.Forms.TrackBar tBLowBlueBar;
private System.Windows.Forms.Label lbEmpty;
private System.Windows.Forms.Panel lowBatteryPanel;
private System.Windows.Forms.Panel FullPanel;
@ -2934,9 +2934,9 @@
private System.Windows.Forms.Label lbShiftRed;
private System.Windows.Forms.Label lbShiftGreen;
private System.Windows.Forms.Label lbShiftBlue;
private System.Windows.Forms.TrackBar shiftRedBar;
private System.Windows.Forms.TrackBar shiftGreenBar;
private System.Windows.Forms.TrackBar shiftBlueBar;
private System.Windows.Forms.TrackBar tBShiftRedBar;
private System.Windows.Forms.TrackBar tBShiftGreenBar;
private System.Windows.Forms.TrackBar tBShiftBlueBar;
private System.Windows.Forms.CheckBox cBShiftLight;
private System.Windows.Forms.CheckBox cBLaunchProgram;
private System.Windows.Forms.Button btnBrowse;

View File

@ -86,10 +86,10 @@ namespace ScpServer
Global.setAProfile(4, name);
Global.LoadProfile(device, buttons.ToArray(), subbuttons.ToArray(), false, scpDevice);
DS4Color color = Global.loadColor(device);
redBar.Value = color.red;
greenBar.Value = color.green;
blueBar.Value = color.blue;
tBRedBar.Value = color.red;
tBGreenBar.Value = color.green;
tBBlueBar.Value = color.blue;
cBLightbyBattery.Checked = Global.getLedAsBatteryIndicator(device);
nUDflashLED.Value = Global.getFlashAt(device);
lowBatteryPanel.Visible = cBLightbyBattery.Checked;
@ -97,14 +97,14 @@ namespace ScpServer
FullPanel.Location = (cBLightbyBattery.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
DS4Color lowColor = Global.loadLowColor(device);
lowRedBar.Value = lowColor.red;
lowGreenBar.Value = lowColor.green;
lowBlueBar.Value = lowColor.blue;
tBLowRedBar.Value = lowColor.red;
tBLowGreenBar.Value = lowColor.green;
tBLowBlueBar.Value = lowColor.blue;
DS4Color shiftColor = Global.loadShiftColor(device);
shiftRedBar.Value = shiftColor.red;
shiftGreenBar.Value = shiftColor.green;
shiftBlueBar.Value = shiftColor.blue;
tBShiftRedBar.Value = shiftColor.red;
tBShiftGreenBar.Value = shiftColor.green;
tBShiftBlueBar.Value = shiftColor.blue;
cBShiftLight.Checked = Global.getShiftColorOn(device);
DS4Color cColor = Global.loadChargingColor(device);
@ -113,19 +113,19 @@ namespace ScpServer
DS4Color fColor = Global.loadFlashColor(device);
lbFlashAt.ForeColor = Color.FromArgb(fColor.red, fColor.green, fColor.blue);
if (lbFlashAt.ForeColor.GetBrightness() > .5f)
lbFlashAt.BackColor = Color.Black;
lbFlashAt.BackColor = Color.Black;
lbPercentFlashBar.ForeColor = lbFlashAt.ForeColor;
lbPercentFlashBar.BackColor = lbFlashAt.BackColor;
nUDRumbleBoost.Value = Global.loadRumbleBoost(device);
nUDTouch.Value = Global.getTouchSensitivity(device);
cBSlide.Checked = Global.getTouchSensitivity(device) > 0;
nUDScroll.Value = Global.getScrollSensitivity(device);
cBScroll.Checked = Global.getScrollSensitivity(device) >0;
cBScroll.Checked = Global.getScrollSensitivity(device) > 0;
nUDTap.Value = Global.getTapSensitivity(device);
cBTap.Checked = Global.getTapSensitivity(device) > 0;
cBDoubleTap.Checked = Global.getDoubleTap(device);
nUDL2.Value = (decimal)Global.getLeftTriggerMiddle(device)/255;
nUDR2.Value = (decimal)Global.getRightTriggerMiddle(device)/255;
nUDL2.Value = (decimal)Global.getLeftTriggerMiddle(device) / 255;
nUDR2.Value = (decimal)Global.getRightTriggerMiddle(device) / 255;
cBTouchpadJitterCompensation.Checked = Global.getTouchpadJitterCompensation(device);
cBlowerRCOn.Checked = Global.getLowerRCOn(device);
cBFlushHIDQueue.Checked = Global.getFlushHIDQueue(device);
@ -134,12 +134,12 @@ namespace ScpServer
numUDMouseSens.Value = Global.getButtonMouseSensitivity(device);
cBMouseAccel.Checked = Global.getMouseAccel(device);
// Force update of color choosers
alphacolor = Math.Max(redBar.Value, Math.Max(greenBar.Value, blueBar.Value));
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
reg = Color.FromArgb(color.red, color.green, color.blue);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
alphacolor = Math.Max(lowRedBar.Value, Math.Max(greenBar.Value, blueBar.Value));
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
reg = Color.FromArgb(lowColor.red, lowColor.green, lowColor.blue);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
@ -161,8 +161,8 @@ namespace ScpServer
pBRainbow.Image = colored;
ToggleRainbow(true);
}
nUDLS.Value = Math.Round((decimal)(Global.getLSDeadzone(device) / 127d ), 3);
nUDRS.Value = Math.Round((decimal)(Global.getRSDeadzone(device) / 127d ), 3);
nUDLS.Value = Math.Round((decimal)(Global.getLSDeadzone(device) / 127d), 3);
nUDRS.Value = Math.Round((decimal)(Global.getRSDeadzone(device) / 127d), 3);
nUDSX.Value = (decimal)Global.getSXDeadzone(device);
nUDSZ.Value = (decimal)Global.getSZDeadzone(device);
cBShiftControl.SelectedIndex = Global.getShiftModifier(device);
@ -177,7 +177,17 @@ namespace ScpServer
cbStartTouchpadOff.Checked = Global.getStartTouchpadOff(device);
}
else
{
Set();
switch (device)
{
case 0: tBRedBar.Value = 0; tBGreenBar.Value = 0; break;
case 1: tBGreenBar.Value = 0; tBBlueBar.Value = 0; break;
case 2: tBRedBar.Value = 0; tBBlueBar.Value = 0; break;
case 3: tBGreenBar.Value = 0; break;
case 4: tBRedBar.Value = 0; tBGreenBar.Value = 0; break;
}
}
foreach (Button b in buttons)
b.MouseHover += button_MouseHover;
foreach (Button b in subbuttons)
@ -384,9 +394,9 @@ namespace ScpServer
lowBatteryPanel.Visible = cBLightbyBattery.Checked;
lbFull.Text = (cBLightbyBattery.Checked ? Properties.Resources.Full + ":": Properties.Resources.Color + ":");
FullPanel.Location = (cBLightbyBattery.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
Global.saveColor(device, (byte)redBar.Value, (byte)greenBar.Value, (byte)blueBar.Value);
Global.saveLowColor(device, (byte)lowRedBar.Value, (byte)lowGreenBar.Value, (byte)lowBlueBar.Value);
Global.saveShiftColor(device, (byte)shiftRedBar.Value, (byte)shiftGreenBar.Value, (byte)shiftBlueBar.Value);
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);
Global.saveFlashColor(device, lbFlashAt.ForeColor.R, lbFlashAt.ForeColor.G, lbFlashAt.ForeColor.B);
Global.setLeftTriggerMiddle(device, (byte)Math.Round((nUDL2.Value * 255), 0));
Global.setRightTriggerMiddle(device, (byte)Math.Round((nUDR2.Value * 255), 0));
@ -479,14 +489,14 @@ namespace ScpServer
}
private void btnLightbar_Click(object sender, EventArgs e)
{
advColorDialog.Color = Color.FromArgb(redBar.Value, greenBar.Value, blueBar.Value);
advColorDialog.Color = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
advColorDialog_OnUpdateColor(pBController.BackColor, e);
if (advColorDialog.ShowDialog() == DialogResult.OK)
{
pBController.BackColor = advColorDialog.Color;
redBar.Value = advColorDialog.Color.R;
greenBar.Value = advColorDialog.Color.G;
blueBar.Value = advColorDialog.Color.B;
tBRedBar.Value = advColorDialog.Color.R;
tBGreenBar.Value = advColorDialog.Color.G;
tBBlueBar.Value = advColorDialog.Color.B;
}
else Global.saveColor(device, oldLedColor[0], oldLedColor[1], oldLedColor[2]);
Global.saveChargingColor(device, oldChargingColor[0], oldChargingColor[1], oldChargingColor[2]);
@ -502,9 +512,9 @@ namespace ScpServer
if (advColorDialog.ShowDialog() == DialogResult.OK)
{
lowColorChooserButton.BackColor = advColorDialog.Color;
lowRedBar.Value = advColorDialog.Color.R;
lowGreenBar.Value = advColorDialog.Color.G;
lowBlueBar.Value = advColorDialog.Color.B;
tBLowRedBar.Value = advColorDialog.Color.R;
tBLowGreenBar.Value = advColorDialog.Color.G;
tBLowBlueBar.Value = advColorDialog.Color.B;
}
else Global.saveLowColor(device, oldLowLedColor[0], oldLowLedColor[1], oldLowLedColor[2]);
Global.saveChargingColor(device, oldChargingColor[0], oldChargingColor[1], oldChargingColor[2]);
@ -556,11 +566,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(som, sat, sat);
alphacolor = Math.Max(redBar.Value, Math.Max(greenBar.Value, blueBar.Value));
reg = Color.FromArgb(redBar.Value, greenBar.Value, blueBar.Value);
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
reg = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveColor(device, (byte)redBar.Value, (byte)greenBar.Value, (byte)blueBar.Value);
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
@ -572,11 +582,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, som, sat);
alphacolor = Math.Max(redBar.Value, Math.Max(greenBar.Value, blueBar.Value));
reg = Color.FromArgb(redBar.Value, greenBar.Value, blueBar.Value);
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
reg = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveColor(device, (byte)redBar.Value, (byte)greenBar.Value, (byte)blueBar.Value);
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
@ -588,11 +598,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, sat, som);
alphacolor = Math.Max(redBar.Value, Math.Max(greenBar.Value, blueBar.Value));
reg = Color.FromArgb(redBar.Value, greenBar.Value, blueBar.Value);
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
reg = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
pBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveColor(device, (byte)redBar.Value, (byte)greenBar.Value, (byte)blueBar.Value);
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
@ -605,11 +615,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(som, sat, sat);
alphacolor = Math.Max(lowRedBar.Value, Math.Max(lowGreenBar.Value, lowBlueBar.Value));
reg = Color.FromArgb(lowRedBar.Value, lowGreenBar.Value, lowBlueBar.Value);
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBLowGreenBar.Value, tBLowBlueBar.Value));
reg = Color.FromArgb(tBLowRedBar.Value, tBLowGreenBar.Value, tBLowBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveLowColor(device, (byte)lowRedBar.Value, (byte)lowGreenBar.Value, (byte)lowBlueBar.Value);
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
@ -622,11 +632,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, som, sat);
alphacolor = Math.Max(lowRedBar.Value, Math.Max(lowGreenBar.Value, lowBlueBar.Value));
reg = Color.FromArgb(lowRedBar.Value, lowGreenBar.Value, lowBlueBar.Value);
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBLowGreenBar.Value, tBLowBlueBar.Value));
reg = Color.FromArgb(tBLowRedBar.Value, tBLowGreenBar.Value, tBLowBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveLowColor(device, (byte)lowRedBar.Value, (byte)lowGreenBar.Value, (byte)lowBlueBar.Value);
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
@ -639,11 +649,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, sat, som);
alphacolor = Math.Max(lowRedBar.Value, Math.Max(lowGreenBar.Value, lowBlueBar.Value));
reg = Color.FromArgb(lowRedBar.Value, lowGreenBar.Value, lowBlueBar.Value);
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBLowGreenBar.Value, tBLowBlueBar.Value));
reg = Color.FromArgb(tBLowRedBar.Value, tBLowGreenBar.Value, tBLowBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveLowColor(device, (byte)lowRedBar.Value, (byte)lowGreenBar.Value, (byte)lowBlueBar.Value);
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
@ -656,11 +666,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(som, sat, sat);
alphacolor = Math.Max(shiftRedBar.Value, Math.Max(shiftGreenBar.Value, shiftBlueBar.Value));
reg = Color.FromArgb(shiftRedBar.Value, shiftGreenBar.Value, shiftBlueBar.Value);
alphacolor = Math.Max(tBShiftRedBar.Value, Math.Max(tBShiftGreenBar.Value, tBShiftBlueBar.Value));
reg = Color.FromArgb(tBShiftRedBar.Value, tBShiftGreenBar.Value, tBShiftBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
spBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveShiftColor(device, (byte)shiftRedBar.Value, (byte)shiftGreenBar.Value, (byte)shiftBlueBar.Value);
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
@ -673,11 +683,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, som, sat);
alphacolor = Math.Max(shiftRedBar.Value, Math.Max(shiftGreenBar.Value, shiftBlueBar.Value));
reg = Color.FromArgb(shiftRedBar.Value, shiftGreenBar.Value, shiftBlueBar.Value);
alphacolor = Math.Max(tBShiftRedBar.Value, Math.Max(tBShiftGreenBar.Value, tBShiftBlueBar.Value));
reg = Color.FromArgb(tBShiftRedBar.Value, tBShiftGreenBar.Value, tBShiftBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
spBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveShiftColor(device, (byte)shiftRedBar.Value, (byte)shiftGreenBar.Value, (byte)shiftBlueBar.Value);
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
@ -690,11 +700,11 @@ namespace ScpServer
int sat = bgc - (value < bgc ? value : bgc);
int som = bgc + 11 * (int)(value * 0.0039215);
((TrackBar)sender).BackColor = Color.FromArgb(sat, sat, som);
alphacolor = Math.Max(shiftRedBar.Value, Math.Max(shiftGreenBar.Value, shiftBlueBar.Value));
reg = Color.FromArgb(shiftRedBar.Value, shiftGreenBar.Value, shiftBlueBar.Value);
alphacolor = Math.Max(tBShiftRedBar.Value, Math.Max(tBShiftGreenBar.Value, tBShiftBlueBar.Value));
reg = Color.FromArgb(tBShiftRedBar.Value, tBShiftGreenBar.Value, tBShiftBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
spBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
Global.saveShiftColor(device, (byte)shiftRedBar.Value, (byte)shiftGreenBar.Value, (byte)shiftBlueBar.Value);
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
@ -1285,16 +1295,16 @@ namespace ScpServer
private void lbEmpty_Click(object sender, EventArgs e)
{
lowRedBar.Value = redBar.Value;
lowGreenBar.Value = greenBar.Value;
lowBlueBar.Value = blueBar.Value;
tBLowRedBar.Value = tBRedBar.Value;
tBLowGreenBar.Value = tBGreenBar.Value;
tBLowBlueBar.Value = tBBlueBar.Value;
}
private void lbShift_Click(object sender, EventArgs e)
{
shiftRedBar.Value = redBar.Value;
shiftGreenBar.Value = greenBar.Value;
shiftBlueBar.Value = blueBar.Value;
tBShiftRedBar.Value = tBRedBar.Value;
tBShiftGreenBar.Value = tBGreenBar.Value;
tBShiftBlueBar.Value = tBBlueBar.Value;
}
private void lbSATip_Click(object sender, EventArgs e)
@ -1325,8 +1335,8 @@ namespace ScpServer
}
else
{
alphacolor = Math.Max(shiftRedBar.Value, Math.Max(shiftGreenBar.Value, shiftBlueBar.Value));
reg = Color.FromArgb(shiftRedBar.Value, shiftGreenBar.Value, shiftBlueBar.Value);
alphacolor = Math.Max(tBShiftRedBar.Value, Math.Max(tBShiftGreenBar.Value, tBShiftBlueBar.Value));
reg = Color.FromArgb(tBShiftRedBar.Value, tBShiftGreenBar.Value, tBShiftBlueBar.Value);
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
spBController.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
}
@ -1335,9 +1345,9 @@ namespace ScpServer
lbShiftRed.Enabled = cBShiftLight.Checked;
lbShiftGreen.Enabled = cBShiftLight.Checked;
lbShiftBlue.Enabled = cBShiftLight.Checked;
shiftRedBar.Enabled = cBShiftLight.Checked;
shiftGreenBar.Enabled = cBShiftLight.Checked;
shiftBlueBar.Enabled = cBShiftLight.Checked;
tBShiftRedBar.Enabled = cBShiftLight.Checked;
tBShiftGreenBar.Enabled = cBShiftLight.Checked;
tBShiftBlueBar.Enabled = cBShiftLight.Checked;
}
private void btnBrowse_Click(object sender, EventArgs e)

View File

@ -1511,7 +1511,7 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;nUDRainbow.ZOrder" xml:space="preserve">
<value>10</value>
<value>9</value>
</data>
<data name="pBRainbow.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
@ -1538,87 +1538,87 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;pBRainbow.ZOrder" xml:space="preserve">
<value>8</value>
<value>7</value>
</data>
<data name="blueBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBBlueBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="blueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBBlueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="blueBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBBlueBar.Location" type="System.Drawing.Point, System.Drawing">
<value>325, 4</value>
</data>
<data name="blueBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBBlueBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="blueBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBBlueBar.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
<data name="&gt;&gt;blueBar.Name" xml:space="preserve">
<value>blueBar</value>
<data name="&gt;&gt;tBBlueBar.Name" xml:space="preserve">
<value>tBBlueBar</value>
</data>
<data name="&gt;&gt;blueBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBBlueBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;blueBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBBlueBar.Parent" xml:space="preserve">
<value>FullPanel</value>
</data>
<data name="&gt;&gt;blueBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBBlueBar.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="greenBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBGreenBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="greenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBGreenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="greenBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBGreenBar.Location" type="System.Drawing.Point, System.Drawing">
<value>196, 4</value>
</data>
<data name="greenBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBGreenBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="greenBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBGreenBar.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="&gt;&gt;greenBar.Name" xml:space="preserve">
<value>greenBar</value>
<data name="&gt;&gt;tBGreenBar.Name" xml:space="preserve">
<value>tBGreenBar</value>
</data>
<data name="&gt;&gt;greenBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBGreenBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;greenBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBGreenBar.Parent" xml:space="preserve">
<value>FullPanel</value>
</data>
<data name="&gt;&gt;greenBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBGreenBar.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="redBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBRedBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="redBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBRedBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="redBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBRedBar.Location" type="System.Drawing.Point, System.Drawing">
<value>73, 4</value>
</data>
<data name="redBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBRedBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="redBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBRedBar.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="&gt;&gt;redBar.Name" xml:space="preserve">
<value>redBar</value>
<data name="&gt;&gt;tBRedBar.Name" xml:space="preserve">
<value>tBRedBar</value>
</data>
<data name="&gt;&gt;redBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBRedBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;redBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBRedBar.Parent" xml:space="preserve">
<value>FullPanel</value>
</data>
<data name="&gt;&gt;redBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBRedBar.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="cBLightbyBattery.AutoSize" type="System.Boolean, mscorlib">
@ -1649,7 +1649,7 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;cBLightbyBattery.ZOrder" xml:space="preserve">
<value>12</value>
<value>11</value>
</data>
<data name="lbBlue.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -1739,7 +1739,7 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbspc.ZOrder" xml:space="preserve">
<value>11</value>
<value>10</value>
</data>
<data name="lbRed.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -2594,85 +2594,85 @@ Click the lightbar for color picker</value>
<data name="&gt;&gt;lbLowBlue.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="lowRedBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBLowRedBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="lowRedBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBLowRedBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lowRedBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBLowRedBar.Location" type="System.Drawing.Point, System.Drawing">
<value>73, 5</value>
</data>
<data name="lowRedBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBLowRedBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="lowRedBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBLowRedBar.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="&gt;&gt;lowRedBar.Name" xml:space="preserve">
<value>lowRedBar</value>
<data name="&gt;&gt;tBLowRedBar.Name" xml:space="preserve">
<value>tBLowRedBar</value>
</data>
<data name="&gt;&gt;lowRedBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBLowRedBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lowRedBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBLowRedBar.Parent" xml:space="preserve">
<value>lowBatteryPanel</value>
</data>
<data name="&gt;&gt;lowRedBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBLowRedBar.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="lowGreenBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBLowGreenBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="lowGreenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBLowGreenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lowGreenBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBLowGreenBar.Location" type="System.Drawing.Point, System.Drawing">
<value>196, 5</value>
</data>
<data name="lowGreenBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBLowGreenBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="lowGreenBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBLowGreenBar.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="&gt;&gt;lowGreenBar.Name" xml:space="preserve">
<value>lowGreenBar</value>
<data name="&gt;&gt;tBLowGreenBar.Name" xml:space="preserve">
<value>tBLowGreenBar</value>
</data>
<data name="&gt;&gt;lowGreenBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBLowGreenBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lowGreenBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBLowGreenBar.Parent" xml:space="preserve">
<value>lowBatteryPanel</value>
</data>
<data name="&gt;&gt;lowGreenBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBLowGreenBar.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="lowBlueBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBLowBlueBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="lowBlueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBLowBlueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lowBlueBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBLowBlueBar.Location" type="System.Drawing.Point, System.Drawing">
<value>325, 5</value>
</data>
<data name="lowBlueBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBLowBlueBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="lowBlueBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBLowBlueBar.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
<data name="&gt;&gt;lowBlueBar.Name" xml:space="preserve">
<value>lowBlueBar</value>
<data name="&gt;&gt;tBLowBlueBar.Name" xml:space="preserve">
<value>tBLowBlueBar</value>
</data>
<data name="&gt;&gt;lowBlueBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBLowBlueBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lowBlueBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBLowBlueBar.Parent" xml:space="preserve">
<value>lowBatteryPanel</value>
</data>
<data name="&gt;&gt;lowBlueBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBLowBlueBar.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="lbEmpty.AutoSize" type="System.Boolean, mscorlib">
@ -2724,7 +2724,7 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;FullPanel.ZOrder" xml:space="preserve">
<value>15</value>
<value>14</value>
</data>
<data name="lowBatteryPanel.Location" type="System.Drawing.Point, System.Drawing">
<value>2, 72</value>
@ -2745,7 +2745,7 @@ Click the lightbar for color picker</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lowBatteryPanel.ZOrder" xml:space="preserve">
<value>14</value>
<value>13</value>
</data>
<data name="lb6Gryo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@ -3282,6 +3282,267 @@ with profile</value>
<data name="&gt;&gt;gBOther.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="btnChargingColor.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="btnChargingColor.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="btnChargingColor.Location" type="System.Drawing.Point, System.Drawing">
<value>391, 108</value>
</data>
<data name="btnChargingColor.Size" type="System.Drawing.Size, System.Drawing">
<value>13, 13</value>
</data>
<data name="btnChargingColor.TabIndex" type="System.Int32, mscorlib">
<value>49</value>
</data>
<data name="btnChargingColor.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;btnChargingColor.Name" xml:space="preserve">
<value>btnChargingColor</value>
</data>
<data name="&gt;&gt;btnChargingColor.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnChargingColor.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;btnChargingColor.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="rBColor.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBColor.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBColor.Location" type="System.Drawing.Point, System.Drawing">
<value>336, 106</value>
</data>
<data name="rBColor.Size" type="System.Drawing.Size, System.Drawing">
<value>49, 17</value>
</data>
<data name="rBColor.TabIndex" type="System.Int32, mscorlib">
<value>238</value>
</data>
<data name="rBColor.Text" xml:space="preserve">
<value>Color</value>
</data>
<data name="&gt;&gt;rBColor.Name" xml:space="preserve">
<value>rBColor</value>
</data>
<data name="&gt;&gt;rBColor.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBColor.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBColor.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="rBFade.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBFade.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBFade.Location" type="System.Drawing.Point, System.Drawing">
<value>158, 106</value>
</data>
<data name="rBFade.Size" type="System.Drawing.Size, System.Drawing">
<value>99, 17</value>
</data>
<data name="rBFade.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBFade.Text" xml:space="preserve">
<value>Fade in and out</value>
</data>
<data name="&gt;&gt;rBFade.Name" xml:space="preserve">
<value>rBFade</value>
</data>
<data name="&gt;&gt;rBFade.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBFade.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBFade.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="rBNormal.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBNormal.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBNormal.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 106</value>
</data>
<data name="rBNormal.Size" type="System.Drawing.Size, System.Drawing">
<value>58, 17</value>
</data>
<data name="rBNormal.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBNormal.Text" xml:space="preserve">
<value>Normal</value>
</data>
<data name="&gt;&gt;rBNormal.Name" xml:space="preserve">
<value>rBNormal</value>
</data>
<data name="&gt;&gt;rBNormal.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBNormal.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBNormal.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="rBRainbow.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBRainbow.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBRainbow.Location" type="System.Drawing.Point, System.Drawing">
<value>263, 106</value>
</data>
<data name="rBRainbow.Size" type="System.Drawing.Size, System.Drawing">
<value>67, 17</value>
</data>
<data name="rBRainbow.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBRainbow.Text" xml:space="preserve">
<value>Rainbow</value>
</data>
<data name="&gt;&gt;rBRainbow.Name" xml:space="preserve">
<value>rBRainbow</value>
</data>
<data name="&gt;&gt;rBRainbow.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBRainbow.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBRainbow.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="lbWhileCharging.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbWhileCharging.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbWhileCharging.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 108</value>
</data>
<data name="lbWhileCharging.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 13</value>
</data>
<data name="lbWhileCharging.TabIndex" type="System.Int32, mscorlib">
<value>236</value>
</data>
<data name="lbWhileCharging.Text" xml:space="preserve">
<value>While Charging:</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Name" xml:space="preserve">
<value>lbWhileCharging</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbWhileCharging.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="lbPercentFlashBar.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbPercentFlashBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbPercentFlashBar.Location" type="System.Drawing.Point, System.Drawing">
<value>98, 18</value>
</data>
<data name="lbPercentFlashBar.Size" type="System.Drawing.Size, System.Drawing">
<value>15, 13</value>
</data>
<data name="lbPercentFlashBar.TabIndex" type="System.Int32, mscorlib">
<value>207</value>
</data>
<data name="lbPercentFlashBar.Text" xml:space="preserve">
<value>%</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Name" xml:space="preserve">
<value>lbPercentFlashBar</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="nUDflashLED.Location" type="System.Drawing.Point, System.Drawing">
<value>54, 16</value>
</data>
<data name="nUDflashLED.Size" type="System.Drawing.Size, System.Drawing">
<value>43, 20</value>
</data>
<data name="nUDflashLED.TabIndex" type="System.Int32, mscorlib">
<value>167</value>
</data>
<data name="&gt;&gt;nUDflashLED.Name" xml:space="preserve">
<value>nUDflashLED</value>
</data>
<data name="&gt;&gt;nUDflashLED.Type" xml:space="preserve">
<value>System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;nUDflashLED.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;nUDflashLED.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="lbFlashAt.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbFlashAt.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbFlashAt.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 18</value>
</data>
<data name="lbFlashAt.Size" type="System.Drawing.Size, System.Drawing">
<value>44, 13</value>
</data>
<data name="lbFlashAt.TabIndex" type="System.Int32, mscorlib">
<value>207</value>
</data>
<data name="lbFlashAt.Text" xml:space="preserve">
<value>Flash at</value>
</data>
<data name="&gt;&gt;lbFlashAt.Name" xml:space="preserve">
<value>lbFlashAt</value>
</data>
<data name="&gt;&gt;lbFlashAt.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbFlashAt.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbFlashAt.ZOrder" xml:space="preserve">
<value>12</value>
</data>
<data name="cBShiftLight.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -3432,85 +3693,85 @@ with profile</value>
<data name="&gt;&gt;lbShiftBlue.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="shiftRedBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBShiftRedBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="shiftRedBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBShiftRedBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="shiftRedBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBShiftRedBar.Location" type="System.Drawing.Point, System.Drawing">
<value>73, 30</value>
</data>
<data name="shiftRedBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBShiftRedBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="shiftRedBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBShiftRedBar.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="&gt;&gt;shiftRedBar.Name" xml:space="preserve">
<value>shiftRedBar</value>
<data name="&gt;&gt;tBShiftRedBar.Name" xml:space="preserve">
<value>tBShiftRedBar</value>
</data>
<data name="&gt;&gt;shiftRedBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBShiftRedBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;shiftRedBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBShiftRedBar.Parent" xml:space="preserve">
<value>ShiftPanel</value>
</data>
<data name="&gt;&gt;shiftRedBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBShiftRedBar.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="shiftGreenBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBShiftGreenBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="shiftGreenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBShiftGreenBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="shiftGreenBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBShiftGreenBar.Location" type="System.Drawing.Point, System.Drawing">
<value>196, 30</value>
</data>
<data name="shiftGreenBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBShiftGreenBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="shiftGreenBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBShiftGreenBar.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="&gt;&gt;shiftGreenBar.Name" xml:space="preserve">
<value>shiftGreenBar</value>
<data name="&gt;&gt;tBShiftGreenBar.Name" xml:space="preserve">
<value>tBShiftGreenBar</value>
</data>
<data name="&gt;&gt;shiftGreenBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBShiftGreenBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;shiftGreenBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBShiftGreenBar.Parent" xml:space="preserve">
<value>ShiftPanel</value>
</data>
<data name="&gt;&gt;shiftGreenBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBShiftGreenBar.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="shiftBlueBar.AutoSize" type="System.Boolean, mscorlib">
<data name="tBShiftBlueBar.AutoSize" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="shiftBlueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="tBShiftBlueBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="shiftBlueBar.Location" type="System.Drawing.Point, System.Drawing">
<data name="tBShiftBlueBar.Location" type="System.Drawing.Point, System.Drawing">
<value>325, 30</value>
</data>
<data name="shiftBlueBar.Size" type="System.Drawing.Size, System.Drawing">
<data name="tBShiftBlueBar.Size" type="System.Drawing.Size, System.Drawing">
<value>100, 20</value>
</data>
<data name="shiftBlueBar.TabIndex" type="System.Int32, mscorlib">
<data name="tBShiftBlueBar.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
<data name="&gt;&gt;shiftBlueBar.Name" xml:space="preserve">
<value>shiftBlueBar</value>
<data name="&gt;&gt;tBShiftBlueBar.Name" xml:space="preserve">
<value>tBShiftBlueBar</value>
</data>
<data name="&gt;&gt;shiftBlueBar.Type" xml:space="preserve">
<data name="&gt;&gt;tBShiftBlueBar.Type" xml:space="preserve">
<value>System.Windows.Forms.TrackBar, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;shiftBlueBar.Parent" xml:space="preserve">
<data name="&gt;&gt;tBShiftBlueBar.Parent" xml:space="preserve">
<value>ShiftPanel</value>
</data>
<data name="&gt;&gt;shiftBlueBar.ZOrder" xml:space="preserve">
<data name="&gt;&gt;tBShiftBlueBar.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="ShiftPanel.Location" type="System.Drawing.Point, System.Drawing">
@ -3535,268 +3796,7 @@ with profile</value>
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;ShiftPanel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="btnChargingColor.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="btnChargingColor.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="btnChargingColor.Location" type="System.Drawing.Point, System.Drawing">
<value>391, 108</value>
</data>
<data name="btnChargingColor.Size" type="System.Drawing.Size, System.Drawing">
<value>13, 13</value>
</data>
<data name="btnChargingColor.TabIndex" type="System.Int32, mscorlib">
<value>49</value>
</data>
<data name="btnChargingColor.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;btnChargingColor.Name" xml:space="preserve">
<value>btnChargingColor</value>
</data>
<data name="&gt;&gt;btnChargingColor.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnChargingColor.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;btnChargingColor.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="rBColor.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBColor.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBColor.Location" type="System.Drawing.Point, System.Drawing">
<value>336, 106</value>
</data>
<data name="rBColor.Size" type="System.Drawing.Size, System.Drawing">
<value>49, 17</value>
</data>
<data name="rBColor.TabIndex" type="System.Int32, mscorlib">
<value>238</value>
</data>
<data name="rBColor.Text" xml:space="preserve">
<value>Color</value>
</data>
<data name="&gt;&gt;rBColor.Name" xml:space="preserve">
<value>rBColor</value>
</data>
<data name="&gt;&gt;rBColor.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBColor.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBColor.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="rBFade.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBFade.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBFade.Location" type="System.Drawing.Point, System.Drawing">
<value>158, 106</value>
</data>
<data name="rBFade.Size" type="System.Drawing.Size, System.Drawing">
<value>99, 17</value>
</data>
<data name="rBFade.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBFade.Text" xml:space="preserve">
<value>Fade in and out</value>
</data>
<data name="&gt;&gt;rBFade.Name" xml:space="preserve">
<value>rBFade</value>
</data>
<data name="&gt;&gt;rBFade.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBFade.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBFade.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="rBNormal.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBNormal.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBNormal.Location" type="System.Drawing.Point, System.Drawing">
<value>97, 106</value>
</data>
<data name="rBNormal.Size" type="System.Drawing.Size, System.Drawing">
<value>58, 17</value>
</data>
<data name="rBNormal.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBNormal.Text" xml:space="preserve">
<value>Normal</value>
</data>
<data name="&gt;&gt;rBNormal.Name" xml:space="preserve">
<value>rBNormal</value>
</data>
<data name="&gt;&gt;rBNormal.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBNormal.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBNormal.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="rBRainbow.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rBRainbow.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rBRainbow.Location" type="System.Drawing.Point, System.Drawing">
<value>263, 106</value>
</data>
<data name="rBRainbow.Size" type="System.Drawing.Size, System.Drawing">
<value>67, 17</value>
</data>
<data name="rBRainbow.TabIndex" type="System.Int32, mscorlib">
<value>237</value>
</data>
<data name="rBRainbow.Text" xml:space="preserve">
<value>Rainbow</value>
</data>
<data name="&gt;&gt;rBRainbow.Name" xml:space="preserve">
<value>rBRainbow</value>
</data>
<data name="&gt;&gt;rBRainbow.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rBRainbow.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;rBRainbow.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="lbWhileCharging.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbWhileCharging.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbWhileCharging.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 108</value>
</data>
<data name="lbWhileCharging.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 13</value>
</data>
<data name="lbWhileCharging.TabIndex" type="System.Int32, mscorlib">
<value>236</value>
</data>
<data name="lbWhileCharging.Text" xml:space="preserve">
<value>While Charging:</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Name" xml:space="preserve">
<value>lbWhileCharging</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbWhileCharging.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbWhileCharging.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="lbPercentFlashBar.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbPercentFlashBar.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbPercentFlashBar.Location" type="System.Drawing.Point, System.Drawing">
<value>98, 18</value>
</data>
<data name="lbPercentFlashBar.Size" type="System.Drawing.Size, System.Drawing">
<value>15, 13</value>
</data>
<data name="lbPercentFlashBar.TabIndex" type="System.Int32, mscorlib">
<value>207</value>
</data>
<data name="lbPercentFlashBar.Text" xml:space="preserve">
<value>%</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Name" xml:space="preserve">
<value>lbPercentFlashBar</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbPercentFlashBar.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="nUDflashLED.Location" type="System.Drawing.Point, System.Drawing">
<value>54, 16</value>
</data>
<data name="nUDflashLED.Size" type="System.Drawing.Size, System.Drawing">
<value>43, 20</value>
</data>
<data name="nUDflashLED.TabIndex" type="System.Int32, mscorlib">
<value>167</value>
</data>
<data name="&gt;&gt;nUDflashLED.Name" xml:space="preserve">
<value>nUDflashLED</value>
</data>
<data name="&gt;&gt;nUDflashLED.Type" xml:space="preserve">
<value>System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;nUDflashLED.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;nUDflashLED.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="lbFlashAt.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="lbFlashAt.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="lbFlashAt.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 18</value>
</data>
<data name="lbFlashAt.Size" type="System.Drawing.Size, System.Drawing">
<value>44, 13</value>
</data>
<data name="lbFlashAt.TabIndex" type="System.Int32, mscorlib">
<value>207</value>
</data>
<data name="lbFlashAt.Text" xml:space="preserve">
<value>Flash at</value>
</data>
<data name="&gt;&gt;lbFlashAt.Name" xml:space="preserve">
<value>lbFlashAt</value>
</data>
<data name="&gt;&gt;lbFlashAt.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lbFlashAt.Parent" xml:space="preserve">
<value>gBLightbar</value>
</data>
<data name="&gt;&gt;lbFlashAt.ZOrder" xml:space="preserve">
<value>13</value>
<value>15</value>
</data>
<data name="gBLightbar.Location" type="System.Drawing.Point, System.Drawing">
<value>443, 85</value>
@ -6784,7 +6784,7 @@ with profile</value>
<value>advColorDialog</value>
</data>
<data name="&gt;&gt;advColorDialog.Type" xml:space="preserve">
<value>ScpServer.AdvancedColorDialog, DS4Windows, Version=1.4.0.61, Culture=neutral, PublicKeyToken=null</value>
<value>ScpServer.AdvancedColorDialog, DS4Windows, Version=1.4.0.75, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>Options</value>

View File

@ -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.71")]
[assembly: AssemblyFileVersion("1.4.0.71")]
[assembly: AssemblyVersion("1.4.0.75")]
[assembly: AssemblyFileVersion("1.4.0.75")]

View File

@ -181,6 +181,7 @@
this.pnlButton.Controls.Add(this.llbHelp);
resources.ApplyResources(this.pnlButton, "pnlButton");
this.pnlButton.Name = "pnlButton";
this.pnlButton.MouseLeave += new System.EventHandler(this.pnlButton_MouseLeave);
//
// lBTest
//
@ -199,6 +200,7 @@
resources.ApplyResources(this.lbLastMessage, "lbLastMessage");
this.lbLastMessage.ForeColor = System.Drawing.SystemColors.GrayText;
this.lbLastMessage.Name = "lbLastMessage";
this.lbLastMessage.MouseHover += new System.EventHandler(this.lbLastMessage_MouseHover);
//
// llbHelp
//

View File

@ -501,7 +501,7 @@ namespace ScpServer
WP.Dock = DockStyle.Fill;
tabAutoProfiles.Controls.Add(WP);
}
protected void LogDebug(DateTime Time, String Data)
protected async void LogDebug(DateTime Time, String Data)
{
if (lvDebug.InvokeRequired)
{
@ -514,6 +514,11 @@ namespace ScpServer
}
else
{
if (Data.StartsWith("Warning"))
{
await System.Threading.Tasks.Task.Delay(5);
Time = DateTime.Now;
}
String Posted = Time.ToString("G");
lvDebug.Items.Add(new ListViewItem(new String[] { Posted, Data })).EnsureVisible();
@ -1330,6 +1335,16 @@ namespace ScpServer
{
Global.setSwipeProfiles(cBSwipeProfiles.Checked);
}
private void lbLastMessage_MouseHover(object sender, EventArgs e)
{
tt.Show(lbLastMessage.Text, lbLastMessage, -3, -3);
}
private void pnlButton_MouseLeave(object sender, EventArgs e)
{
tt.Hide(lbLastMessage);
}
}
public class ThemeUtil