mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-23 09:49:16 +01:00
Merge branch 'jay' into udpserver
This commit is contained in:
commit
28f3414a05
@ -24,6 +24,8 @@ namespace DS4Windows
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected Int32 Scale(Int32 Value, Boolean Flip)
|
protected Int32 Scale(Int32 Value, Boolean Flip)
|
||||||
|
{
|
||||||
|
unchecked
|
||||||
{
|
{
|
||||||
Value -= 0x80;
|
Value -= 0x80;
|
||||||
|
|
||||||
@ -33,6 +35,7 @@ namespace DS4Windows
|
|||||||
|
|
||||||
return (Int32)(temp * outputResolution + (-32768));
|
return (Int32)(temp * outputResolution + (-32768));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public X360Device()
|
public X360Device()
|
||||||
@ -113,6 +116,8 @@ namespace DS4Windows
|
|||||||
Output[i] = 0;
|
Output[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unchecked
|
||||||
|
{
|
||||||
if (state.Share) Output[10] |= (Byte)(1 << 5); // Back
|
if (state.Share) Output[10] |= (Byte)(1 << 5); // Back
|
||||||
if (state.L3) Output[10] |= (Byte)(1 << 6); // Left Thumb
|
if (state.L3) Output[10] |= (Byte)(1 << 6); // Left Thumb
|
||||||
if (state.R3) Output[10] |= (Byte)(1 << 7); // Right Thumb
|
if (state.R3) Output[10] |= (Byte)(1 << 7); // Right Thumb
|
||||||
@ -149,6 +154,7 @@ namespace DS4Windows
|
|||||||
Output[20] = (Byte)((ThumbRY >> 0) & 0xFF); // RY
|
Output[20] = (Byte)((ThumbRY >> 0) & 0xFF); // RY
|
||||||
Output[21] = (Byte)((ThumbRY >> 8) & 0xFF);
|
Output[21] = (Byte)((ThumbRY >> 8) & 0xFF);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Boolean Plugin(Int32 Serial)
|
public Boolean Plugin(Int32 Serial)
|
||||||
{
|
{
|
||||||
|
@ -409,13 +409,28 @@ namespace DS4Windows
|
|||||||
|
|
||||||
foreach (Control control in fLPSettings.Controls)
|
foreach (Control control in fLPSettings.Controls)
|
||||||
{
|
{
|
||||||
|
string tempst;
|
||||||
if (control.HasChildren)
|
if (control.HasChildren)
|
||||||
{
|
{
|
||||||
foreach (Control ctrl in control.Controls)
|
foreach (Control ctrl in control.Controls)
|
||||||
|
{
|
||||||
|
if (hoverTextDict.TryGetValue(ctrl, out tempst))
|
||||||
|
{
|
||||||
ctrl.MouseHover += Items_MouseHover;
|
ctrl.MouseHover += Items_MouseHover;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
control.MouseHover += Items_MouseHover;
|
{
|
||||||
|
ctrl.MouseHover += ClearLastMessage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (hoverTextDict.TryGetValue(control, out tempst))
|
||||||
|
control.MouseEnter += Items_MouseHover;
|
||||||
|
else
|
||||||
|
control.MouseHover += ClearLastMessage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -447,6 +462,12 @@ namespace DS4Windows
|
|||||||
g.DrawImage(shield, new Rectangle(0, 0, finalWidth, finalHeight));
|
g.DrawImage(shield, new Rectangle(0, 0, finalWidth, finalHeight));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ClearLastMessage(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
lbLastMessage.Text = "";
|
||||||
|
lbLastMessage.ForeColor = SystemColors.GrayText;
|
||||||
|
}
|
||||||
|
|
||||||
private void blankControllerTab()
|
private void blankControllerTab()
|
||||||
{
|
{
|
||||||
for (int Index = 0, PadsLen = Pads.Length;
|
for (int Index = 0, PadsLen = Pads.Length;
|
||||||
|
@ -33,7 +33,7 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.5.1")]
|
[assembly: AssemblyVersion("1.5.2")]
|
||||||
[assembly: AssemblyFileVersion("1.5.1")]
|
[assembly: AssemblyFileVersion("1.5.2")]
|
||||||
[assembly: NeutralResourcesLanguage("en")]
|
[assembly: NeutralResourcesLanguage("en")]
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@ You can find the latest and older versions [here](https://github.com/Ryochan7/DS
|
|||||||
|
|
||||||
UdpServer builds for using Gyro motion controls in Cemu.
|
UdpServer builds for using Gyro motion controls in Cemu.
|
||||||
|
|
||||||
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.0_UdpServer_x64.zip
|
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.1_UdpServer_x64.zip
|
||||||
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.0_ViGEm_UdpServer_x64.zip
|
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.1_ViGEm_UdpServer_x64.zip
|
||||||
|
|
||||||
ViGEm build.
|
ViGEm build.
|
||||||
|
|
||||||
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.0_ViGEm_x64.zip
|
http://ryochan7.xyz/ds4windows/test/DS4Windows_1.5.1_ViGEm_x64.zip
|
||||||
|
|
||||||
This project is a fork of the work of Jays2Kings. You can find the old project
|
This project is a fork of the work of Jays2Kings. You can find the old project
|
||||||
website at [ds4windows.com](http://ds4windows.com).
|
website at [ds4windows.com](http://ds4windows.com).
|
||||||
|
Loading…
Reference in New Issue
Block a user