mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
Version 10.55
Dimming by idle timeout synced with color/dim by Battery % setting Swipe to cycle through profiles can now be disabled. Version 10.52 Input by DS4 in profile settings now turns off when off that tab Able to use edit button to open that profile settings, even when profile settings are already open open. Version 10.51 Fix for BT disconnecting while DS4Windows is running, and Disconnect BT when stopping is checked. Version 10.5 Support for Left/Right Shift, Control, Alt in macros Better support of Tab and media keys (note: media keys can not be held between actions) Option to disconnect controller from BT if stopping/closing DS4Windows Spelling fixes Start of support for other languages, starting with very barebones support for Spanish, If anyone can help with translations of your language, please PM me here or email me here with translations for as much text as you can. Here is a link to all the text that appears in DS4Windows in English
This commit is contained in:
parent
ea5c9694fb
commit
edd7cf9403
@ -127,10 +127,15 @@ namespace DS4Control
|
||||
for (int i = 0; i < DS4Controllers.Length; i++)
|
||||
{
|
||||
if (DS4Controllers[i] != null)
|
||||
{
|
||||
if (Global.getDCBTatStop() && !DS4Controllers[i].Charging && showlog)
|
||||
DS4Controllers[i].DisconnectBT();
|
||||
else
|
||||
{
|
||||
DS4LightBar.defualtLight = true;
|
||||
DS4LightBar.updateLightBar(DS4Controllers[i], i);
|
||||
System.Threading.Thread.Sleep(50);
|
||||
}
|
||||
CurrentState[i].Battery = PreviousState[i].Battery = 0; // Reset for the next connection's initial status change.
|
||||
x360Bus.Unplug(i);
|
||||
anyUnplugged = true;
|
||||
@ -575,6 +580,5 @@ namespace DS4Control
|
||||
{
|
||||
return MappedState[ind];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ namespace DS4Control
|
||||
color = Global.loadColor(deviceNum);
|
||||
}
|
||||
|
||||
if (Global.getIdleDisconnectTimeout(deviceNum) > 0 && (!device.Charging || device.Battery >= 100))
|
||||
if (Global.getIdleDisconnectTimeout(deviceNum) > 0 && Global.getLedAsBatteryIndicator(deviceNum) && (!device.Charging || device.Battery >= 100))
|
||||
{//Fade lightbar by idle time
|
||||
TimeSpan timeratio = new TimeSpan(DateTime.UtcNow.Ticks - device.lastActive.Ticks);
|
||||
double botratio = timeratio.TotalMilliseconds;
|
||||
|
@ -200,6 +200,7 @@ namespace DS4Control
|
||||
{
|
||||
oldnow = DateTime.UtcNow;
|
||||
InputMethods.performKeyPress(kvp.Key);
|
||||
Console.WriteLine(((System.Windows.Forms.Keys)kvp.Key).ToString());
|
||||
pressagain = false;
|
||||
keyshelddown = kvp.Key;
|
||||
}
|
||||
@ -240,7 +241,7 @@ namespace DS4Control
|
||||
if (gkp.previous.scanCodeCount != 0) // use the last type of VK/SC
|
||||
{
|
||||
InputMethods.performSCKeyRelease(kvp.Key);
|
||||
InputMethods.performKeyRelease(kvp.Key);
|
||||
//InputMethods.performKeyRelease(kvp.Key);
|
||||
pressagain = false;
|
||||
}
|
||||
else
|
||||
|
@ -279,6 +279,26 @@ namespace DS4Control
|
||||
{
|
||||
return m_Config.notifications;
|
||||
}
|
||||
|
||||
public static void setDCBTatStop(bool data)
|
||||
{
|
||||
m_Config.disconnectBTAtStop = data;
|
||||
}
|
||||
|
||||
public static bool getDCBTatStop()
|
||||
{
|
||||
return m_Config.disconnectBTAtStop;
|
||||
}
|
||||
|
||||
public static void setSwipeProfiles(bool data)
|
||||
{
|
||||
m_Config.swipeProfiles = data;
|
||||
}
|
||||
|
||||
public static bool getSwipeProfiles()
|
||||
{
|
||||
return m_Config.swipeProfiles;
|
||||
}
|
||||
// New settings
|
||||
public static void saveLowColor(int device, byte red, byte green, byte blue)
|
||||
{
|
||||
@ -614,6 +634,8 @@ namespace DS4Control
|
||||
public DateTime lastChecked;
|
||||
public int CheckWhen = 1;
|
||||
public bool notifications = true;
|
||||
public bool disconnectBTAtStop = false;
|
||||
public bool swipeProfiles = true;
|
||||
public Dictionary<DS4Controls, DS4KeyType>[] customMapKeyTypes = { null, null, null, null, null };
|
||||
public Dictionary<DS4Controls, UInt16>[] customMapKeys = { null, null, null, null, null };
|
||||
public Dictionary<DS4Controls, String>[] customMapMacros = { null, null, null, null, null };
|
||||
@ -1229,6 +1251,12 @@ namespace DS4Control
|
||||
catch { missingSetting = true; }
|
||||
try { Item = m_Xdoc.SelectSingleNode("/Profile/Notifications"); Boolean.TryParse(Item.InnerText, out notifications); }
|
||||
catch { missingSetting = true; }
|
||||
try { Item = m_Xdoc.SelectSingleNode("/Profile/Notifications"); Boolean.TryParse(Item.InnerText, out notifications); }
|
||||
catch { missingSetting = true; }
|
||||
try { Item = m_Xdoc.SelectSingleNode("/Profile/DisconnectBTAtStop"); Boolean.TryParse(Item.InnerText, out disconnectBTAtStop); }
|
||||
catch { missingSetting = true; }
|
||||
try { Item = m_Xdoc.SelectSingleNode("/Profile/SwipeProfiles"); Boolean.TryParse(Item.InnerText, out swipeProfiles); }
|
||||
catch { missingSetting = true; }
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
@ -1240,8 +1268,6 @@ namespace DS4Control
|
||||
{
|
||||
Boolean Saved = true;
|
||||
|
||||
//try
|
||||
{
|
||||
XmlNode Node;
|
||||
|
||||
m_Xdoc.RemoveAll();
|
||||
@ -1272,13 +1298,12 @@ namespace DS4Control
|
||||
XmlNode xmlLastChecked = m_Xdoc.CreateNode(XmlNodeType.Element, "LastChecked", null); xmlLastChecked.InnerText = lastChecked.ToString(); Node.AppendChild(xmlLastChecked);
|
||||
XmlNode xmlCheckWhen = m_Xdoc.CreateNode(XmlNodeType.Element, "CheckWhen", null); xmlCheckWhen.InnerText = CheckWhen.ToString(); Node.AppendChild(xmlCheckWhen);
|
||||
XmlNode xmlNotifications = m_Xdoc.CreateNode(XmlNodeType.Element, "Notifications", null); xmlNotifications.InnerText = notifications.ToString(); Node.AppendChild(xmlNotifications);
|
||||
XmlNode xmlDisconnectBT = m_Xdoc.CreateNode(XmlNodeType.Element, "DisconnectBTAtStop", null); xmlDisconnectBT.InnerText = disconnectBTAtStop.ToString(); Node.AppendChild(xmlDisconnectBT);
|
||||
XmlNode xmlSwipeProfiles = m_Xdoc.CreateNode(XmlNodeType.Element, "SwipeProfiles", null); xmlSwipeProfiles.InnerText = swipeProfiles.ToString(); Node.AppendChild(xmlSwipeProfiles);
|
||||
m_Xdoc.AppendChild(Node);
|
||||
|
||||
try { m_Xdoc.Save(m_Profile); }
|
||||
catch (UnauthorizedAccessException) { Saved = false; }
|
||||
}
|
||||
//catch { Saved = false; }
|
||||
|
||||
return Saved;
|
||||
}
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>C:\Users\Jonathan\Dropbox\Public\DS4 Tool\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
@ -31,7 +32,6 @@
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@ -133,11 +133,6 @@
|
||||
<Compile Include="RecordBox.Designer.cs">
|
||||
<DependentUpon>RecordBox.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Resource.es.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resource.es.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SaveWhere.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -179,20 +174,20 @@
|
||||
<DependentUpon>Options.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources1.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="RecordBox.resx">
|
||||
<DependentUpon>RecordBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Resource.es.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resource.es.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.es.resx" />
|
||||
<EmbeddedResource Include="SaveWhere.resx">
|
||||
<DependentUpon>SaveWhere.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ScpForm.es.resx">
|
||||
<DependentUpon>ScpForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ScpForm.resx">
|
||||
<DependentUpon>ScpForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
8
DS4Tool/Hotkeys.Designer.cs
generated
8
DS4Tool/Hotkeys.Designer.cs
generated
@ -197,7 +197,7 @@
|
||||
this.label29.Name = "label29";
|
||||
this.label29.Size = new System.Drawing.Size(313, 13);
|
||||
this.label29.TabIndex = 14;
|
||||
this.label29.Text = "Keys are interperted differently. May be needed for certain games";
|
||||
this.label29.Text = "Keys are interpreted differently. May be needed for certain games";
|
||||
//
|
||||
// label28
|
||||
//
|
||||
@ -360,9 +360,9 @@
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(193, 127);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(231, 13);
|
||||
this.label5.Size = new System.Drawing.Size(237, 13);
|
||||
this.label5.TabIndex = 4;
|
||||
this.label5.Text = "Turn off touchpad movment (clicking still works)";
|
||||
this.label5.Text = "Turn off touchpad movement (clicking still works)";
|
||||
//
|
||||
// label17
|
||||
//
|
||||
@ -483,7 +483,7 @@
|
||||
this.label31.Name = "label31";
|
||||
this.label31.Size = new System.Drawing.Size(324, 26);
|
||||
this.label31.TabIndex = 14;
|
||||
this.label31.Text = "Hides the DS4\'s regular input (Dinput) from other progrmas\r\ncheck if you are gett" +
|
||||
this.label31.Text = "Hides the DS4\'s regular input (Dinput) from other programs\r\ncheck if you are gett" +
|
||||
"ing double input in games or R2 pauses games";
|
||||
//
|
||||
// lLChangelog
|
||||
|
4
DS4Tool/KBM360.Designer.cs
generated
4
DS4Tool/KBM360.Designer.cs
generated
@ -2000,9 +2000,9 @@
|
||||
this.lBMacroOn.AutoSize = true;
|
||||
this.lBMacroOn.Location = new System.Drawing.Point(10, 6);
|
||||
this.lBMacroOn.Name = "lBMacroOn";
|
||||
this.lBMacroOn.Size = new System.Drawing.Size(173, 13);
|
||||
this.lBMacroOn.Size = new System.Drawing.Size(322, 13);
|
||||
this.lBMacroOn.TabIndex = 319;
|
||||
this.lBMacroOn.Text = "Macro On, Choose a key to disable";
|
||||
this.lBMacroOn.Text = "Macro On, Choose a key to disable, else close this window to save";
|
||||
this.lBMacroOn.Visible = false;
|
||||
//
|
||||
// btnMacro
|
||||
|
151
DS4Tool/Options.Designer.cs
generated
151
DS4Tool/Options.Designer.cs
generated
@ -73,7 +73,7 @@
|
||||
this.blueBar = new System.Windows.Forms.TrackBar();
|
||||
this.greenBar = new System.Windows.Forms.TrackBar();
|
||||
this.redBar = new System.Windows.Forms.TrackBar();
|
||||
this.batteryLed = new System.Windows.Forms.CheckBox();
|
||||
this.cBLightbyBattery = new System.Windows.Forms.CheckBox();
|
||||
this.lBBlue = new System.Windows.Forms.Label();
|
||||
this.lBGreen = new System.Windows.Forms.Label();
|
||||
this.lBspc = new System.Windows.Forms.Label();
|
||||
@ -87,14 +87,14 @@
|
||||
this.nUDTouch = new System.Windows.Forms.NumericUpDown();
|
||||
this.lBButtonMouseSens = new System.Windows.Forms.Label();
|
||||
this.cBlowerRCOn = new System.Windows.Forms.CheckBox();
|
||||
this.touchpadJitterCompensation = new System.Windows.Forms.CheckBox();
|
||||
this.cBTouchpadJitterCompensation = new System.Windows.Forms.CheckBox();
|
||||
this.lBL2 = new System.Windows.Forms.Label();
|
||||
this.lBR2 = new System.Windows.Forms.Label();
|
||||
this.lBIdleMinutes = new System.Windows.Forms.Label();
|
||||
this.nUDIdleDisconnect = new System.Windows.Forms.NumericUpDown();
|
||||
this.nUDR2 = new System.Windows.Forms.NumericUpDown();
|
||||
this.tBsixaxisAccelZ = new System.Windows.Forms.TrackBar();
|
||||
this.flushHIDQueue = new System.Windows.Forms.CheckBox();
|
||||
this.cBFlushHIDQueue = new System.Windows.Forms.CheckBox();
|
||||
this.tBsixaxisAccelY = new System.Windows.Forms.TrackBar();
|
||||
this.leftMotorLabel = new System.Windows.Forms.Label();
|
||||
this.tBsixaxisAccelX = new System.Windows.Forms.TrackBar();
|
||||
@ -133,17 +133,14 @@
|
||||
this.gBOther = new System.Windows.Forms.GroupBox();
|
||||
this.nUDSixaxis = new System.Windows.Forms.NumericUpDown();
|
||||
this.cBControllerInput = new System.Windows.Forms.CheckBox();
|
||||
this.nUDHideMouse = new System.Windows.Forms.NumericUpDown();
|
||||
this.cBHideCursor = new System.Windows.Forms.CheckBox();
|
||||
this.cBIdleDisconnect = new System.Windows.Forms.CheckBox();
|
||||
this.lBMouseMins = new System.Windows.Forms.Label();
|
||||
this.gBLightbar = new System.Windows.Forms.GroupBox();
|
||||
this.btnChargingColor = new System.Windows.Forms.Button();
|
||||
this.rBColor = new System.Windows.Forms.RadioButton();
|
||||
this.rBFade = new System.Windows.Forms.RadioButton();
|
||||
this.rBNormal = new System.Windows.Forms.RadioButton();
|
||||
this.rBRainbow = new System.Windows.Forms.RadioButton();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.lbWhileCharging = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.lBFlashAt = new System.Windows.Forms.Label();
|
||||
this.nUDflashLED = new System.Windows.Forms.NumericUpDown();
|
||||
@ -187,7 +184,6 @@
|
||||
this.gBTouchpad.SuspendLayout();
|
||||
this.gBOther.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDSixaxis)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDHideMouse)).BeginInit();
|
||||
this.gBLightbar.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDflashLED)).BeginInit();
|
||||
this.gBRumble.SuspendLayout();
|
||||
@ -1028,16 +1024,16 @@
|
||||
this.redBar.MouseDown += new System.Windows.Forms.MouseEventHandler(this.LightBar_MouseDown);
|
||||
this.redBar.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Lightbar_MouseUp);
|
||||
//
|
||||
// batteryLed
|
||||
// cBLightbyBattery
|
||||
//
|
||||
this.batteryLed.AutoSize = true;
|
||||
this.batteryLed.Location = new System.Drawing.Point(316, 17);
|
||||
this.batteryLed.Name = "batteryLed";
|
||||
this.batteryLed.Size = new System.Drawing.Size(111, 17);
|
||||
this.batteryLed.TabIndex = 162;
|
||||
this.batteryLed.Text = "Color by Battery %";
|
||||
this.batteryLed.UseVisualStyleBackColor = true;
|
||||
this.batteryLed.CheckedChanged += new System.EventHandler(this.ledAsBatteryIndicator_CheckedChanged);
|
||||
this.cBLightbyBattery.AutoSize = true;
|
||||
this.cBLightbyBattery.Location = new System.Drawing.Point(316, 17);
|
||||
this.cBLightbyBattery.Name = "cBLightbyBattery";
|
||||
this.cBLightbyBattery.Size = new System.Drawing.Size(111, 17);
|
||||
this.cBLightbyBattery.TabIndex = 162;
|
||||
this.cBLightbyBattery.Text = "Color by Battery %";
|
||||
this.cBLightbyBattery.UseVisualStyleBackColor = true;
|
||||
this.cBLightbyBattery.CheckedChanged += new System.EventHandler(this.ledAsBatteryIndicator_CheckedChanged);
|
||||
//
|
||||
// lBBlue
|
||||
//
|
||||
@ -1212,19 +1208,19 @@
|
||||
this.cBlowerRCOn.UseVisualStyleBackColor = true;
|
||||
this.cBlowerRCOn.CheckedChanged += new System.EventHandler(this.lowerRCOffCheckBox_CheckedChanged);
|
||||
//
|
||||
// touchpadJitterCompensation
|
||||
// cBTouchpadJitterCompensation
|
||||
//
|
||||
this.touchpadJitterCompensation.AutoSize = true;
|
||||
this.touchpadJitterCompensation.Checked = true;
|
||||
this.touchpadJitterCompensation.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.touchpadJitterCompensation.Location = new System.Drawing.Point(42, 17);
|
||||
this.touchpadJitterCompensation.Name = "touchpadJitterCompensation";
|
||||
this.touchpadJitterCompensation.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||
this.touchpadJitterCompensation.Size = new System.Drawing.Size(118, 17);
|
||||
this.touchpadJitterCompensation.TabIndex = 224;
|
||||
this.touchpadJitterCompensation.Text = "Jitter Compensation";
|
||||
this.touchpadJitterCompensation.UseVisualStyleBackColor = true;
|
||||
this.touchpadJitterCompensation.CheckedChanged += new System.EventHandler(this.touchpadJitterCompensation_CheckedChanged);
|
||||
this.cBTouchpadJitterCompensation.AutoSize = true;
|
||||
this.cBTouchpadJitterCompensation.Checked = true;
|
||||
this.cBTouchpadJitterCompensation.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cBTouchpadJitterCompensation.Location = new System.Drawing.Point(42, 17);
|
||||
this.cBTouchpadJitterCompensation.Name = "cBTouchpadJitterCompensation";
|
||||
this.cBTouchpadJitterCompensation.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||
this.cBTouchpadJitterCompensation.Size = new System.Drawing.Size(118, 17);
|
||||
this.cBTouchpadJitterCompensation.TabIndex = 224;
|
||||
this.cBTouchpadJitterCompensation.Text = "Jitter Compensation";
|
||||
this.cBTouchpadJitterCompensation.UseVisualStyleBackColor = true;
|
||||
this.cBTouchpadJitterCompensation.CheckedChanged += new System.EventHandler(this.touchpadJitterCompensation_CheckedChanged);
|
||||
//
|
||||
// lBL2
|
||||
//
|
||||
@ -1299,18 +1295,18 @@
|
||||
this.tBsixaxisAccelZ.TabIndex = 217;
|
||||
this.tBsixaxisAccelZ.TickFrequency = 16384;
|
||||
//
|
||||
// flushHIDQueue
|
||||
// cBFlushHIDQueue
|
||||
//
|
||||
this.flushHIDQueue.AccessibleName = "flushHIDQueue";
|
||||
this.flushHIDQueue.AutoSize = true;
|
||||
this.flushHIDQueue.Location = new System.Drawing.Point(306, 45);
|
||||
this.flushHIDQueue.Name = "flushHIDQueue";
|
||||
this.flushHIDQueue.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.flushHIDQueue.Size = new System.Drawing.Size(73, 17);
|
||||
this.flushHIDQueue.TabIndex = 198;
|
||||
this.flushHIDQueue.Text = "Flush HID\r\n";
|
||||
this.flushHIDQueue.UseVisualStyleBackColor = true;
|
||||
this.flushHIDQueue.CheckedChanged += new System.EventHandler(this.flushHIDQueue_CheckedChanged);
|
||||
this.cBFlushHIDQueue.AccessibleName = "flushHIDQueue";
|
||||
this.cBFlushHIDQueue.AutoSize = true;
|
||||
this.cBFlushHIDQueue.Location = new System.Drawing.Point(306, 48);
|
||||
this.cBFlushHIDQueue.Name = "cBFlushHIDQueue";
|
||||
this.cBFlushHIDQueue.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.cBFlushHIDQueue.Size = new System.Drawing.Size(73, 17);
|
||||
this.cBFlushHIDQueue.TabIndex = 198;
|
||||
this.cBFlushHIDQueue.Text = "Flush HID\r\n";
|
||||
this.cBFlushHIDQueue.UseVisualStyleBackColor = true;
|
||||
this.cBFlushHIDQueue.CheckedChanged += new System.EventHandler(this.flushHIDQueue_CheckedChanged);
|
||||
//
|
||||
// tBsixaxisAccelY
|
||||
//
|
||||
@ -1745,7 +1741,7 @@
|
||||
//
|
||||
// gBTouchpad
|
||||
//
|
||||
this.gBTouchpad.Controls.Add(this.touchpadJitterCompensation);
|
||||
this.gBTouchpad.Controls.Add(this.cBTouchpadJitterCompensation);
|
||||
this.gBTouchpad.Controls.Add(this.cBDoubleTap);
|
||||
this.gBTouchpad.Controls.Add(this.cBlowerRCOn);
|
||||
this.gBTouchpad.Controls.Add(this.cBSlide);
|
||||
@ -1765,14 +1761,11 @@
|
||||
//
|
||||
this.gBOther.Controls.Add(this.nUDSixaxis);
|
||||
this.gBOther.Controls.Add(this.cBControllerInput);
|
||||
this.gBOther.Controls.Add(this.nUDHideMouse);
|
||||
this.gBOther.Controls.Add(this.nUDIdleDisconnect);
|
||||
this.gBOther.Controls.Add(this.cBHideCursor);
|
||||
this.gBOther.Controls.Add(this.cBIdleDisconnect);
|
||||
this.gBOther.Controls.Add(this.lBButtonMouseSens);
|
||||
this.gBOther.Controls.Add(this.numUDMouseSens);
|
||||
this.gBOther.Controls.Add(this.lBMouseMins);
|
||||
this.gBOther.Controls.Add(this.flushHIDQueue);
|
||||
this.gBOther.Controls.Add(this.cBFlushHIDQueue);
|
||||
this.gBOther.Controls.Add(this.lBIdleMinutes);
|
||||
this.gBOther.Location = new System.Drawing.Point(7, 220);
|
||||
this.gBOther.Name = "gBOther";
|
||||
@ -1816,34 +1809,6 @@
|
||||
this.cBControllerInput.Text = "Use a DS4 to map";
|
||||
this.cBControllerInput.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// nUDHideMouse
|
||||
//
|
||||
this.nUDHideMouse.DecimalPlaces = 1;
|
||||
this.nUDHideMouse.Location = new System.Drawing.Point(182, 14);
|
||||
this.nUDHideMouse.Maximum = new decimal(new int[] {
|
||||
60,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nUDHideMouse.Name = "nUDHideMouse";
|
||||
this.nUDHideMouse.Size = new System.Drawing.Size(50, 20);
|
||||
this.nUDHideMouse.TabIndex = 201;
|
||||
this.nUDHideMouse.Visible = false;
|
||||
//
|
||||
// cBHideCursor
|
||||
//
|
||||
this.cBHideCursor.AutoSize = true;
|
||||
this.cBHideCursor.Checked = true;
|
||||
this.cBHideCursor.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cBHideCursor.Location = new System.Drawing.Point(167, 14);
|
||||
this.cBHideCursor.Name = "cBHideCursor";
|
||||
this.cBHideCursor.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
|
||||
this.cBHideCursor.Size = new System.Drawing.Size(105, 17);
|
||||
this.cBHideCursor.TabIndex = 232;
|
||||
this.cBHideCursor.Text = "Hide Cursor after";
|
||||
this.cBHideCursor.UseVisualStyleBackColor = true;
|
||||
this.cBHideCursor.Visible = false;
|
||||
//
|
||||
// cBIdleDisconnect
|
||||
//
|
||||
this.cBIdleDisconnect.AutoSize = true;
|
||||
@ -1858,16 +1823,6 @@
|
||||
this.cBIdleDisconnect.UseVisualStyleBackColor = true;
|
||||
this.cBIdleDisconnect.CheckedChanged += new System.EventHandler(this.cBIdleDisconnect_CheckedChanged);
|
||||
//
|
||||
// lBMouseMins
|
||||
//
|
||||
this.lBMouseMins.AutoSize = true;
|
||||
this.lBMouseMins.Location = new System.Drawing.Point(205, 21);
|
||||
this.lBMouseMins.Name = "lBMouseMins";
|
||||
this.lBMouseMins.Size = new System.Drawing.Size(28, 13);
|
||||
this.lBMouseMins.TabIndex = 200;
|
||||
this.lBMouseMins.Text = "mins";
|
||||
this.lBMouseMins.Visible = false;
|
||||
//
|
||||
// gBLightbar
|
||||
//
|
||||
this.gBLightbar.Controls.Add(this.btnChargingColor);
|
||||
@ -1875,7 +1830,7 @@
|
||||
this.gBLightbar.Controls.Add(this.rBFade);
|
||||
this.gBLightbar.Controls.Add(this.rBNormal);
|
||||
this.gBLightbar.Controls.Add(this.rBRainbow);
|
||||
this.gBLightbar.Controls.Add(this.label2);
|
||||
this.gBLightbar.Controls.Add(this.lbWhileCharging);
|
||||
this.gBLightbar.Controls.Add(this.label1);
|
||||
this.gBLightbar.Controls.Add(this.lBFlashAt);
|
||||
this.gBLightbar.Controls.Add(this.pBRainbow);
|
||||
@ -1884,7 +1839,7 @@
|
||||
this.gBLightbar.Controls.Add(this.nUDRainbow);
|
||||
this.gBLightbar.Controls.Add(this.FullPanel);
|
||||
this.gBLightbar.Controls.Add(this.lBspc);
|
||||
this.gBLightbar.Controls.Add(this.batteryLed);
|
||||
this.gBLightbar.Controls.Add(this.cBLightbyBattery);
|
||||
this.gBLightbar.Location = new System.Drawing.Point(440, 76);
|
||||
this.gBLightbar.Name = "gBLightbar";
|
||||
this.gBLightbar.Size = new System.Drawing.Size(438, 129);
|
||||
@ -1951,14 +1906,14 @@
|
||||
this.rBRainbow.UseVisualStyleBackColor = true;
|
||||
this.rBRainbow.CheckedChanged += new System.EventHandler(this.rBRainbow_CheckedChanged);
|
||||
//
|
||||
// label2
|
||||
// lbWhileCharging
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(9, 108);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(82, 13);
|
||||
this.label2.TabIndex = 236;
|
||||
this.label2.Text = "While Charging:";
|
||||
this.lbWhileCharging.AutoSize = true;
|
||||
this.lbWhileCharging.Location = new System.Drawing.Point(9, 108);
|
||||
this.lbWhileCharging.Name = "lbWhileCharging";
|
||||
this.lbWhileCharging.Size = new System.Drawing.Size(82, 13);
|
||||
this.lbWhileCharging.TabIndex = 236;
|
||||
this.lbWhileCharging.Text = "While Charging:";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@ -2112,7 +2067,6 @@
|
||||
this.gBOther.ResumeLayout(false);
|
||||
this.gBOther.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDSixaxis)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDHideMouse)).EndInit();
|
||||
this.gBLightbar.ResumeLayout(false);
|
||||
this.gBLightbar.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nUDflashLED)).EndInit();
|
||||
@ -2174,7 +2128,7 @@
|
||||
private System.Windows.Forms.TrackBar blueBar;
|
||||
private System.Windows.Forms.TrackBar greenBar;
|
||||
private System.Windows.Forms.TrackBar redBar;
|
||||
private System.Windows.Forms.CheckBox batteryLed;
|
||||
private System.Windows.Forms.CheckBox cBLightbyBattery;
|
||||
private System.Windows.Forms.Label lBBlue;
|
||||
private System.Windows.Forms.Label lBGreen;
|
||||
private System.Windows.Forms.Label lBspc;
|
||||
@ -2188,14 +2142,14 @@
|
||||
private System.Windows.Forms.NumericUpDown nUDTouch;
|
||||
private System.Windows.Forms.Label lBButtonMouseSens;
|
||||
private System.Windows.Forms.CheckBox cBlowerRCOn;
|
||||
private System.Windows.Forms.CheckBox touchpadJitterCompensation;
|
||||
private System.Windows.Forms.CheckBox cBTouchpadJitterCompensation;
|
||||
private System.Windows.Forms.Label lBL2;
|
||||
private System.Windows.Forms.Label lBR2;
|
||||
private System.Windows.Forms.Label lBIdleMinutes;
|
||||
private System.Windows.Forms.NumericUpDown nUDIdleDisconnect;
|
||||
private System.Windows.Forms.NumericUpDown nUDR2;
|
||||
private System.Windows.Forms.TrackBar tBsixaxisAccelZ;
|
||||
private System.Windows.Forms.CheckBox flushHIDQueue;
|
||||
private System.Windows.Forms.CheckBox cBFlushHIDQueue;
|
||||
private System.Windows.Forms.TrackBar tBsixaxisAccelY;
|
||||
private System.Windows.Forms.Label leftMotorLabel;
|
||||
private System.Windows.Forms.TrackBar tBsixaxisAccelX;
|
||||
@ -2245,13 +2199,10 @@
|
||||
private System.Windows.Forms.RadioButton rBFade;
|
||||
private System.Windows.Forms.RadioButton rBNormal;
|
||||
private System.Windows.Forms.RadioButton rBRainbow;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label lbWhileCharging;
|
||||
private System.Windows.Forms.Button btnChargingColor;
|
||||
private System.Windows.Forms.RadioButton rBColor;
|
||||
private System.Windows.Forms.CheckBox cBIdleDisconnect;
|
||||
private System.Windows.Forms.NumericUpDown nUDHideMouse;
|
||||
private System.Windows.Forms.CheckBox cBHideCursor;
|
||||
private System.Windows.Forms.Label lBMouseMins;
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ namespace ScpServer
|
||||
public int device;
|
||||
public string filename;
|
||||
Byte[] oldLedColor, oldLowLedColor, oldChargingColor;
|
||||
Timer inputtimer = new Timer(), sixaxisTimer = new Timer();
|
||||
public Timer inputtimer = new Timer(), sixaxisTimer = new Timer();
|
||||
public List<Button> buttons = new List<Button>();
|
||||
private Button lastSelected;
|
||||
private int alphacolor;
|
||||
@ -45,11 +45,11 @@ namespace ScpServer
|
||||
greenBar.Value = color.green;
|
||||
blueBar.Value = color.blue;
|
||||
|
||||
batteryLed.Checked = Global.getLedAsBatteryIndicator(device);
|
||||
cBLightbyBattery.Checked = Global.getLedAsBatteryIndicator(device);
|
||||
nUDflashLED.Value = Global.getFlashAt(device);
|
||||
lowBatteryPanel.Visible = batteryLed.Checked;
|
||||
lbFull.Text = (batteryLed.Checked ? "Full:" : "Color:");
|
||||
FullPanel.Location = (batteryLed.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
|
||||
lowBatteryPanel.Visible = cBLightbyBattery.Checked;
|
||||
lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "Color:");
|
||||
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;
|
||||
@ -68,9 +68,9 @@ namespace ScpServer
|
||||
cBDoubleTap.Checked = Global.getDoubleTap(device);
|
||||
nUDL2.Value = (decimal)Global.getLeftTriggerMiddle(device)/255;
|
||||
nUDR2.Value = (decimal)Global.getRightTriggerMiddle(device)/255;
|
||||
touchpadJitterCompensation.Checked = Global.getTouchpadJitterCompensation(device);
|
||||
cBTouchpadJitterCompensation.Checked = Global.getTouchpadJitterCompensation(device);
|
||||
cBlowerRCOn.Checked = Global.getLowerRCOn(device);
|
||||
flushHIDQueue.Checked = Global.getFlushHIDQueue(device);
|
||||
cBFlushHIDQueue.Checked = Global.getFlushHIDQueue(device);
|
||||
nUDIdleDisconnect.Value = Math.Round((decimal)(Global.getIdleDisconnectTimeout(device) / 60d), 1);
|
||||
cBIdleDisconnect.Checked = Global.getIdleDisconnectTimeout(device) > 0;
|
||||
numUDMouseSens.Value = Global.getButtonMouseSensitivity(device);
|
||||
@ -129,9 +129,10 @@ namespace ScpServer
|
||||
tp.SetToolTip(cBlowerRCOn, "Best used with right side as a mouse function");
|
||||
tp.SetToolTip(cBDoubleTap, "Tap and hold to drag, slight delay with single taps");
|
||||
tp.SetToolTip(lBControlTip, "You can also use your controller to change controls");
|
||||
tp.SetToolTip(touchpadJitterCompensation, "Use Sixaxis to help calulate touchpad movement");
|
||||
tp.SetToolTip(cBTouchpadJitterCompensation, "Use Sixaxis to help calculate touchpad movement");
|
||||
tp.SetToolTip(pBRainbow, "Always on Rainbow Mode");
|
||||
tp.SetToolTip(flushHIDQueue, "Flush HID Queue after each reading");
|
||||
tp.SetToolTip(cBFlushHIDQueue, "Flush HID Queue after each reading");
|
||||
tp.SetToolTip(cBLightbyBattery, "Also dim light by idle timeout if on");
|
||||
advColorDialog.OnUpdateColor += advColorDialog_OnUpdateColor;
|
||||
btnLeftStick.Enter += btnSticks_Enter;
|
||||
btnRightStick.Enter += btnSticks_Enter;
|
||||
@ -239,16 +240,16 @@ namespace ScpServer
|
||||
|
||||
public void Set()
|
||||
{
|
||||
lowBatteryPanel.Visible = batteryLed.Checked;
|
||||
lbFull.Text = (batteryLed.Checked ? "Full:" : "Color:");
|
||||
FullPanel.Location = (batteryLed.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
|
||||
lowBatteryPanel.Visible = cBLightbyBattery.Checked;
|
||||
lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "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.setLeftTriggerMiddle(device, (byte)Math.Round((nUDL2.Value * 255), 0));
|
||||
Global.setRightTriggerMiddle(device, (byte)Math.Round((nUDR2.Value * 255), 0));
|
||||
Global.saveRumbleBoost(device, (byte)nUDRumbleBoost.Value);
|
||||
Global.setTouchSensitivity(device, (byte)nUDTouch.Value);
|
||||
Global.setTouchpadJitterCompensation(device, touchpadJitterCompensation.Checked);
|
||||
Global.setTouchpadJitterCompensation(device, cBTouchpadJitterCompensation.Checked);
|
||||
Global.setLowerRCOn(device, cBlowerRCOn.Checked);
|
||||
Global.setScrollSensitivity(device, (byte)nUDScroll.Value);
|
||||
Global.setDoubleTap(device, cBDoubleTap.Checked);
|
||||
@ -566,10 +567,10 @@ namespace ScpServer
|
||||
}
|
||||
private void ledAsBatteryIndicator_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.setLedAsBatteryIndicator(device, batteryLed.Checked);
|
||||
lowBatteryPanel.Visible = batteryLed.Checked;
|
||||
FullPanel.Location = (batteryLed.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
|
||||
lbFull.Text = (batteryLed.Checked ? "Full:" : "Color:");
|
||||
Global.setLedAsBatteryIndicator(device, cBLightbyBattery.Checked);
|
||||
lowBatteryPanel.Visible = cBLightbyBattery.Checked;
|
||||
FullPanel.Location = (cBLightbyBattery.Checked ? new Point(FullPanel.Location.X, 42) : new Point(FullPanel.Location.X, 48));
|
||||
lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "Color:");
|
||||
}
|
||||
|
||||
private void lowerRCOffCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||
@ -579,12 +580,12 @@ namespace ScpServer
|
||||
|
||||
private void touchpadJitterCompensation_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.setTouchpadJitterCompensation(device, touchpadJitterCompensation.Checked);
|
||||
Global.setTouchpadJitterCompensation(device, cBTouchpadJitterCompensation.Checked);
|
||||
}
|
||||
|
||||
private void flushHIDQueue_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.setFlushHIDQueue(device, flushHIDQueue.Checked);
|
||||
Global.setFlushHIDQueue(device, cBFlushHIDQueue.Checked);
|
||||
}
|
||||
|
||||
private void nUDIdleDisconnect_ValueChanged(object sender, EventArgs e)
|
||||
@ -785,14 +786,14 @@ namespace ScpServer
|
||||
{
|
||||
//pBRainbow.Location = new Point(216 - 78, pBRainbow.Location.Y);
|
||||
pBController.BackgroundImage = Properties.Resources.rainbowC;
|
||||
batteryLed.Text = "Dim by Battery %";
|
||||
cBLightbyBattery.Text = "Dim by Battery %";
|
||||
}
|
||||
else
|
||||
{
|
||||
lowBatteryPanel.Enabled = batteryLed.Checked;
|
||||
lowBatteryPanel.Enabled = cBLightbyBattery.Checked;
|
||||
//pBRainbow.Location = new Point(216, pBRainbow.Location.Y);
|
||||
pBController.BackgroundImage = null;
|
||||
batteryLed.Text = "Color by Battery %";
|
||||
cBLightbyBattery.Text = "Color by Battery %";
|
||||
}
|
||||
lBspc.Enabled = on;
|
||||
lowBatteryPanel.Enabled = !on;
|
||||
|
@ -120,4 +120,10 @@
|
||||
<data name="Disconnected" xml:space="preserve">
|
||||
<value>Desconectado</value>
|
||||
</data>
|
||||
<data name="StartText" xml:space="preserve">
|
||||
<value>Empiezo</value>
|
||||
</data>
|
||||
<data name="StopText" xml:space="preserve">
|
||||
<value>Deténgase</value>
|
||||
</data>
|
||||
</root>
|
@ -256,4 +256,13 @@
|
||||
<data name="_360_fades" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\360 fades.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Disconnected" xml:space="preserve">
|
||||
<value>Disconnected</value>
|
||||
</data>
|
||||
<data name="StartText" xml:space="preserve">
|
||||
<value>Start</value>
|
||||
</data>
|
||||
<data name="StopText" xml:space="preserve">
|
||||
<value>Stop</value>
|
||||
</data>
|
||||
</root>
|
125
DS4Tool/Properties/Resources1.Designer.cs
generated
125
DS4Tool/Properties/Resources1.Designer.cs
generated
@ -22,7 +22,7 @@ namespace ScpServer.Properties {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Resources {
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
@ -36,7 +36,7 @@ namespace ScpServer.Properties {
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Resources.ResourceManager ResourceManager {
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ScpServer.Properties.Resources", typeof(Resources).Assembly);
|
||||
@ -51,7 +51,7 @@ namespace ScpServer.Properties {
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
@ -63,7 +63,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap _360_fades {
|
||||
internal static System.Drawing.Bitmap _360_fades {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("_360_fades", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -73,7 +73,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap A {
|
||||
internal static System.Drawing.Bitmap A {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("A", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -83,7 +83,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap B {
|
||||
internal static System.Drawing.Bitmap B {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("B", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -93,7 +93,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap BACK {
|
||||
internal static System.Drawing.Bitmap BACK {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("BACK", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -103,7 +103,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap BT {
|
||||
internal static System.Drawing.Bitmap BT {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("BT", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -113,7 +113,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap copy {
|
||||
internal static System.Drawing.Bitmap copy {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("copy", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -123,17 +123,26 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap delete {
|
||||
internal static System.Drawing.Bitmap delete {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("delete", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Disconnected.
|
||||
/// </summary>
|
||||
internal static string Disconnected {
|
||||
get {
|
||||
return ResourceManager.GetString("Disconnected", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap DOWN {
|
||||
internal static System.Drawing.Bitmap DOWN {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("DOWN", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -143,7 +152,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||
/// </summary>
|
||||
public static System.Drawing.Icon DS4 {
|
||||
internal static System.Drawing.Icon DS4 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("DS4", resourceCulture);
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
@ -153,7 +162,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap DS4_Controller {
|
||||
internal static System.Drawing.Bitmap DS4_Controller {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("DS4_Controller", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -163,7 +172,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap edit {
|
||||
internal static System.Drawing.Bitmap edit {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("edit", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -173,7 +182,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap export {
|
||||
internal static System.Drawing.Bitmap export {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("export", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -183,7 +192,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap import {
|
||||
internal static System.Drawing.Bitmap import {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("import", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -193,7 +202,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LB {
|
||||
internal static System.Drawing.Bitmap LB {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LB", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -203,7 +212,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LEFT {
|
||||
internal static System.Drawing.Bitmap LEFT {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LEFT", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -213,7 +222,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LeftTouch {
|
||||
internal static System.Drawing.Bitmap LeftTouch {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LeftTouch", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -223,7 +232,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LS {
|
||||
internal static System.Drawing.Bitmap LS {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LS", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -233,7 +242,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LSD {
|
||||
internal static System.Drawing.Bitmap LSD {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LSD", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -243,7 +252,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LSL {
|
||||
internal static System.Drawing.Bitmap LSL {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LSL", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -253,7 +262,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LSR {
|
||||
internal static System.Drawing.Bitmap LSR {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LSR", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -263,7 +272,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LSU {
|
||||
internal static System.Drawing.Bitmap LSU {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LSU", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -273,7 +282,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap LT {
|
||||
internal static System.Drawing.Bitmap LT {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("LT", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -283,7 +292,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap mouse {
|
||||
internal static System.Drawing.Bitmap mouse {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("mouse", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -293,7 +302,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap MultiTouch {
|
||||
internal static System.Drawing.Bitmap MultiTouch {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("MultiTouch", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -303,7 +312,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap newprofile {
|
||||
internal static System.Drawing.Bitmap newprofile {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("newprofile", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -313,7 +322,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap none {
|
||||
internal static System.Drawing.Bitmap none {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("none", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -323,7 +332,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap Pairmode {
|
||||
internal static System.Drawing.Bitmap Pairmode {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Pairmode", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -333,7 +342,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap rainbow {
|
||||
internal static System.Drawing.Bitmap rainbow {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("rainbow", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -343,7 +352,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap rainbowC {
|
||||
internal static System.Drawing.Bitmap rainbowC {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("rainbowC", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -353,7 +362,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RB {
|
||||
internal static System.Drawing.Bitmap RB {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RB", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -363,7 +372,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RIGHT {
|
||||
internal static System.Drawing.Bitmap RIGHT {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RIGHT", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -373,7 +382,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RightTouch {
|
||||
internal static System.Drawing.Bitmap RightTouch {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RightTouch", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -383,7 +392,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RS {
|
||||
internal static System.Drawing.Bitmap RS {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RS", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -393,7 +402,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RSD {
|
||||
internal static System.Drawing.Bitmap RSD {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RSD", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -403,7 +412,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RSL {
|
||||
internal static System.Drawing.Bitmap RSL {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RSL", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -413,7 +422,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RSR {
|
||||
internal static System.Drawing.Bitmap RSR {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RSR", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -423,7 +432,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RSU {
|
||||
internal static System.Drawing.Bitmap RSU {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RSU", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -433,7 +442,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap RT {
|
||||
internal static System.Drawing.Bitmap RT {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("RT", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -443,7 +452,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap saveprofile {
|
||||
internal static System.Drawing.Bitmap saveprofile {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("saveprofile", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -453,27 +462,45 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap START {
|
||||
internal static System.Drawing.Bitmap START {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("START", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Start.
|
||||
/// </summary>
|
||||
internal static string StartText {
|
||||
get {
|
||||
return ResourceManager.GetString("StartText", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap sticks {
|
||||
internal static System.Drawing.Bitmap sticks {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("sticks", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Stop.
|
||||
/// </summary>
|
||||
internal static string StopText {
|
||||
get {
|
||||
return ResourceManager.GetString("StopText", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap UP {
|
||||
internal static System.Drawing.Bitmap UP {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("UP", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -483,7 +510,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap UpperTouch {
|
||||
internal static System.Drawing.Bitmap UpperTouch {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("UpperTouch", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -493,7 +520,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap USB {
|
||||
internal static System.Drawing.Bitmap USB {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("USB", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -503,7 +530,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap X {
|
||||
internal static System.Drawing.Bitmap X {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("X", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
@ -513,7 +540,7 @@ namespace ScpServer.Properties {
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap Y {
|
||||
internal static System.Drawing.Bitmap Y {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Y", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
|
@ -5,6 +5,7 @@ using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
@ -21,6 +22,7 @@ namespace ScpServer
|
||||
{
|
||||
kbm = op;
|
||||
InitializeComponent();
|
||||
if (op != null)
|
||||
if (kbm.macrorepeat)
|
||||
cBStyle.SelectedIndex = 1;
|
||||
else
|
||||
@ -61,20 +63,24 @@ namespace ScpServer
|
||||
pnlMouseButtons.Visible = !on;
|
||||
}
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern short GetAsyncKeyState(Keys key);
|
||||
|
||||
private void anyKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (btnRecord.Text == "Stop")
|
||||
{
|
||||
int value = WhichKey(e, 0);
|
||||
int count = 0;
|
||||
foreach (int i in macros)
|
||||
{
|
||||
if (i == e.KeyValue)
|
||||
if (i == value)
|
||||
count++;
|
||||
}
|
||||
if (macros.Count == 0)
|
||||
{
|
||||
macros.Add(e.KeyValue);
|
||||
lVMacros.Items.Add(e.KeyCode.ToString(), 0);
|
||||
macros.Add(value);
|
||||
lVMacros.Items.Add(((Keys)value).ToString(), 0);
|
||||
if (cBRecordDelays.Checked)
|
||||
{
|
||||
sw.Reset();
|
||||
@ -90,35 +96,86 @@ namespace ScpServer
|
||||
sw.Reset();
|
||||
sw.Start();
|
||||
}
|
||||
macros.Add(e.KeyValue);
|
||||
lVMacros.Items.Add(e.KeyCode.ToString(), 0);
|
||||
macros.Add(value);
|
||||
lVMacros.Items.Add(((Keys)value).ToString(), 0);
|
||||
}
|
||||
lVMacros.Items[lVMacros.Items.Count - 1].EnsureVisible();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (e.KeyValue == 27)
|
||||
else if (e.KeyValue == 27)
|
||||
Close();
|
||||
}
|
||||
|
||||
private int WhichKey(KeyEventArgs e, int keystate)
|
||||
{
|
||||
if (keystate == 1)
|
||||
{
|
||||
if (e.KeyCode == Keys.ShiftKey)
|
||||
{
|
||||
for (int i = macros.Count - 1; i >= 0; i--)
|
||||
if (macros[i] == 160)
|
||||
return 160;
|
||||
else if (macros[i] == 161)
|
||||
return 161;
|
||||
}
|
||||
else if (e.KeyCode == Keys.ControlKey)
|
||||
{
|
||||
for (int i = macros.Count - 1; i >= 0; i--)
|
||||
if (macros[i] == 162)
|
||||
return 162;
|
||||
else if (macros[i] == 163)
|
||||
return 163;
|
||||
}
|
||||
else if (e.KeyCode == Keys.Menu)
|
||||
{
|
||||
for (int i = macros.Count - 1; i >= 0; i--)
|
||||
if (macros[i] == 164)
|
||||
return 164;
|
||||
else if (macros[i] == 165)
|
||||
return 165;
|
||||
}
|
||||
return e.KeyValue;
|
||||
}
|
||||
else
|
||||
if (e.KeyCode == Keys.ShiftKey)
|
||||
{
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.LShiftKey)))
|
||||
return 160;
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.RShiftKey)))
|
||||
return 161;
|
||||
}
|
||||
else if (e.KeyCode == Keys.ControlKey)
|
||||
{
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.LControlKey)))
|
||||
return 162;
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.RControlKey)))
|
||||
return 163;
|
||||
}
|
||||
else if (e.KeyCode == Keys.Menu)
|
||||
{
|
||||
e.Handled = true;
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.LMenu)))
|
||||
return 164;
|
||||
if (Convert.ToBoolean(GetAsyncKeyState(Keys.RMenu)))
|
||||
return 165;
|
||||
|
||||
}
|
||||
return e.KeyValue;
|
||||
}
|
||||
|
||||
private void anyKeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (btnRecord.Text == "Stop" && macros.Count != 0 && !e.KeyCode.ToString().Contains("Media"))
|
||||
if (btnRecord.Text == "Stop" && macros.Count != 0)
|
||||
{
|
||||
int value = WhichKey(e, 1);
|
||||
if (cBRecordDelays.Checked)
|
||||
{
|
||||
macros.Add((int)sw.ElapsedMilliseconds + 300);
|
||||
lVMacros.Items.Add("Wait " + sw.ElapsedMilliseconds + "ms", 2);
|
||||
macros.Add(e.KeyValue);
|
||||
sw.Reset();
|
||||
sw.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
macros.Add(e.KeyValue);
|
||||
}
|
||||
lVMacros.Items.Add(e.KeyCode.ToString(), 1);
|
||||
macros.Add(value);
|
||||
lVMacros.Items.Add(((Keys)value).ToString(), 1);
|
||||
lVMacros.Items[lVMacros.Items.Count - 1].EnsureVisible();
|
||||
}
|
||||
}
|
||||
@ -248,11 +305,19 @@ namespace ScpServer
|
||||
case Keys.Left:
|
||||
case Keys.Up:
|
||||
case Keys.Down:
|
||||
case Keys.Tab:
|
||||
case Keys.MediaPlayPause:
|
||||
case Keys.MediaPreviousTrack:
|
||||
case Keys.MediaNextTrack:
|
||||
return true;
|
||||
case Keys.Shift | Keys.Right:
|
||||
case Keys.Shift | Keys.Left:
|
||||
case Keys.Shift | Keys.Up:
|
||||
case Keys.Shift | Keys.Down:
|
||||
case Keys.Shift | Keys.Tab:
|
||||
case Keys.Shift | Keys.MediaPlayPause:
|
||||
case Keys.Shift | Keys.MediaPreviousTrack:
|
||||
case Keys.Shift | Keys.MediaNextTrack:
|
||||
return true;
|
||||
}
|
||||
return base.IsInputKey(keyData);
|
||||
@ -266,6 +331,10 @@ namespace ScpServer
|
||||
case Keys.Right:
|
||||
case Keys.Up:
|
||||
case Keys.Down:
|
||||
case Keys.Tab:
|
||||
case Keys.MediaPlayPause:
|
||||
case Keys.MediaPreviousTrack:
|
||||
case Keys.MediaNextTrack:
|
||||
if (e.Shift)
|
||||
{
|
||||
|
||||
|
0
DS4Tool/Resource.es.Designer.cs
generated
0
DS4Tool/Resource.es.Designer.cs
generated
4
DS4Tool/SaveWhere.Designer.cs
generated
4
DS4Tool/SaveWhere.Designer.cs
generated
@ -56,8 +56,8 @@
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(195, 39);
|
||||
this.label3.TabIndex = 10;
|
||||
this.label3.Text = "For those who prefer a portable program\r\nNote: this option does not\r\n work if in " +
|
||||
"an admin folder w/o UAC";
|
||||
this.label3.Text = "For those who prefer a portable program\r\nNote: this option does not\r\nwork if in a" +
|
||||
"n admin folder w/o UAC";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// bnAppdataFolder
|
||||
|
725
DS4Tool/ScpForm.Designer.cs
generated
725
DS4Tool/ScpForm.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,7 @@ namespace ScpServer
|
||||
{
|
||||
public partial class ScpForm : Form
|
||||
{
|
||||
double version = 10.45;
|
||||
double version = 10.55;
|
||||
private DS4Control.Control rootHub;
|
||||
delegate void LogDebugDelegate(DateTime Time, String Data);
|
||||
|
||||
@ -88,6 +88,7 @@ namespace ScpServer
|
||||
ToolTip tt = new ToolTip();
|
||||
if (File.Exists(appdatapath + "\\Profiles.xml"))
|
||||
tt.SetToolTip(linkUninstall, "If removing DS4Windows, You can delete the settings following the profile folder link");
|
||||
tt.SetToolTip(cBSwipeProfiles, "2 finger swipe touchpad left or right to change profiles");
|
||||
}
|
||||
|
||||
public static string GetTopWindowName()
|
||||
@ -216,6 +217,7 @@ namespace ScpServer
|
||||
if (btnStartStop.Enabled)
|
||||
btnStartStop_Clicked();
|
||||
cBNotifications.Checked = Global.getNotifications();
|
||||
cBSwipeProfiles.Checked = Global.getSwipeProfiles();
|
||||
int checkwhen = Global.getCheckWhen();
|
||||
cBUpdate.Checked = checkwhen > 0;
|
||||
if (checkwhen > 23)
|
||||
@ -256,10 +258,10 @@ namespace ScpServer
|
||||
{
|
||||
lBTest.Visible = true;
|
||||
lBTest.Text = Mapping.getByteMapping(DS4Controls.R1, rootHub.getDS4State(0)).ToString() + " " + rootHub.getDS4StateMapped(0).R2.ToString();
|
||||
//lBTest.Text = rootHub.getDS4StateMapped(0).L2.ToString();
|
||||
}
|
||||
void Hotkeys(object sender, EventArgs e)
|
||||
{
|
||||
if (Global.getSwipeProfiles())
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
string slide = rootHub.TouchpadSlide(i);
|
||||
@ -582,18 +584,18 @@ namespace ScpServer
|
||||
}
|
||||
protected void btnStartStop_Clicked()
|
||||
{
|
||||
if (btnStartStop.Text == "Start")
|
||||
if (btnStartStop.Text == Properties.Resources.StartText)
|
||||
{
|
||||
rootHub.Start();
|
||||
hotkeystimer.Start();
|
||||
btnStartStop.Text = "Stop";
|
||||
btnStartStop.Text = Properties.Resources.StopText;
|
||||
}
|
||||
|
||||
else if (btnStartStop.Text == "Stop")
|
||||
else if (btnStartStop.Text == Properties.Resources.StopText)
|
||||
{
|
||||
rootHub.Stop();
|
||||
hotkeystimer.Stop();
|
||||
btnStartStop.Text = "Start";
|
||||
btnStartStop.Text = Properties.Resources.StartText;
|
||||
}
|
||||
}
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
@ -658,7 +660,7 @@ namespace ScpServer
|
||||
}
|
||||
else
|
||||
{
|
||||
Pads[Index].Text = "Disconnected";
|
||||
Pads[Index].Text = Properties.Resources.Disconnected;
|
||||
Enable_Controls(Index, false);
|
||||
shortcuts[Index].Enabled = false;
|
||||
}
|
||||
@ -814,9 +816,9 @@ namespace ScpServer
|
||||
|
||||
private void ShowOptions(int devID, string profile)
|
||||
{
|
||||
if (opt == null)
|
||||
{
|
||||
this.Show();
|
||||
if (opt != null)
|
||||
opt.Close();
|
||||
Show();
|
||||
WindowState = FormWindowState.Normal;
|
||||
toolStrip1.Enabled = false;
|
||||
tSOptions.Visible = true;
|
||||
@ -865,7 +867,6 @@ namespace ScpServer
|
||||
}
|
||||
tabMain.SelectedIndex = 1;
|
||||
}
|
||||
}
|
||||
|
||||
private void editButtons_Click(object sender, EventArgs e)
|
||||
{
|
||||
@ -1031,6 +1032,11 @@ namespace ScpServer
|
||||
private void tabMain_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
lbLastMessage.Visible = tabMain.SelectedIndex != 2;
|
||||
if (opt != null)
|
||||
if (tabMain.SelectedIndex != 1)
|
||||
opt.inputtimer.Stop();
|
||||
else
|
||||
opt.inputtimer.Start();
|
||||
}
|
||||
|
||||
private void lBProfiles_MouseDown(object sender, MouseEventArgs e)
|
||||
@ -1202,6 +1208,11 @@ namespace ScpServer
|
||||
wct.DownloadFileCompleted += wct_DownloadFileCompleted;
|
||||
}
|
||||
|
||||
private void cBDisconnectBT_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.setDCBTatStop(cBDisconnectBT.Checked);
|
||||
}
|
||||
|
||||
void wct_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
|
||||
{
|
||||
Global.setLastChecked(DateTime.Now);
|
||||
@ -1301,6 +1312,11 @@ namespace ScpServer
|
||||
rootHub.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
private void cBSwipeProfiles_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.setSwipeProfiles(cBSwipeProfiles.Checked);
|
||||
}
|
||||
}
|
||||
|
||||
public class ThemeUtil
|
||||
|
6679
DS4Tool/ScpForm.es.resx
Normal file
6679
DS4Tool/ScpForm.es.resx
Normal file
File diff suppressed because it is too large
Load Diff
2404
DS4Tool/ScpForm.resx
2404
DS4Tool/ScpForm.resx
File diff suppressed because it is too large
Load Diff
6
DS4Tool/WelcomeDialog.Designer.cs
generated
6
DS4Tool/WelcomeDialog.Designer.cs
generated
@ -57,7 +57,7 @@
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(259, 23);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "Step 2: If on Windows 7 or below, Install 360 Drvier";
|
||||
this.button2.Text = "Step 2: If on Windows 7 or below, Install 360 Driver";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
@ -89,7 +89,7 @@
|
||||
this.labelUSB.Size = new System.Drawing.Size(313, 39);
|
||||
this.labelUSB.TabIndex = 3;
|
||||
this.labelUSB.Text = "Step 3: Connecting the DualShock 4 controller\r\nTo set up wired/usb:\r\nSimply plug " +
|
||||
"a mirco usb into your PC and DualShock 4";
|
||||
"a micro usb into your PC and DualShock 4";
|
||||
this.labelUSB.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// labelBluetooth2
|
||||
@ -99,7 +99,7 @@
|
||||
this.labelBluetooth2.Size = new System.Drawing.Size(312, 64);
|
||||
this.labelBluetooth2.TabIndex = 3;
|
||||
this.labelBluetooth2.Text = "Once flashing go to your Bluetooth Settings\r\nand Connect to \"Wireless Controller\"" +
|
||||
"\r\n\r\nAfter paired, you\'re ready. Have fun!";
|
||||
"\r\n\r\nOnce paired, you\'re ready. Have fun!";
|
||||
this.labelBluetooth2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
//
|
||||
// linkBluetoothSettings
|
||||
|
Loading…
Reference in New Issue
Block a user