mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Merge branch 'jay' of https://github.com/Ryochan7/DS4Windows into jay
This commit is contained in:
commit
4359bb082b
@ -177,7 +177,7 @@ namespace DS4Windows
|
||||
Monitor.Pulse(busThrLck);
|
||||
}
|
||||
|
||||
public void ChangeUDPStatus(bool state)
|
||||
public void ChangeUDPStatus(bool state, bool openPort=true)
|
||||
{
|
||||
if (state && _udpServer == null)
|
||||
{
|
||||
@ -185,6 +185,11 @@ namespace DS4Windows
|
||||
TestQueueBus(() =>
|
||||
{
|
||||
_udpServer = new UdpServer(GetPadDetailForIdx);
|
||||
if (openPort)
|
||||
{
|
||||
// Change thread affinity of object to have normal priority
|
||||
Task.Run(() =>
|
||||
{
|
||||
var UDP_SERVER_PORT = Global.getUDPServerPortNum();
|
||||
|
||||
try
|
||||
@ -199,6 +204,8 @@ namespace DS4Windows
|
||||
LogDebug(errMsg, true);
|
||||
AppLogger.LogToTray(errMsg, true, true);
|
||||
}
|
||||
}).Wait();
|
||||
}
|
||||
|
||||
udpChangeStatus = false;
|
||||
});
|
||||
@ -312,7 +319,7 @@ namespace DS4Windows
|
||||
|
||||
if (isUsingUDPServer() && _udpServer == null)
|
||||
{
|
||||
ChangeUDPStatus(true);
|
||||
ChangeUDPStatus(true, false);
|
||||
while (udpChangeStatus == true)
|
||||
{
|
||||
Thread.SpinWait(500);
|
||||
@ -426,6 +433,25 @@ namespace DS4Windows
|
||||
}
|
||||
|
||||
running = true;
|
||||
|
||||
if (_udpServer != null)
|
||||
{
|
||||
//var UDP_SERVER_PORT = 26760;
|
||||
var UDP_SERVER_PORT = Global.getUDPServerPortNum();
|
||||
|
||||
try
|
||||
{
|
||||
_udpServer.Start(UDP_SERVER_PORT);
|
||||
LogDebug("UDP server listening on port " + UDP_SERVER_PORT);
|
||||
}
|
||||
catch (System.Net.Sockets.SocketException ex)
|
||||
{
|
||||
var errMsg = String.Format("Couldn't start UDP server on port {0}, outside applications won't be able to access pad data ({1})", UDP_SERVER_PORT, ex.SocketErrorCode);
|
||||
|
||||
LogDebug(errMsg, true);
|
||||
AppLogger.LogToTray(errMsg, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -5,156 +5,137 @@ namespace DS4Windows
|
||||
{
|
||||
class InputMethods
|
||||
{
|
||||
private static INPUT[] sendInputs = new INPUT[2]; // will allow for keyboard + mouse/tablet input within one SendInput call, or two mouse events
|
||||
private static object lockob = new object();
|
||||
|
||||
public static void MoveCursorBy(int x, int y)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
if (x != 0 || y != 0)
|
||||
{
|
||||
sendInputs[0].Type = INPUT_MOUSE;
|
||||
sendInputs[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Mouse.Flags = MOUSEEVENTF_MOVE;
|
||||
sendInputs[0].Data.Mouse.MouseData = 0;
|
||||
sendInputs[0].Data.Mouse.Time = 0;
|
||||
sendInputs[0].Data.Mouse.X = x;
|
||||
sendInputs[0].Data.Mouse.Y = y;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
tempInput[0].Type = INPUT_MOUSE;
|
||||
tempInput[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Mouse.Flags = MOUSEEVENTF_MOVE;
|
||||
tempInput[0].Data.Mouse.MouseData = 0;
|
||||
tempInput[0].Data.Mouse.Time = 0;
|
||||
tempInput[0].Data.Mouse.X = x;
|
||||
tempInput[0].Data.Mouse.Y = y;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
}
|
||||
|
||||
public static void MouseWheel(int vertical, int horizontal)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
INPUT[] tempInput = new INPUT[2];
|
||||
uint inputs = 0;
|
||||
if (vertical != 0)
|
||||
{
|
||||
sendInputs[inputs].Type = INPUT_MOUSE;
|
||||
sendInputs[inputs].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[inputs].Data.Mouse.Flags = MOUSEEVENTF_WHEEL;
|
||||
sendInputs[inputs].Data.Mouse.MouseData = (uint)vertical;
|
||||
sendInputs[inputs].Data.Mouse.Time = 0;
|
||||
sendInputs[inputs].Data.Mouse.X = 0;
|
||||
sendInputs[inputs].Data.Mouse.Y = 0;
|
||||
tempInput[inputs].Type = INPUT_MOUSE;
|
||||
tempInput[inputs].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[inputs].Data.Mouse.Flags = MOUSEEVENTF_WHEEL;
|
||||
tempInput[inputs].Data.Mouse.MouseData = (uint)vertical;
|
||||
tempInput[inputs].Data.Mouse.Time = 0;
|
||||
tempInput[inputs].Data.Mouse.X = 0;
|
||||
tempInput[inputs].Data.Mouse.Y = 0;
|
||||
inputs++;
|
||||
}
|
||||
|
||||
if (horizontal != 0)
|
||||
{
|
||||
sendInputs[inputs].Type = INPUT_MOUSE;
|
||||
sendInputs[inputs].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[inputs].Data.Mouse.Flags = MOUSEEVENTF_HWHEEL;
|
||||
sendInputs[inputs].Data.Mouse.MouseData = (uint)horizontal;
|
||||
sendInputs[inputs].Data.Mouse.Time = 0;
|
||||
sendInputs[inputs].Data.Mouse.X = 0;
|
||||
sendInputs[inputs].Data.Mouse.Y = 0;
|
||||
tempInput[inputs].Type = INPUT_MOUSE;
|
||||
tempInput[inputs].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[inputs].Data.Mouse.Flags = MOUSEEVENTF_HWHEEL;
|
||||
tempInput[inputs].Data.Mouse.MouseData = (uint)horizontal;
|
||||
tempInput[inputs].Data.Mouse.Time = 0;
|
||||
tempInput[inputs].Data.Mouse.X = 0;
|
||||
tempInput[inputs].Data.Mouse.Y = 0;
|
||||
inputs++;
|
||||
}
|
||||
|
||||
SendInput(inputs, sendInputs, (int)inputs * Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
SendInput(inputs, tempInput, (int)inputs * Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void MouseEvent(uint mouseButton)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
sendInputs[0].Type = INPUT_MOUSE;
|
||||
sendInputs[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Mouse.Flags = mouseButton;
|
||||
sendInputs[0].Data.Mouse.MouseData = 0;
|
||||
sendInputs[0].Data.Mouse.Time = 0;
|
||||
sendInputs[0].Data.Mouse.X = 0;
|
||||
sendInputs[0].Data.Mouse.Y = 0;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
tempInput[0].Type = INPUT_MOUSE;
|
||||
tempInput[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Mouse.Flags = mouseButton;
|
||||
tempInput[0].Data.Mouse.MouseData = 0;
|
||||
tempInput[0].Data.Mouse.Time = 0;
|
||||
tempInput[0].Data.Mouse.X = 0;
|
||||
tempInput[0].Data.Mouse.Y = 0;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void MouseEvent(uint mouseButton, int type)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
sendInputs[0].Type = INPUT_MOUSE;
|
||||
sendInputs[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Mouse.Flags = mouseButton;
|
||||
sendInputs[0].Data.Mouse.MouseData = (uint)type;
|
||||
sendInputs[0].Data.Mouse.Time = 0;
|
||||
sendInputs[0].Data.Mouse.X = 0;
|
||||
sendInputs[0].Data.Mouse.Y = 0;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
tempInput[0].Type = INPUT_MOUSE;
|
||||
tempInput[0].Data.Mouse.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Mouse.Flags = mouseButton;
|
||||
tempInput[0].Data.Mouse.MouseData = (uint)type;
|
||||
tempInput[0].Data.Mouse.Time = 0;
|
||||
tempInput[0].Data.Mouse.X = 0;
|
||||
tempInput[0].Data.Mouse.Y = 0;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void performSCKeyPress(ushort key)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
sendInputs[0].Type = INPUT_KEYBOARD;
|
||||
sendInputs[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Keyboard.Flags = KEYEVENTF_SCANCODE;
|
||||
sendInputs[0].Data.Keyboard.Scan = MapVirtualKey(key, MAPVK_VK_TO_VSC);
|
||||
sendInputs[0].Data.Keyboard.Time = 0;
|
||||
sendInputs[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
tempInput[0].Type = INPUT_KEYBOARD;
|
||||
tempInput[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Keyboard.Flags = KEYEVENTF_SCANCODE;
|
||||
tempInput[0].Data.Keyboard.Scan = MapVirtualKey(key, MAPVK_VK_TO_VSC);
|
||||
tempInput[0].Data.Keyboard.Time = 0;
|
||||
tempInput[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void performKeyPress(ushort key)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
ushort scancode = scancodeFromVK(key);
|
||||
bool extended = (scancode & 0x100) != 0;
|
||||
uint curflags = extended ? KEYEVENTF_EXTENDEDKEY : 0;
|
||||
|
||||
sendInputs[0].Type = INPUT_KEYBOARD;
|
||||
sendInputs[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Keyboard.Flags = curflags;
|
||||
sendInputs[0].Data.Keyboard.Scan = scancode;
|
||||
tempInput[0].Type = INPUT_KEYBOARD;
|
||||
tempInput[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Keyboard.Flags = curflags;
|
||||
tempInput[0].Data.Keyboard.Scan = scancode;
|
||||
//sendInputs[0].Data.Keyboard.Flags = 1;
|
||||
//sendInputs[0].Data.Keyboard.Scan = 0;
|
||||
sendInputs[0].Data.Keyboard.Time = 0;
|
||||
sendInputs[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
tempInput[0].Data.Keyboard.Time = 0;
|
||||
tempInput[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void performSCKeyRelease(ushort key)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
sendInputs[0].Type = INPUT_KEYBOARD;
|
||||
sendInputs[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Keyboard.Flags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP;
|
||||
sendInputs[0].Data.Keyboard.Scan = MapVirtualKey(key, MAPVK_VK_TO_VSC);
|
||||
sendInputs[0].Data.Keyboard.Time = 0;
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
tempInput[0].Type = INPUT_KEYBOARD;
|
||||
tempInput[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Keyboard.Flags = KEYEVENTF_SCANCODE | KEYEVENTF_KEYUP;
|
||||
tempInput[0].Data.Keyboard.Scan = MapVirtualKey(key, MAPVK_VK_TO_VSC);
|
||||
tempInput[0].Data.Keyboard.Time = 0;
|
||||
//sendInputs[0].Data.Keyboard.Vk = MapVirtualKey(key, MAPVK_VK_TO_VSC);
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
public static void performKeyRelease(ushort key)
|
||||
{
|
||||
lock (lockob)
|
||||
{
|
||||
INPUT[] tempInput = new INPUT[1];
|
||||
ushort scancode = scancodeFromVK(key);
|
||||
bool extended = (scancode & 0x100) != 0;
|
||||
uint curflags = extended ? KEYEVENTF_EXTENDEDKEY : 0;
|
||||
|
||||
sendInputs[0].Type = INPUT_KEYBOARD;
|
||||
sendInputs[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
sendInputs[0].Data.Keyboard.Flags = curflags | KEYEVENTF_KEYUP;
|
||||
sendInputs[0].Data.Keyboard.Scan = scancode;
|
||||
tempInput[0].Type = INPUT_KEYBOARD;
|
||||
tempInput[0].Data.Keyboard.ExtraInfo = IntPtr.Zero;
|
||||
tempInput[0].Data.Keyboard.Flags = curflags | KEYEVENTF_KEYUP;
|
||||
tempInput[0].Data.Keyboard.Scan = scancode;
|
||||
//sendInputs[0].Data.Keyboard.Flags = KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP;
|
||||
//sendInputs[0].Data.Keyboard.Scan = 0;
|
||||
sendInputs[0].Data.Keyboard.Time = 0;
|
||||
sendInputs[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, sendInputs, Marshal.SizeOf(sendInputs[0]));
|
||||
}
|
||||
tempInput[0].Data.Keyboard.Time = 0;
|
||||
tempInput[0].Data.Keyboard.Vk = key;
|
||||
uint result = SendInput(1, tempInput, Marshal.SizeOf(tempInput[0]));
|
||||
}
|
||||
|
||||
private static ushort scancodeFromVK(uint vkey)
|
||||
|
1
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
1
DS4Windows/DS4Forms/DS4Form.Designer.cs
generated
@ -1374,7 +1374,6 @@
|
||||
this.Controls.Add(this.pnlButton);
|
||||
this.Name = "DS4Form";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScpForm_Closing);
|
||||
this.Resize += new System.EventHandler(this.Form_Resize);
|
||||
this.pnlButton.ResumeLayout(false);
|
||||
this.pnlButton.PerformLayout();
|
||||
this.cMTaskbar.ResumeLayout(false);
|
||||
|
@ -396,6 +396,8 @@ namespace DS4Windows
|
||||
}
|
||||
|
||||
instance = this;
|
||||
this.Resize += Form_Resize;
|
||||
this.LocationChanged += TrackLocationChanged;
|
||||
Form_Resize(null, null);
|
||||
if (btnStartStop.Enabled && start)
|
||||
TaskRunner.Delay(50).ContinueWith((t) => this.BeginInvoke((System.Action)(() => BtnStartStop_Clicked())));
|
||||
@ -941,9 +943,24 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
FormBorderStyle = FormBorderStyle.Sizable;
|
||||
}
|
||||
|
||||
if (WindowState != FormWindowState.Minimized)
|
||||
{
|
||||
FormWidth = Width;
|
||||
FormHeight = Height;
|
||||
}
|
||||
|
||||
chData.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
|
||||
}
|
||||
|
||||
private void TrackLocationChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (WindowState != FormWindowState.Minimized)
|
||||
{
|
||||
FormLocationX = Location.X;
|
||||
FormLocationY = Location.Y;
|
||||
}
|
||||
}
|
||||
|
||||
private void BtnStartStop_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnStartStop_Clicked();
|
||||
@ -2178,19 +2195,6 @@ Properties.Resources.DS4Update, MessageBoxButtons.YesNo, MessageBoxIcon.Question
|
||||
DS4LightBar.shuttingdown = true;
|
||||
}
|
||||
|
||||
if (oldsize == new Size(0, 0))
|
||||
{
|
||||
FormWidth = this.Width;
|
||||
FormHeight = this.Height;
|
||||
}
|
||||
else
|
||||
{
|
||||
FormWidth = oldsize.Width;
|
||||
FormHeight = oldsize.Height;
|
||||
}
|
||||
|
||||
FormLocationX = Location.X > 0 ? Location.X : 0;
|
||||
FormLocationY = Location.Y > 0 ? Location.Y : 0;
|
||||
Global.ControllerRemoved -= ControllerRemovedChange;
|
||||
|
||||
if (!string.IsNullOrEmpty(appdatapath))
|
||||
|
@ -445,10 +445,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>748, 89</value>
|
||||
<value>746, 89</value>
|
||||
</data>
|
||||
<data name="bnLight3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>145, 22</value>
|
||||
<value>147, 22</value>
|
||||
</data>
|
||||
<data name="bnLight3.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>50</value>
|
||||
@ -472,7 +472,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>348, 34</value>
|
||||
<value>347, 34</value>
|
||||
</data>
|
||||
<data name="pBStatus1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -574,7 +574,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>708, 89</value>
|
||||
<value>706, 89</value>
|
||||
</data>
|
||||
<data name="bnEditC3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -604,7 +604,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>708, 117</value>
|
||||
<value>706, 117</value>
|
||||
</data>
|
||||
<data name="bnEditC4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -703,7 +703,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>591, 33</value>
|
||||
<value>589, 33</value>
|
||||
</data>
|
||||
<data name="cBController1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -730,7 +730,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>708, 61</value>
|
||||
<value>706, 61</value>
|
||||
</data>
|
||||
<data name="bnEditC2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -757,7 +757,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>591, 61</value>
|
||||
<value>589, 61</value>
|
||||
</data>
|
||||
<data name="cBController2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -781,7 +781,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>591, 89</value>
|
||||
<value>589, 89</value>
|
||||
</data>
|
||||
<data name="cBController3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -808,7 +808,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnEditC1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>708, 33</value>
|
||||
<value>706, 33</value>
|
||||
</data>
|
||||
<data name="bnEditC1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>34, 22</value>
|
||||
@ -835,7 +835,7 @@
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="cBController4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>591, 117</value>
|
||||
<value>589, 117</value>
|
||||
</data>
|
||||
<data name="cBController4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>111, 21</value>
|
||||
@ -868,7 +868,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbSelectedProfile.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>592, 7</value>
|
||||
<value>590, 7</value>
|
||||
</data>
|
||||
<data name="lbSelectedProfile.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>109, 15</value>
|
||||
@ -940,7 +940,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbStatus.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>344, 7</value>
|
||||
<value>343, 7</value>
|
||||
</data>
|
||||
<data name="lbStatus.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>47, 15</value>
|
||||
@ -976,7 +976,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBattery.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>437, 7</value>
|
||||
<value>436, 7</value>
|
||||
</data>
|
||||
<data name="lbBattery.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>51, 15</value>
|
||||
@ -1012,7 +1012,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>443, 36</value>
|
||||
<value>442, 36</value>
|
||||
</data>
|
||||
<data name="lbBatt1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1048,7 +1048,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>443, 64</value>
|
||||
<value>442, 64</value>
|
||||
</data>
|
||||
<data name="lbBatt2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1084,7 +1084,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>443, 92</value>
|
||||
<value>442, 92</value>
|
||||
</data>
|
||||
<data name="lbBatt3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1120,7 +1120,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbBatt4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>443, 120</value>
|
||||
<value>442, 120</value>
|
||||
</data>
|
||||
<data name="lbBatt4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 15</value>
|
||||
@ -1150,7 +1150,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>348, 62</value>
|
||||
<value>347, 62</value>
|
||||
</data>
|
||||
<data name="pBStatus2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1180,7 +1180,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>348, 90</value>
|
||||
<value>347, 90</value>
|
||||
</data>
|
||||
<data name="pBStatus3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1210,7 +1210,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="pBStatus4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>348, 118</value>
|
||||
<value>347, 118</value>
|
||||
</data>
|
||||
<data name="pBStatus4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>39, 20</value>
|
||||
@ -1243,10 +1243,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>748, 33</value>
|
||||
<value>746, 33</value>
|
||||
</data>
|
||||
<data name="bnLight1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>145, 22</value>
|
||||
<value>147, 22</value>
|
||||
</data>
|
||||
<data name="bnLight1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>50</value>
|
||||
@ -1273,10 +1273,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>748, 61</value>
|
||||
<value>746, 61</value>
|
||||
</data>
|
||||
<data name="bnLight2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>145, 22</value>
|
||||
<value>147, 22</value>
|
||||
</data>
|
||||
<data name="bnLight2.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>51</value>
|
||||
@ -1303,10 +1303,10 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="bnLight4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>748, 117</value>
|
||||
<value>746, 117</value>
|
||||
</data>
|
||||
<data name="bnLight4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>145, 22</value>
|
||||
<value>147, 22</value>
|
||||
</data>
|
||||
<data name="bnLight4.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>52</value>
|
||||
@ -1336,7 +1336,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="lbLinkProfile.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>514, 0</value>
|
||||
<value>512, 0</value>
|
||||
</data>
|
||||
<data name="lbLinkProfile.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>67, 30</value>
|
||||
@ -1375,7 +1375,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>540, 37</value>
|
||||
<value>538, 37</value>
|
||||
</data>
|
||||
<data name="linkCB1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1408,7 +1408,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>540, 65</value>
|
||||
<value>538, 65</value>
|
||||
</data>
|
||||
<data name="linkCB2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1441,7 +1441,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB3.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>540, 93</value>
|
||||
<value>538, 93</value>
|
||||
</data>
|
||||
<data name="linkCB3.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1474,7 +1474,7 @@
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="linkCB4.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>540, 121</value>
|
||||
<value>538, 121</value>
|
||||
</data>
|
||||
<data name="linkCB4.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>15, 14</value>
|
||||
@ -1522,7 +1522,7 @@
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="tLPControllers.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
|
||||
<value><?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,150" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings></value>
|
||||
<value><?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="bnLight3" Row="3" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="pBStatus1" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbPad1" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad2" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="bnEditC3" Row="3" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="bnEditC4" Row="4" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="lbPad3" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbPad4" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="cBController1" Row="1" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC2" Row="2" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController2" Row="2" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="cBController3" Row="3" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="bnEditC1" Row="1" RowSpan="1" Column="5" ColumnSpan="1" /><Control Name="cBController4" Row="4" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbSelectedProfile" Row="0" RowSpan="1" Column="4" ColumnSpan="1" /><Control Name="lbID" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="lbStatus" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="lbBattery" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt1" Row="1" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt2" Row="2" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt3" Row="3" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="lbBatt4" Row="4" RowSpan="1" Column="2" ColumnSpan="1" /><Control Name="pBStatus2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus3" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="pBStatus4" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="bnLight1" Row="1" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight2" Row="2" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="bnLight4" Row="4" RowSpan="1" Column="6" ColumnSpan="1" /><Control Name="lbLinkProfile" Row="0" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB1" Row="1" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB2" Row="2" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB3" Row="3" RowSpan="1" Column="3" ColumnSpan="1" /><Control Name="linkCB4" Row="4" RowSpan="1" Column="3" ColumnSpan="1" /></Controls><Columns Styles="Percent,62.29144,Percent,20.02225,Percent,17.68632,Absolute,80,AutoSize,0,AutoSize,0,Absolute,151" /><Rows Styles="AutoSize,0,Percent,25,Percent,25,Percent,25,Percent,25" /></TableLayoutSettings></value>
|
||||
</data>
|
||||
<data name="lbNoControllers.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
@ -2935,7 +2935,7 @@
|
||||
<value>languagePackComboBox1</value>
|
||||
</data>
|
||||
<data name=">>languagePackComboBox1.Type" xml:space="preserve">
|
||||
<value>DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.5.15.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
<value>DS4Windows.DS4Forms.LanguagePackComboBox, DS4Windows, Version=1.5.17.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>languagePackComboBox1.Parent" xml:space="preserve">
|
||||
<value>fLPSettings</value>
|
||||
@ -3652,7 +3652,7 @@
|
||||
<value>advColorDialog</value>
|
||||
</data>
|
||||
<data name=">>advColorDialog.Type" xml:space="preserve">
|
||||
<value>DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.5.15.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
<value>DS4Windows.AdvancedColorDialog, DS4Windows, Version=1.5.17.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>DS4Form</value>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@ -56,18 +56,9 @@
|
||||
<PropertyGroup>
|
||||
<StartupObject>DS4Windows.Program</StartupObject>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\DS4W.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup />
|
||||
<PropertyGroup>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
@ -129,7 +120,6 @@
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
@ -1077,7 +1067,7 @@
|
||||
<EmbeddedResource Include="Properties\Resources.pl.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.pt-BR.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
|
460
DS4Windows/Properties/Resources.Designer.cs
generated
460
DS4Windows/Properties/Resources.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -566,7 +566,7 @@
|
||||
<value>EXPERIMENTAL: Auto-Disable BT when connecting to USB</value>
|
||||
</data>
|
||||
<data name="QuitOtherPrograms" xml:space="preserve">
|
||||
<value>You must quit other applications like Steam, Uplay before activating the 'Hide DS4 Controller' option."</value>
|
||||
<value>You must quit other applications like Steam, Uplay, NVIDIA IN-GAME before activating the 'Hide DS4 Controller' option.</value>
|
||||
</data>
|
||||
<data name="rainbow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\rainbow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
Loading…
x
Reference in New Issue
Block a user