2014-03-28 02:50:40 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Windows.Forms;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
using System.Xml;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
using static DS4Windows.Global;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
using System.Runtime.InteropServices;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
|
2014-11-18 22:23:41 +01:00
|
|
|
|
namespace DS4Windows
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
|
|
|
|
public partial class Options : Form
|
|
|
|
|
{
|
2014-05-30 22:39:39 +02:00
|
|
|
|
public int device;
|
2014-06-02 19:29:38 +02:00
|
|
|
|
public string filename;
|
2014-06-21 20:00:28 +02:00
|
|
|
|
public Timer inputtimer = new Timer(), sixaxisTimer = new Timer();
|
2015-12-18 07:25:51 +01:00
|
|
|
|
public List<Button> buttons = new List<Button>();
|
2014-04-30 21:32:44 +02:00
|
|
|
|
private int alphacolor;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private Color reg, full, main;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
private Image colored, greyscale;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private Image rainbowImg = Properties.Resources.rainbow;
|
2014-05-25 01:08:40 +02:00
|
|
|
|
ToolTip tp = new ToolTip();
|
2014-12-13 21:12:03 +01:00
|
|
|
|
public DS4Form root;
|
2014-08-23 22:52:20 +02:00
|
|
|
|
bool olddinputcheck = false;
|
2014-11-14 20:44:50 +01:00
|
|
|
|
private float dpix;
|
|
|
|
|
private float dpiy;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
public Dictionary<string, string> defaults = new Dictionary<string, string>();
|
2015-11-30 22:15:17 +01:00
|
|
|
|
public bool saving, loading;
|
|
|
|
|
public static Size mSize { get; private set; }
|
|
|
|
|
private Size settingsSize;
|
|
|
|
|
public Options(DS4Form rt)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
mSize = MaximumSize;
|
|
|
|
|
settingsSize = fLPSettings.Size;
|
|
|
|
|
MaximumSize = new Size(0, 0);
|
|
|
|
|
root = rt;
|
|
|
|
|
btnRumbleHeavyTest.Text = Properties.Resources.TestHText;
|
|
|
|
|
btnRumbleLightTest.Text = Properties.Resources.TestLText;
|
|
|
|
|
rBTPControls.Text = rBSAControls.Text;
|
|
|
|
|
rBTPMouse.Text = rBSAMouse.Text;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
rBTPControls.Location = rBSAControls.Location;
|
|
|
|
|
rBTPMouse.Location = rBSAMouse.Location;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
Visible = false;
|
2015-12-13 22:30:54 +01:00
|
|
|
|
colored = btnRainbow.Image;
|
|
|
|
|
greyscale = GreyscaleImage((Bitmap)btnRainbow.Image);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
fLPSettings.FlowDirection = FlowDirection.TopDown;
|
|
|
|
|
foreach (Control control in tPControls.Controls)
|
|
|
|
|
if (control is Button && !((Button)control).Name.Contains("btn"))
|
|
|
|
|
buttons.Add((Button)control);
|
|
|
|
|
foreach (Control control in fLPTouchSwipe.Controls)
|
|
|
|
|
if (control is Button && !((Button)control).Name.Contains("btn"))
|
|
|
|
|
buttons.Add((Button)control);
|
|
|
|
|
foreach (Control control in fLPTiltControls.Controls)
|
|
|
|
|
if (control is Button && !((Button)control).Name.Contains("btn"))
|
|
|
|
|
buttons.Add((Button)control);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in pnlController.Controls)
|
|
|
|
|
if (control is Button && !((Button)control).Name.Contains("btn"))
|
|
|
|
|
buttons.Add((Button)control);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
foreach (Button b in buttons)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
2015-11-30 22:15:17 +01:00
|
|
|
|
defaults.Add(b.Name, b.Text);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
b.Text = "";
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
foreach (System.Windows.Forms.Control control in Controls)
|
|
|
|
|
{
|
|
|
|
|
if (control.HasChildren)
|
|
|
|
|
foreach (System.Windows.Forms.Control ctrl in control.Controls)
|
|
|
|
|
{
|
|
|
|
|
if (ctrl.HasChildren)
|
|
|
|
|
foreach (System.Windows.Forms.Control ctrl2 in ctrl.Controls)
|
|
|
|
|
{
|
|
|
|
|
if (ctrl2.HasChildren)
|
|
|
|
|
foreach (System.Windows.Forms.Control ctrl3 in ctrl2.Controls)
|
|
|
|
|
ctrl3.MouseHover += Items_MouseHover;
|
|
|
|
|
ctrl2.MouseHover += Items_MouseHover;
|
|
|
|
|
}
|
|
|
|
|
ctrl.MouseHover += Items_MouseHover;
|
|
|
|
|
}
|
|
|
|
|
control.MouseHover += Items_MouseHover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (Button b in buttons)
|
|
|
|
|
{
|
|
|
|
|
b.MouseHover += button_MouseHover;
|
|
|
|
|
b.MouseLeave += button_MouseLeave;
|
|
|
|
|
}
|
|
|
|
|
advColorDialog.OnUpdateColor += advColorDialog_OnUpdateColor;
|
|
|
|
|
inputtimer.Tick += InputDS4;
|
|
|
|
|
sixaxisTimer.Tick += ControllerReadout_Tick;
|
|
|
|
|
sixaxisTimer.Interval = 1000 / 60;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
bnGyroZN.Text = Properties.Resources.TiltUp;
|
|
|
|
|
bnGyroZP.Text = Properties.Resources.TiltDown;
|
|
|
|
|
bnGyroXP.Text = Properties.Resources.TiltLeft;
|
|
|
|
|
bnGyroXN.Text = Properties.Resources.TiltRight;
|
|
|
|
|
bnSwipeUp.Text = Properties.Resources.SwipeUp;
|
|
|
|
|
bnSwipeDown.Text = Properties.Resources.SwipeDown;
|
|
|
|
|
bnSwipeLeft.Text = Properties.Resources.SwipeLeft;
|
|
|
|
|
bnSwipeRight.Text = Properties.Resources.SwipeRight;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
public void Reload(int deviceNum, string name)
|
|
|
|
|
{
|
|
|
|
|
loading = true;
|
|
|
|
|
device = deviceNum;
|
|
|
|
|
filename = name;
|
|
|
|
|
lBControls.SelectedIndex = -1;
|
|
|
|
|
lbControlName.Text = "";
|
|
|
|
|
|
|
|
|
|
tCControls.SelectedIndex = 0;
|
|
|
|
|
Graphics g = this.CreateGraphics();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
dpix = g.DpiX / 100f * 1.041666666667f;
|
|
|
|
|
dpiy = g.DpiY / 100f * 1.041666666667f;
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
g.Dispose();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//butts += "\n" + b.Name;
|
|
|
|
|
//MessageBox.Show(butts);
|
|
|
|
|
|
|
|
|
|
root.lbLastMessage.ForeColor = Color.Black;
|
|
|
|
|
root.lbLastMessage.Text = "Hover over items to see description or more about";
|
|
|
|
|
if (device < 4)
|
|
|
|
|
nUDSixaxis.Value = deviceNum + 1;
|
|
|
|
|
if (filename != "")
|
|
|
|
|
{
|
|
|
|
|
if (device == 4) //if temp device is called
|
|
|
|
|
ProfilePath[4] = name;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
LoadProfile(device, false, Program.rootHub);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
|
|
|
|
|
if (Rainbow[device] == 0)
|
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
btnRainbow.Image = greyscale;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
ToggleRainbow(false);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
btnRainbow.Image = colored;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
ToggleRainbow(true);
|
|
|
|
|
}
|
|
|
|
|
DS4Color color = MainColor[device];
|
|
|
|
|
tBRedBar.Value = color.red;
|
|
|
|
|
tBGreenBar.Value = color.green;
|
|
|
|
|
tBBlueBar.Value = color.blue;
|
|
|
|
|
|
|
|
|
|
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
|
|
|
|
|
reg = Color.FromArgb(color.red, color.green, color.blue);
|
|
|
|
|
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
|
|
|
|
|
main = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnLightbar.BackgroundImage = RecolorImage((Bitmap)btnLightbar.BackgroundImage, main);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
|
|
|
|
|
cBLightbyBattery.Checked = LedAsBatteryIndicator[device];
|
|
|
|
|
nUDflashLED.Value = FlashAt[device];
|
|
|
|
|
pnlLowBattery.Visible = cBLightbyBattery.Checked;
|
|
|
|
|
lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "Color:");
|
|
|
|
|
//pnlFull.Location = new Point(pnlFull.Location.X, (cBLightbyBattery.Checked ? (int)(dpix * 42) : (pnlFull.Location.Y + pnlLowBattery.Location.Y) / 2));
|
|
|
|
|
DS4Color lowColor = LowColor[device];
|
|
|
|
|
tBLowRedBar.Value = lowColor.red;
|
|
|
|
|
tBLowGreenBar.Value = lowColor.green;
|
|
|
|
|
tBLowBlueBar.Value = lowColor.blue;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
DS4Color cColor = ChargingColor[device];
|
|
|
|
|
btnChargingColor.BackColor = Color.FromArgb(cColor.red, cColor.green, cColor.blue);
|
|
|
|
|
if (FlashType[device] > cBFlashType.Items.Count - 1)
|
|
|
|
|
cBFlashType.SelectedIndex = 0;
|
|
|
|
|
else
|
|
|
|
|
cBFlashType.SelectedIndex = FlashType[device];
|
|
|
|
|
DS4Color fColor = FlashColor[device];
|
|
|
|
|
if (fColor.Equals(new DS4Color { red = 0, green = 0, blue = 0 }))
|
|
|
|
|
if (Rainbow[device] == 0)
|
|
|
|
|
btnFlashColor.BackColor = main;
|
|
|
|
|
else
|
|
|
|
|
btnFlashColor.BackgroundImage = rainbowImg;
|
|
|
|
|
else
|
|
|
|
|
btnFlashColor.BackColor = Color.FromArgb(fColor.red, fColor.green, fColor.blue);
|
|
|
|
|
nUDRumbleBoost.Value = RumbleBoost[device];
|
|
|
|
|
nUDTouch.Value = TouchSensitivity[device];
|
|
|
|
|
cBSlide.Checked = TouchSensitivity[device] > 0;
|
|
|
|
|
nUDScroll.Value = ScrollSensitivity[device];
|
|
|
|
|
cBScroll.Checked = ScrollSensitivity[device] != 0;
|
|
|
|
|
nUDTap.Value = TapSensitivity[device];
|
|
|
|
|
cBTap.Checked = TapSensitivity[device] > 0;
|
|
|
|
|
cBDoubleTap.Checked = DoubleTap[device];
|
|
|
|
|
cBTouchpadJitterCompensation.Checked = TouchpadJitterCompensation[device];
|
|
|
|
|
cBlowerRCOn.Checked = LowerRCOn[device];
|
|
|
|
|
cBFlushHIDQueue.Checked = FlushHIDQueue[device];
|
|
|
|
|
nUDIdleDisconnect.Value = Math.Round((decimal)(IdleDisconnectTimeout[device] / 60d), 1);
|
|
|
|
|
cBIdleDisconnect.Checked = IdleDisconnectTimeout[device] > 0;
|
|
|
|
|
numUDMouseSens.Value = ButtonMouseSensitivity[device];
|
|
|
|
|
cBMouseAccel.Checked = MouseAccel[device];
|
|
|
|
|
pBHoveredButton.Image = null;
|
|
|
|
|
|
|
|
|
|
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
|
|
|
|
|
reg = Color.FromArgb(lowColor.red, lowColor.green, lowColor.blue);
|
|
|
|
|
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
|
|
|
|
|
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
|
|
|
|
|
nUDRainbow.Value = (decimal)Rainbow[device];
|
|
|
|
|
if (ChargingType[device] > cBWhileCharging.Items.Count - 1)
|
|
|
|
|
cBWhileCharging.SelectedIndex = 0;
|
|
|
|
|
else
|
|
|
|
|
cBWhileCharging.SelectedIndex = ChargingType[device];
|
2015-12-05 09:55:11 +01:00
|
|
|
|
nUDL2.Value = Math.Round((decimal)L2Deadzone[device] / 255, 2);
|
|
|
|
|
nUDR2.Value = Math.Round((decimal)R2Deadzone[device] / 255, 2);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
nUDLS.Value = Math.Round((decimal)(LSDeadzone[device] / 127d), 3);
|
|
|
|
|
nUDRS.Value = Math.Round((decimal)(RSDeadzone[device] / 127d), 3);
|
|
|
|
|
nUDSX.Value = (decimal)SXDeadzone[device];
|
|
|
|
|
nUDSZ.Value = (decimal)SZDeadzone[device];
|
2015-12-05 09:55:11 +01:00
|
|
|
|
|
|
|
|
|
nUDL2S.Value = Math.Round((decimal)L2Sens[device], 2);
|
|
|
|
|
nUDR2S.Value = Math.Round((decimal)R2Sens[device], 2);
|
|
|
|
|
nUDLSS.Value = Math.Round((decimal)LSSens[device], 2);
|
|
|
|
|
nUDRSS.Value = Math.Round((decimal)RSSens[device], 2);
|
|
|
|
|
nUDSXS.Value = Math.Round((decimal)SXSens[device], 2);
|
|
|
|
|
nUDSZS.Value = Math.Round((decimal)SZSens[device], 2);
|
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (LaunchProgram[device] != string.Empty)
|
|
|
|
|
{
|
|
|
|
|
cBLaunchProgram.Checked = true;
|
|
|
|
|
pBProgram.Image = Icon.ExtractAssociatedIcon(LaunchProgram[device]).ToBitmap();
|
|
|
|
|
btnBrowse.Text = Path.GetFileNameWithoutExtension(LaunchProgram[device]);
|
|
|
|
|
}
|
|
|
|
|
cBDinput.Checked = DinputOnly[device];
|
|
|
|
|
olddinputcheck = cBDinput.Checked;
|
|
|
|
|
cbStartTouchpadOff.Checked = StartTouchpadOff[device];
|
|
|
|
|
rBTPControls.Checked = UseTPforControls[device];
|
|
|
|
|
rBTPMouse.Checked = !UseTPforControls[device];
|
|
|
|
|
rBSAMouse.Checked = UseSAforMouse[device];
|
|
|
|
|
rBSAControls.Checked = !UseSAforMouse[device];
|
|
|
|
|
nUDLSCurve.Value = LSCurve[device];
|
|
|
|
|
nUDRSCurve.Value = RSCurve[device];
|
|
|
|
|
cBControllerInput.Checked = DS4Mapping;
|
|
|
|
|
|
|
|
|
|
string[] satriggers = SATriggers[device].Split(',');
|
|
|
|
|
List<string> s = new List<string>();
|
|
|
|
|
for (int i = 0; i < satriggers.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
int tr;
|
|
|
|
|
if (int.TryParse(satriggers[i], out tr))
|
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (tr < cMGyroTriggers.Items.Count && tr > -1)
|
|
|
|
|
{
|
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[tr]).Checked = true;
|
|
|
|
|
s.Add(cMGyroTriggers.Items[tr].Text);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1]).Checked = true;
|
|
|
|
|
s.Add(cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1].Text);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1]).Checked = true;
|
|
|
|
|
s.Add(cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1].Text);
|
|
|
|
|
break;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
nUDGyroSensitivity.Value = GyroSensitivity[device];
|
|
|
|
|
int invert = GyroInvert[device];
|
|
|
|
|
cBGyroInvertX.Checked = invert == 2 || invert == 3;
|
|
|
|
|
cBGyroInvertY.Checked = invert == 1 || invert == 3;
|
|
|
|
|
if (s.Count > 0)
|
|
|
|
|
btnGyroTriggers.Text = string.Join(", ", s);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cBFlashType.SelectedIndex = 0;
|
|
|
|
|
cBWhileCharging.SelectedIndex = 0;
|
|
|
|
|
rBTPMouse.Checked = true;
|
|
|
|
|
rBSAControls.Checked = true;
|
|
|
|
|
ToggleRainbow(false);
|
2015-12-05 09:55:11 +01:00
|
|
|
|
cBDinput.Checked = false;
|
|
|
|
|
cbStartTouchpadOff.Checked = false;
|
|
|
|
|
rBSAControls.Checked = true;
|
|
|
|
|
rBTPMouse.Checked = true;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
switch (device)
|
|
|
|
|
{
|
2015-12-05 09:55:11 +01:00
|
|
|
|
case 0: tBRedBar.Value = 0; tBGreenBar.Value = 0; tBBlueBar.Value = 255; break;
|
|
|
|
|
case 1: tBRedBar.Value = 255; tBGreenBar.Value = 0; tBBlueBar.Value = 0; break;
|
|
|
|
|
case 2: tBRedBar.Value = 0; tBGreenBar.Value = 255; tBBlueBar.Value = 0; break;
|
|
|
|
|
case 3: tBRedBar.Value = 255; tBGreenBar.Value = 0; tBBlueBar.Value = 255; break;
|
|
|
|
|
case 4: tBRedBar.Value = 255; tBGreenBar.Value = 255; tBBlueBar.Value = 255; break;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
}
|
2015-12-05 09:55:11 +01:00
|
|
|
|
tBLowBlueBar.Value = 0; tBLowGreenBar.Value = 0; tBLowBlueBar.Value = 0;
|
|
|
|
|
|
|
|
|
|
cBLightbyBattery.Checked = false;
|
|
|
|
|
nUDflashLED.Value = 0;
|
|
|
|
|
lbFull.Text = (cBLightbyBattery.Checked ? "Full:" : "Color:");
|
|
|
|
|
|
|
|
|
|
cBFlashType.SelectedIndex = 0;
|
|
|
|
|
nUDRumbleBoost.Value = 100;
|
|
|
|
|
nUDTouch.Value = 100;
|
|
|
|
|
cBSlide.Checked = true;
|
|
|
|
|
nUDScroll.Value = 0;
|
|
|
|
|
cBScroll.Checked = false;
|
|
|
|
|
nUDTap.Value = 0;
|
|
|
|
|
cBTap.Checked = false;
|
|
|
|
|
cBDoubleTap.Checked = false;
|
|
|
|
|
cBTouchpadJitterCompensation.Checked = true;
|
|
|
|
|
cBlowerRCOn.Checked = false;
|
|
|
|
|
cBFlushHIDQueue.Checked = true;
|
|
|
|
|
nUDIdleDisconnect.Value = 5;
|
|
|
|
|
cBIdleDisconnect.Checked = true;
|
|
|
|
|
numUDMouseSens.Value = 25;
|
|
|
|
|
cBMouseAccel.Checked = true;
|
|
|
|
|
pBHoveredButton.Image = null;
|
|
|
|
|
|
|
|
|
|
nUDRainbow.Value = 0;
|
|
|
|
|
nUDL2.Value = 0;
|
|
|
|
|
nUDR2.Value = 0;
|
|
|
|
|
nUDLS.Value = 0;
|
|
|
|
|
nUDRS.Value = 0;
|
|
|
|
|
nUDSX.Value = .25m;
|
|
|
|
|
nUDSZ.Value = .25m;
|
|
|
|
|
|
|
|
|
|
nUDL2S.Value = 1;
|
|
|
|
|
nUDR2S.Value = 1;
|
|
|
|
|
nUDLSS.Value = 1;
|
|
|
|
|
nUDRSS.Value = 1;
|
|
|
|
|
nUDSXS.Value = 1;
|
|
|
|
|
nUDSZS.Value = 1;
|
|
|
|
|
|
|
|
|
|
cBLaunchProgram.Checked = false;
|
|
|
|
|
pBProgram.Image = null;
|
|
|
|
|
btnBrowse.Text = Properties.Resources.Browse;
|
|
|
|
|
cBDinput.Checked = false;
|
|
|
|
|
olddinputcheck = false;
|
|
|
|
|
cbStartTouchpadOff.Checked = false;
|
|
|
|
|
nUDLSCurve.Value = 0;
|
|
|
|
|
nUDRSCurve.Value = 0;
|
|
|
|
|
cBControllerInput.Checked = DS4Mapping;
|
2015-12-13 22:30:54 +01:00
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1]).Checked = true;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
nUDGyroSensitivity.Value = 100;
|
|
|
|
|
cBGyroInvertX.Checked = false;
|
|
|
|
|
cBGyroInvertY.Checked = false;
|
|
|
|
|
Set();
|
2015-11-30 22:15:17 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
UpdateLists();
|
|
|
|
|
inputtimer.Start();
|
|
|
|
|
LoadActions(string.IsNullOrEmpty(filename));
|
|
|
|
|
loading = false;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
saving = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string getDS4ControlsByName(DS4Controls key)
|
|
|
|
|
{
|
|
|
|
|
switch (key)
|
|
|
|
|
{
|
|
|
|
|
case DS4Controls.Share: return "bnShare";
|
|
|
|
|
case DS4Controls.L3: return "bnL3";
|
|
|
|
|
case DS4Controls.R3: return "bnR3";
|
|
|
|
|
case DS4Controls.Options: return "bnOptions";
|
|
|
|
|
case DS4Controls.DpadUp: return "bnUp";
|
|
|
|
|
case DS4Controls.DpadRight: return "bnRight";
|
|
|
|
|
case DS4Controls.DpadDown: return "bnDown";
|
|
|
|
|
case DS4Controls.DpadLeft: return "bnLeft";
|
|
|
|
|
|
|
|
|
|
case DS4Controls.L1: return "bnL1";
|
|
|
|
|
case DS4Controls.R1: return "bnR1";
|
|
|
|
|
case DS4Controls.Triangle: return "bnTriangle";
|
|
|
|
|
case DS4Controls.Circle: return "bnCircle";
|
|
|
|
|
case DS4Controls.Cross: return "bnCross";
|
|
|
|
|
case DS4Controls.Square: return "bnSquare";
|
|
|
|
|
|
|
|
|
|
case DS4Controls.PS: return "bnPS";
|
|
|
|
|
case DS4Controls.LXNeg: return "bnLSLeft";
|
|
|
|
|
case DS4Controls.LYNeg: return "bnLSUp";
|
|
|
|
|
case DS4Controls.RXNeg: return "bnRSLeft";
|
|
|
|
|
case DS4Controls.RYNeg: return "bnRSUp";
|
|
|
|
|
|
|
|
|
|
case DS4Controls.LXPos: return "bnLSRight";
|
|
|
|
|
case DS4Controls.LYPos: return "bnLSDown";
|
|
|
|
|
case DS4Controls.RXPos: return "bnRSRight";
|
|
|
|
|
case DS4Controls.RYPos: return "bnRSDown";
|
|
|
|
|
case DS4Controls.L2: return "bnL2";
|
|
|
|
|
case DS4Controls.R2: return "bnR2";
|
|
|
|
|
|
|
|
|
|
case DS4Controls.TouchLeft: return "bnTouchLeft";
|
|
|
|
|
case DS4Controls.TouchMulti: return "bnTouchMulti";
|
|
|
|
|
case DS4Controls.TouchUpper: return "bnTouchUpper";
|
|
|
|
|
case DS4Controls.TouchRight: return "bnTouchRight";
|
|
|
|
|
case DS4Controls.GyroXPos: return "bnGyroXP";
|
|
|
|
|
case DS4Controls.GyroXNeg: return "bnGyroXN";
|
|
|
|
|
case DS4Controls.GyroZPos: return "bnGyroZP";
|
|
|
|
|
case DS4Controls.GyroZNeg: return "bnGyroZN";
|
|
|
|
|
|
|
|
|
|
case DS4Controls.SwipeUp: return "bnSwipeUp";
|
|
|
|
|
case DS4Controls.SwipeDown: return "bnSwipeDown";
|
|
|
|
|
case DS4Controls.SwipeLeft: return "bnSwipeLeft";
|
|
|
|
|
case DS4Controls.SwipeRight: return "bnSwipeRight";
|
|
|
|
|
}
|
|
|
|
|
return "";
|
2015-11-30 22:15:17 +01:00
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
public void LoadActions(bool newp)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
{
|
2015-11-30 22:15:17 +01:00
|
|
|
|
lVActions.Items.Clear();
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
List<string> pactions = ProfileActions[device];
|
|
|
|
|
foreach (SpecialAction action in GetActions())
|
2014-12-13 21:12:03 +01:00
|
|
|
|
{
|
|
|
|
|
ListViewItem lvi = new ListViewItem(action.name);
|
|
|
|
|
lvi.SubItems.Add(action.controls.Replace("/", ", "));
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
//string type = action.type;
|
|
|
|
|
switch (action.type)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
{
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "Macro": lvi.SubItems.Add(Properties.Resources.Macro + (action.keyType.HasFlag(DS4KeyType.ScanCode) ? " (" + Properties.Resources.ScanCode + ")" : "")); break;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
case "Program": lvi.SubItems.Add(Properties.Resources.LaunchProgram.Replace("*program*", Path.GetFileNameWithoutExtension(action.details))); break;
|
|
|
|
|
case "Profile": lvi.SubItems.Add(Properties.Resources.LoadProfile.Replace("*profile*", action.details)); break;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "Key": lvi.SubItems.Add(((Keys)int.Parse(action.details)).ToString() + (action.uTrigger.Count > 0 ? " (Toggle)" : "")); break;
|
|
|
|
|
case "DisconnectBT":
|
2015-02-12 20:36:40 +01:00
|
|
|
|
lvi.SubItems.Add(Properties.Resources.DisconnectBT);
|
|
|
|
|
break;
|
|
|
|
|
case "BatteryCheck":
|
|
|
|
|
lvi.SubItems.Add(Properties.Resources.CheckBattery);
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
break;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
case "XboxGameDVR":
|
|
|
|
|
lvi.SubItems.Add("Xbox Game DVR");
|
|
|
|
|
break;
|
Version 1.4.5
Added support for the New DS4 USB Adapater (Thanks to boganhobo and
Chamilsaan)
Implemented teokp's amazing fix for hide ds4 not working on the
anniversary update of Windows 10: when a controller fails to enter
exclusive mode, DS4Windows will ask for admin privilages to fix the
issue.
Now (near)unlimited Special Actions can be made from the previous limit
of 50
Special Action Xbox Game DVR is now no longer limited to Windows 10,
renamed multi action button: Assign a macro to single tap, double tap,
and holding down a button
Added option for White DS4Windows Icon in the notification tray (While
not merged from, thanks to tehmantra)
Added option to temporarily turn off DS4Windows when using a certain
program (togglable in the Auto Profiles Tab) (Same case as above but
thanks to dedChar to bring to light)
Fixed Options crashes in certain locales where decimal points are
repesented with commas, such as German (Thanks to kiliansch)
Added/Updated translations for many languauges, now including Japanese,
Slovenian, Hungarian, Greek, Finnish, Czech, Indonesian, and Ukrainian
2016-09-22 03:38:38 +02:00
|
|
|
|
case "MultiAction":
|
|
|
|
|
lvi.SubItems.Add(Properties.Resources.MultiAction);
|
|
|
|
|
break;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
2015-12-05 09:55:11 +01:00
|
|
|
|
if (newp)
|
|
|
|
|
if (action.type == "DisconnectBT")
|
2014-12-13 21:12:03 +01:00
|
|
|
|
lvi.Checked = true;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
else
|
|
|
|
|
lvi.Checked = false;
|
|
|
|
|
else
|
|
|
|
|
foreach (string s in pactions)
|
|
|
|
|
if (s == action.name)
|
|
|
|
|
{
|
|
|
|
|
lvi.Checked = true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
lVActions.Items.Add(lvi);
|
|
|
|
|
}
|
2014-05-19 07:55:12 +02:00
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
2015-02-08 22:51:52 +01:00
|
|
|
|
public double Clamp(double min, double value, double max)
|
|
|
|
|
{
|
|
|
|
|
if (value > max)
|
|
|
|
|
return max;
|
|
|
|
|
else if (value < min)
|
|
|
|
|
return min;
|
|
|
|
|
else
|
|
|
|
|
return value;
|
|
|
|
|
}
|
2015-12-05 09:55:11 +01:00
|
|
|
|
void EnableReadings(bool on)
|
|
|
|
|
{
|
|
|
|
|
lbL2Track.Enabled = on;
|
|
|
|
|
lbR2Track.Enabled = on;
|
|
|
|
|
pnlLSTrack.Enabled = on;
|
|
|
|
|
pnlRSTrack.Enabled = on;
|
|
|
|
|
pnlSATrack.Enabled = on;
|
|
|
|
|
btnLSTrack.Visible = on;
|
|
|
|
|
btnLSTrackS.Visible = on;
|
|
|
|
|
btnRSTrack.Visible = on;
|
|
|
|
|
btnRSTrackS.Visible = on;
|
|
|
|
|
btnSATrack.Visible = on;
|
|
|
|
|
btnSATrackS.Visible = on;
|
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
void ControllerReadout_Tick(object sender, EventArgs e)
|
2015-12-05 09:55:11 +01:00
|
|
|
|
{
|
2014-05-30 22:39:39 +02:00
|
|
|
|
// MEMS gyro data is all calibrated to roughly -1G..1G for values -0x2000..0x1fff
|
|
|
|
|
// Enough additional acceleration and we are no longer mostly measuring Earth's gravity...
|
|
|
|
|
// We should try to indicate setpoints of the calibration when exposing this measurement....
|
2014-12-13 21:12:03 +01:00
|
|
|
|
if (Program.rootHub.DS4Controllers[(int)nUDSixaxis.Value - 1] == null)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2015-12-05 09:55:11 +01:00
|
|
|
|
EnableReadings(false);
|
2015-02-08 22:51:52 +01:00
|
|
|
|
lbInputDelay.Text = Properties.Resources.InputDelay.Replace("*number*", Properties.Resources.NA);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
lbInputDelay.BackColor = Color.Transparent;
|
|
|
|
|
lbInputDelay.ForeColor = Color.Black;
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-12-05 09:55:11 +01:00
|
|
|
|
EnableReadings(true);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisGyroX, (Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].GyroX + tBsixaxisGyroX.Value * 2) / 3);
|
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisGyroY, (Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].GyroY + tBsixaxisGyroY.Value * 2) / 3);
|
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisGyroZ, (Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].GyroZ + tBsixaxisGyroZ.Value * 2) / 3);
|
2015-12-13 22:30:54 +01:00
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisAccelX, (int)(Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].AccelX + tBsixaxisAccelX.Value * 2) / 3);
|
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisAccelY, (int)(Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].AccelY + tBsixaxisAccelY.Value * 2) / 3);
|
|
|
|
|
SetDynamicTrackBarValue(tBsixaxisAccelZ, (int)(Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].AccelZ + tBsixaxisAccelZ.Value * 2) / 3);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
int x = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).LX;
|
|
|
|
|
int y = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).LY;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
btnLSTrackS.Visible = nUDLSS.Value != 1;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
if (nUDLSCurve.Value > 0)
|
|
|
|
|
{
|
|
|
|
|
float max = x + y;
|
|
|
|
|
double curvex;
|
|
|
|
|
double curvey;
|
|
|
|
|
double multimax = TValue(382.5, max, (double)nUDLSCurve.Value);
|
|
|
|
|
double multimin = TValue(127.5, max, (double)nUDLSCurve.Value);
|
|
|
|
|
if ((x > 127.5f && y > 127.5f) || (x < 127.5f && y < 127.5f))
|
|
|
|
|
{
|
|
|
|
|
curvex = (x > 127.5f ? Math.Min(x, (x / max) * multimax) : Math.Max(x, (x / max) * multimin));
|
|
|
|
|
curvey = (y > 127.5f ? Math.Min(y, (y / max) * multimax) : Math.Max(y, (y / max) * multimin));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (x < 127.5f)
|
|
|
|
|
{
|
|
|
|
|
curvex = Math.Min(x, (x / max) * multimax);
|
|
|
|
|
curvey = Math.Min(y, (-(y / max) * multimax + 510));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
curvex = Math.Min(x, (-(x / max) * multimax + 510));
|
|
|
|
|
curvey = Math.Min(y, (y / max) * multimax);
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-05 09:55:11 +01:00
|
|
|
|
btnLSTrack.Location = new Point((int)(dpix * curvex / 2.09), (int)(dpiy * curvey / 2.09));
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
2015-12-05 09:55:11 +01:00
|
|
|
|
{
|
|
|
|
|
btnLSTrack.Location = new Point((int)(dpix * x / 2.09), (int)(dpiy * y / 2.09));
|
|
|
|
|
btnLSTrackS.Visible = nUDLSS.Value != 1;
|
|
|
|
|
}
|
|
|
|
|
if (nUDLSS.Value != 1)
|
|
|
|
|
btnLSTrackS.Location = new Point((int)((float)nUDLSS.Value * (btnLSTrack.Location.X - pnlLSTrack.Size.Width / 2f) + pnlLSTrack.Size.Width / 2f),
|
|
|
|
|
(int)((float)nUDLSS.Value * (btnLSTrack.Location.Y - pnlLSTrack.Size.Height / 2f) + pnlLSTrack.Size.Height / 2f));
|
|
|
|
|
|
2014-12-13 21:12:03 +01:00
|
|
|
|
x = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).RX;
|
|
|
|
|
y = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).RY;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
btnRSTrackS.Visible = nUDRSS.Value != 1;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
if (nUDRSCurve.Value > 0)
|
|
|
|
|
{
|
|
|
|
|
float max = x + y;
|
|
|
|
|
double curvex;
|
|
|
|
|
double curvey;
|
|
|
|
|
double multimax = TValue(382.5, max, (double)nUDRSCurve.Value);
|
|
|
|
|
double multimin = TValue(127.5, max, (double)nUDRSCurve.Value);
|
|
|
|
|
if ((x > 127.5f && y > 127.5f) || (x < 127.5f && y < 127.5f))
|
|
|
|
|
{
|
|
|
|
|
curvex = (x > 127.5f ? Math.Min(x, (x / max) * multimax) : Math.Max(x, (x / max) * multimin));
|
|
|
|
|
curvey = (y > 127.5f ? Math.Min(y, (y / max) * multimax) : Math.Max(y, (y / max) * multimin));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (x < 127.5f)
|
|
|
|
|
{
|
|
|
|
|
curvex = Math.Min(x, (x / max) * multimax);
|
|
|
|
|
curvey = Math.Min(y, (-(y / max) * multimax + 510));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
curvex = Math.Min(x, (-(x / max) * multimax + 510));
|
|
|
|
|
curvey = Math.Min(y, (y / max) * multimax);
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-05 09:55:11 +01:00
|
|
|
|
btnRSTrack.Location = new Point((int)(dpix * curvex / 2.09), (int)(dpiy * curvey / 2.09));
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
2015-12-05 09:55:11 +01:00
|
|
|
|
{
|
|
|
|
|
btnRSTrack.Location = new Point((int)(dpix * x / 2.09), (int)(dpiy * y / 2.09));
|
|
|
|
|
btnRSTrackS.Visible = nUDRSS.Value != 1;
|
|
|
|
|
}
|
|
|
|
|
if (nUDRSS.Value != 1)
|
|
|
|
|
btnRSTrackS.Location = new Point((int)((float)nUDRSS.Value * (btnRSTrack.Location.X - pnlRSTrack.Size.Width / 2f) + pnlRSTrack.Size.Width / 2f),
|
|
|
|
|
(int)((float)nUDRSS.Value * (btnRSTrack.Location.Y - pnlRSTrack.Size.Height / 2f) + pnlRSTrack.Size.Height / 2f));
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
x = -Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].GyroX + 127;
|
|
|
|
|
y = Program.rootHub.ExposedState[(int)nUDSixaxis.Value - 1].GyroZ + 127;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
btnSATrack.Location = new Point((int)(dpix * Clamp(0, x / 2.09, pnlSATrack.Size.Width)), (int)(dpiy * Clamp(0, y / 2.09, pnlSATrack.Size.Height)));
|
|
|
|
|
btnSATrackS.Visible = nUDSXS.Value != 1 || nUDSZS.Value != 1;
|
|
|
|
|
if (nUDSXS.Value != 1 || nUDSZS.Value != 1)
|
|
|
|
|
btnSATrackS.Location = new Point((int)((float)nUDSXS.Value * (btnSATrack.Location.X - pnlSATrack.Size.Width / 2f) + pnlSATrack.Size.Width / 2f),
|
|
|
|
|
(int)((float)nUDSZS.Value * (btnSATrack.Location.Y - pnlSATrack.Size.Height / 2f) + pnlSATrack.Size.Height / 2f));
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
tBL2.Value = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).L2;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
lbL2Track.Location = new Point(tBL2.Location.X - (int)(dpix * 25),
|
|
|
|
|
Math.Max((int)(((tBL2.Location.Y + tBL2.Size.Height) - (tBL2.Value * (float)nUDL2S.Value) / (tBL2.Size.Height * .0209f / Math.Pow(dpix, 2))) - dpix * 20),
|
|
|
|
|
(int)(1 * ((tBL2.Location.Y + tBL2.Size.Height) - 255 / (tBL2.Size.Height * .0209f / Math.Pow(dpix, 2))) - dpix * 20)));
|
|
|
|
|
if (tBL2.Value * (float)nUDL2S.Value >= 255)
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbL2Track.ForeColor = Color.Green;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
else if (tBL2.Value * (float)nUDL2S.Value < (double)nUDL2.Value * 255)
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbL2Track.ForeColor = Color.Red;
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
else
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbL2Track.ForeColor = Color.Black;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
tBR2.Value = Program.rootHub.getDS4State((int)nUDSixaxis.Value - 1).R2;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
lbR2Track.Location = new Point(tBR2.Location.X + (int)(dpix * 25),
|
|
|
|
|
Math.Max((int)(1 * ((tBR2.Location.Y + tBR2.Size.Height) - (tBR2.Value * (float)nUDR2S.Value) / (tBR2.Size.Height * .0209f / Math.Pow(dpix, 2))) - dpix * 20),
|
|
|
|
|
(int)(1 * ((tBR2.Location.Y + tBR2.Size.Height) - 255 / (tBR2.Size.Height * .0209f / Math.Pow(dpix, 2))) - dpix * 20)));
|
|
|
|
|
if (tBR2.Value * (float)nUDR2S.Value >= 255)
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbR2Track.ForeColor = Color.Green;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
else if (tBR2.Value * (float)nUDR2S.Value < (double)nUDR2.Value * 255)
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbR2Track.ForeColor = Color.Red;
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
else
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbR2Track.ForeColor = Color.Black;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
double latency = Program.rootHub.DS4Controllers[(int)nUDSixaxis.Value - 1].Latency;
|
2015-02-08 22:51:52 +01:00
|
|
|
|
lbInputDelay.Text = Properties.Resources.InputDelay.Replace("*number*", latency.ToString());
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
if (latency > 10)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
|
|
|
|
lbInputDelay.BackColor = Color.Red;
|
|
|
|
|
lbInputDelay.ForeColor = Color.White;
|
|
|
|
|
}
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
else if (latency > 5)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
|
|
|
|
lbInputDelay.BackColor = Color.Yellow;
|
|
|
|
|
lbInputDelay.ForeColor = Color.Black;
|
|
|
|
|
}
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
else
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
|
|
|
|
lbInputDelay.BackColor = Color.Transparent;
|
|
|
|
|
lbInputDelay.ForeColor = Color.Black;
|
|
|
|
|
}
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
2014-05-30 22:39:39 +02:00
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
double TValue(double value1, double value2, double percent)
|
|
|
|
|
{
|
|
|
|
|
percent /= 100f;
|
|
|
|
|
return value1 * percent + value2 * (1 - percent);
|
|
|
|
|
}
|
2014-05-19 07:55:12 +02:00
|
|
|
|
private void InputDS4(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (Form.ActiveForm == root && cBControllerInput.Checked && tCControls.SelectedIndex < 1)
|
2015-11-28 06:47:26 +01:00
|
|
|
|
switch (Program.rootHub.GetInputkeys((int)nUDSixaxis.Value - 1))
|
2014-05-19 07:55:12 +02:00
|
|
|
|
{
|
|
|
|
|
case ("Cross"): Show_ControlsBn(bnCross, e); break;
|
|
|
|
|
case ("Circle"): Show_ControlsBn(bnCircle, e); break;
|
|
|
|
|
case ("Square"): Show_ControlsBn(bnSquare, e); break;
|
|
|
|
|
case ("Triangle"): Show_ControlsBn(bnTriangle, e); break;
|
|
|
|
|
case ("Options"): Show_ControlsBn(bnOptions, e); break;
|
|
|
|
|
case ("Share"): Show_ControlsBn(bnShare, e); break;
|
|
|
|
|
case ("Up"): Show_ControlsBn(bnUp, e); break;
|
|
|
|
|
case ("Down"): Show_ControlsBn(bnDown, e); break;
|
|
|
|
|
case ("Left"): Show_ControlsBn(bnLeft, e); break;
|
|
|
|
|
case ("Right"): Show_ControlsBn(bnRight, e); break;
|
|
|
|
|
case ("PS"): Show_ControlsBn(bnPS, e); break;
|
|
|
|
|
case ("L1"): Show_ControlsBn(bnL1, e); break;
|
|
|
|
|
case ("R1"): Show_ControlsBn(bnR1, e); break;
|
|
|
|
|
case ("L2"): Show_ControlsBn(bnL2, e); break;
|
|
|
|
|
case ("R2"): Show_ControlsBn(bnR2, e); break;
|
|
|
|
|
case ("L3"): Show_ControlsBn(bnL3, e); break;
|
|
|
|
|
case ("R3"): Show_ControlsBn(bnR3, e); break;
|
|
|
|
|
case ("Touch Left"): Show_ControlsBn(bnTouchLeft, e); break;
|
|
|
|
|
case ("Touch Right"): Show_ControlsBn(bnTouchRight, e); break;
|
|
|
|
|
case ("Touch Multi"): Show_ControlsBn(bnTouchMulti, e); break;
|
|
|
|
|
case ("Touch Upper"): Show_ControlsBn(bnTouchUpper, e); break;
|
|
|
|
|
case ("LS Up"): Show_ControlsBn(bnLSUp, e); break;
|
|
|
|
|
case ("LS Down"): Show_ControlsBn(bnLSDown, e); break;
|
|
|
|
|
case ("LS Left"): Show_ControlsBn(bnLSLeft, e); break;
|
|
|
|
|
case ("LS Right"): Show_ControlsBn(bnLSRight, e); break;
|
|
|
|
|
case ("RS Up"): Show_ControlsBn(bnRSUp, e); break;
|
|
|
|
|
case ("RS Down"): Show_ControlsBn(bnRSDown, e); break;
|
|
|
|
|
case ("RS Left"): Show_ControlsBn(bnRSLeft, e); break;
|
|
|
|
|
case ("RS Right"): Show_ControlsBn(bnRSRight, e); break;
|
2014-06-24 00:27:14 +02:00
|
|
|
|
case ("GyroXP"): Show_ControlsBn(bnGyroXP, e); break;
|
|
|
|
|
case ("GyroXN"): Show_ControlsBn(bnGyroXN, e); break;
|
|
|
|
|
case ("GyroZP"): Show_ControlsBn(bnGyroZP, e); break;
|
|
|
|
|
case ("GyroZN"): Show_ControlsBn(bnGyroZN, e); break;
|
2014-05-19 07:55:12 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void button_MouseHoverB(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Control[] b = Controls.Find(((Button)sender).Name.Remove(1, 1), true);
|
|
|
|
|
if (b != null && b.Length == 1)
|
|
|
|
|
button_MouseHover(b[0], e);
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private string ShiftTrigger(int trigger)
|
|
|
|
|
{
|
|
|
|
|
switch (trigger)
|
|
|
|
|
{
|
|
|
|
|
case 1: return "Cross";
|
|
|
|
|
case 2: return "Circle";
|
|
|
|
|
case 3: return "Square";
|
|
|
|
|
case 4: return "Triangle";
|
|
|
|
|
case 5: return "Options";
|
|
|
|
|
case 6: return "Share";
|
|
|
|
|
case 7: return "Dpad Up";
|
|
|
|
|
case 8: return "Dpad Down";
|
|
|
|
|
case 9: return "Dpad Left";
|
|
|
|
|
case 10: return"Dpad Right";
|
|
|
|
|
case 11: return "PS";
|
|
|
|
|
case 12: return "L1";
|
|
|
|
|
case 13: return "R1";
|
|
|
|
|
case 14: return "L2";
|
|
|
|
|
case 15: return "R2";
|
|
|
|
|
case 16: return "L3";
|
|
|
|
|
case 17: return "R3";
|
|
|
|
|
case 18: return "Left Touch";
|
|
|
|
|
case 19: return "Upper Touch";
|
|
|
|
|
case 20: return "Multi Touch";
|
|
|
|
|
case 21: return "Right Touch";
|
|
|
|
|
case 22: return Properties.Resources.TiltUp;
|
|
|
|
|
case 23: return Properties.Resources.TiltDown;
|
|
|
|
|
case 24: return Properties.Resources.TiltLeft;
|
|
|
|
|
case 25: return Properties.Resources.TiltRight;
|
|
|
|
|
case 26: return fingerOnTouchpadToolStripMenuItem.Text;
|
|
|
|
|
default: return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-14 09:12:15 +02:00
|
|
|
|
private void button_MouseHover(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
bool swipesOn = lBControls.Items.Count > 33;
|
|
|
|
|
string name = ((Button)sender).Name;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (e != null)
|
2014-05-14 09:12:15 +02:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
switch (name)
|
|
|
|
|
{
|
2015-11-30 22:15:17 +01:00
|
|
|
|
#region
|
|
|
|
|
case "bnCross": lBControls.SelectedIndex = 0; break;
|
|
|
|
|
case "bnCircle": lBControls.SelectedIndex = 1; break;
|
|
|
|
|
case "bnSquare": lBControls.SelectedIndex = 2; break;
|
|
|
|
|
case "bnTriangle": lBControls.SelectedIndex = 3; break;
|
|
|
|
|
case "bnOptions": lBControls.SelectedIndex = 4; break;
|
|
|
|
|
case "bnShare": lBControls.SelectedIndex = 5; break;
|
|
|
|
|
case "bnUp": lBControls.SelectedIndex = 6; break;
|
|
|
|
|
case "bnDown": lBControls.SelectedIndex = 7; break;
|
|
|
|
|
case "bnLeft": lBControls.SelectedIndex = 8; break;
|
|
|
|
|
case "bnRight": lBControls.SelectedIndex = 9; break;
|
|
|
|
|
case "bnPS": lBControls.SelectedIndex = 10; break;
|
|
|
|
|
case "bnL1": lBControls.SelectedIndex = 11; break;
|
|
|
|
|
case "bnR1": lBControls.SelectedIndex = 12; break;
|
|
|
|
|
case "bnL2": lBControls.SelectedIndex = 13; break;
|
|
|
|
|
case "bnR2": lBControls.SelectedIndex = 14; break;
|
|
|
|
|
case "bnL3": lBControls.SelectedIndex = 15; break;
|
|
|
|
|
case "bnR3": lBControls.SelectedIndex = 16; break;
|
|
|
|
|
case "bnTouchLeft": lBControls.SelectedIndex = 17; break;
|
|
|
|
|
case "bnTouchRight": lBControls.SelectedIndex = 18; break;
|
|
|
|
|
case "bnTouchMulti": lBControls.SelectedIndex = 19; break;
|
|
|
|
|
case "bnTouchUpper": lBControls.SelectedIndex = 20; break;
|
|
|
|
|
case "bnLSUp": lBControls.SelectedIndex = 21; break;
|
|
|
|
|
case "bnLSDown": lBControls.SelectedIndex = 22; break;
|
|
|
|
|
case "bnLSLeft": lBControls.SelectedIndex = 23; break;
|
|
|
|
|
case "bnLSRight": lBControls.SelectedIndex = 24; break;
|
|
|
|
|
case "bnRSUp": lBControls.SelectedIndex = 25; break;
|
|
|
|
|
case "bnRSDown": lBControls.SelectedIndex = 26; break;
|
|
|
|
|
case "bnRSLeft": lBControls.SelectedIndex = 27; break;
|
|
|
|
|
case "bnRSRight": lBControls.SelectedIndex = 28; break;
|
|
|
|
|
case "bnGyroZN": lBControls.SelectedIndex = 29; break;
|
|
|
|
|
case "bnGyroZP": lBControls.SelectedIndex = 30; break;
|
|
|
|
|
case "bnGyroXP": lBControls.SelectedIndex = 31; break;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
case "bnGyroXN": lBControls.SelectedIndex = 32; break;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
#endregion
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (swipesOn)
|
|
|
|
|
switch (name)
|
|
|
|
|
{
|
|
|
|
|
case "bnSwipeUp": if (swipesOn) lBControls.SelectedIndex = 33; break;
|
|
|
|
|
case "bnSwipeDown": if (swipesOn) lBControls.SelectedIndex = 34; break;
|
|
|
|
|
case "bnSwipeLeft": if (swipesOn) lBControls.SelectedIndex = 35; break;
|
|
|
|
|
case "bnSwipeRight": if (swipesOn) lBControls.SelectedIndex = 36; break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
DS4ControlSettings dcs = getDS4CSetting(device, name);
|
|
|
|
|
if (lBControls.SelectedIndex >= 0)
|
|
|
|
|
{
|
|
|
|
|
string tipText = lBControls.SelectedItem.ToString().Split(':')[0];
|
|
|
|
|
tipText += ": ";
|
|
|
|
|
tipText += UpdateButtonList(((Button)sender));
|
|
|
|
|
if (GetDS4Action(device, name, true) != null && GetDS4STrigger(device, name) > 0)
|
|
|
|
|
{
|
|
|
|
|
tipText += "\n Shift: ";
|
|
|
|
|
tipText += ShiftTrigger(GetDS4STrigger(device, name)) + " -> " + UpdateButtonList(((Button)sender), true);
|
|
|
|
|
}
|
|
|
|
|
lbControlName.Text = tipText;
|
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
switch (name)
|
|
|
|
|
{
|
|
|
|
|
#region
|
|
|
|
|
case "bnCross":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Cross;
|
|
|
|
|
pBHoveredButton.Location = lbLCross.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnCircle":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Circle;
|
|
|
|
|
pBHoveredButton.Location = lbLCircle.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnSquare":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Square;
|
|
|
|
|
pBHoveredButton.Location = lbLSquare.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnTriangle":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Triangle;
|
|
|
|
|
pBHoveredButton.Location = lbLTriangle.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnOptions":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Options;
|
|
|
|
|
pBHoveredButton.Location = lbLOptions.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnShare":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Share;
|
|
|
|
|
pBHoveredButton.Location = lbLShare.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnUp":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Up;
|
|
|
|
|
pBHoveredButton.Location = lbLUp.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnDown":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Down;
|
|
|
|
|
pBHoveredButton.Location = lbLDown.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnLeft":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Left;
|
|
|
|
|
pBHoveredButton.Location = lbLLeft.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnRight":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_Right;
|
|
|
|
|
pBHoveredButton.Location = lbLright.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnPS":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_PS;
|
|
|
|
|
pBHoveredButton.Location = lbLPS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnL1":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_L1;
|
|
|
|
|
pBHoveredButton.Location = lbLL1.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnR1":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_R1;
|
|
|
|
|
pBHoveredButton.Location = lbLR1.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnL2":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_L2;
|
|
|
|
|
pBHoveredButton.Location = lbLL2.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnR2":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_R2;
|
|
|
|
|
pBHoveredButton.Location = lbLR2.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnTouchLeft":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_TouchLeft;
|
|
|
|
|
pBHoveredButton.Location = lbLTouchLM.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnTouchRight":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_TouchRight;
|
|
|
|
|
pBHoveredButton.Location = lbLTouchRight.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnTouchMulti":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_TouchMulti;
|
|
|
|
|
pBHoveredButton.Location = lbLTouchLM.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnTouchUpper":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_TouchUpper;
|
|
|
|
|
pBHoveredButton.Location = lbLTouchUpper.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnL3":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_LS;
|
|
|
|
|
pBHoveredButton.Location = lbLLS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnLSUp":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_LS;
|
|
|
|
|
pBHoveredButton.Location = lbLLS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnLSDown":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_LS;
|
|
|
|
|
pBHoveredButton.Location = lbLLS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnLSLeft":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_LS;
|
|
|
|
|
pBHoveredButton.Location = lbLLS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnLSRight":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_LS;
|
|
|
|
|
pBHoveredButton.Location = lbLLS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnR3":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_RS;
|
|
|
|
|
pBHoveredButton.Location = lbLRS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnRSUp":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_RS;
|
|
|
|
|
pBHoveredButton.Location = lbLRS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnRSDown":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_RS;
|
|
|
|
|
pBHoveredButton.Location = lbLRS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnRSLeft":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_RS;
|
|
|
|
|
pBHoveredButton.Location = lbLRS.Location;
|
|
|
|
|
break;
|
|
|
|
|
case "bnRSRight":
|
|
|
|
|
pBHoveredButton.Image = Properties.Resources.DS4_Config_RS;
|
|
|
|
|
pBHoveredButton.Location = lbLRS.Location;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
break;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
if (pBHoveredButton.Image != null)
|
|
|
|
|
pBHoveredButton.Size = new Size((int)(pBHoveredButton.Image.Size.Width * (dpix / 1.25f)), (int)(pBHoveredButton.Image.Size.Height * (dpix / 1.25f)));
|
2014-05-14 09:12:15 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
|
|
|
|
|
private void button_MouseLeave(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
pBHoveredButton.Image = null;
|
|
|
|
|
pBHoveredButton.Location = new Point(0, 0);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
pBHoveredButton.Size = new Size(0, 0);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-28 02:50:40 +01:00
|
|
|
|
private void SetDynamicTrackBarValue(TrackBar trackBar, int value)
|
|
|
|
|
{
|
|
|
|
|
if (trackBar.Maximum < value)
|
|
|
|
|
trackBar.Maximum = value;
|
|
|
|
|
else if (trackBar.Minimum > value)
|
|
|
|
|
trackBar.Minimum = value;
|
|
|
|
|
trackBar.Value = value;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-02 19:29:38 +02:00
|
|
|
|
public void Set()
|
2014-05-12 07:48:50 +02:00
|
|
|
|
{
|
2014-11-01 22:49:22 +01:00
|
|
|
|
pnlLowBattery.Visible = cBLightbyBattery.Checked;
|
2014-08-17 00:09:15 +02:00
|
|
|
|
lbFull.Text = (cBLightbyBattery.Checked ? Properties.Resources.Full + ":": Properties.Resources.Color + ":");
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
MainColor[device] = new DS4Color((byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value);
|
|
|
|
|
LowColor[device] = new DS4Color((byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value);
|
|
|
|
|
ChargingColor[device] = new DS4Color(btnChargingColor.BackColor);
|
|
|
|
|
FlashType[device] = (byte)cBFlashType.SelectedIndex;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (btnFlashColor.BackColor != main)
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlashColor[device] = new DS4Color(btnFlashColor.BackColor);
|
2015-02-08 22:51:52 +01:00
|
|
|
|
else
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlashColor[device] = new DS4Color(Color.Black);
|
|
|
|
|
L2Deadzone[device] = (byte)Math.Round((nUDL2.Value * 255), 0);
|
|
|
|
|
R2Deadzone[device] = (byte)Math.Round((nUDR2.Value * 255), 0);
|
|
|
|
|
RumbleBoost[device] = (byte)nUDRumbleBoost.Value;
|
|
|
|
|
TouchSensitivity[device] = (byte)nUDTouch.Value;
|
|
|
|
|
TouchpadJitterCompensation[device] = cBTouchpadJitterCompensation.Checked;
|
|
|
|
|
LowerRCOn[device] = cBlowerRCOn.Checked;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
ScrollSensitivity[device] = (int)nUDScroll.Value;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
DoubleTap[device] = cBDoubleTap.Checked;
|
|
|
|
|
TapSensitivity[device] = (byte)nUDTap.Value;
|
|
|
|
|
IdleDisconnectTimeout[device] = (int)(nUDIdleDisconnect.Value * 60);
|
|
|
|
|
Rainbow[device] = (int)nUDRainbow.Value;
|
|
|
|
|
RSDeadzone[device] = (int)Math.Round((nUDRS.Value * 127), 0);
|
|
|
|
|
LSDeadzone[device] = (int)Math.Round((nUDLS.Value * 127), 0);
|
|
|
|
|
ButtonMouseSensitivity[device] = (int)numUDMouseSens.Value;
|
|
|
|
|
FlashAt[device] = (int)nUDflashLED.Value;
|
|
|
|
|
SXDeadzone[device] = (double)nUDSX.Value;
|
|
|
|
|
SZDeadzone[device] = (double)nUDSZ.Value;
|
|
|
|
|
MouseAccel[device] = cBMouseAccel.Checked;
|
|
|
|
|
DinputOnly[device] = cBDinput.Checked;
|
|
|
|
|
StartTouchpadOff[device] = cbStartTouchpadOff.Checked;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
UseTPforControls[device] = rBTPControls.Checked;
|
|
|
|
|
UseSAforMouse[device] = rBSAMouse.Checked;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
DS4Mapping = cBControllerInput.Checked;
|
|
|
|
|
LSCurve[device] = (int)Math.Round(nUDLSCurve.Value, 0);
|
|
|
|
|
RSCurve[device] = (int)Math.Round(nUDRSCurve.Value, 0);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
List<string> pactions = new List<string>();
|
|
|
|
|
foreach (ListViewItem lvi in lVActions.Items)
|
|
|
|
|
if (lvi.Checked)
|
|
|
|
|
pactions.Add(lvi.Text);
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ProfileActions[device] = pactions;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
pnlTPMouse.Visible = rBTPMouse.Checked;
|
|
|
|
|
pnlSAMouse.Visible = rBSAMouse.Checked;
|
|
|
|
|
fLPTiltControls.Visible = rBSAControls.Checked;
|
|
|
|
|
fLPTouchSwipe.Visible = rBTPControls.Checked;
|
|
|
|
|
|
|
|
|
|
GyroSensitivity[device] = (int)Math.Round(nUDGyroSensitivity.Value, 0);
|
|
|
|
|
int invert = 0;
|
|
|
|
|
if (cBGyroInvertX.Checked)
|
|
|
|
|
invert += 2;
|
|
|
|
|
if (cBGyroInvertY.Checked)
|
|
|
|
|
invert += 1;
|
|
|
|
|
GyroInvert[device] = invert;
|
|
|
|
|
|
|
|
|
|
List<int> ints = new List<int>();
|
2015-12-13 22:30:54 +01:00
|
|
|
|
for (int i = 0; i < cMGyroTriggers.Items.Count - 1; i++)
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (((ToolStripMenuItem)cMGyroTriggers.Items[i]).Checked)
|
|
|
|
|
ints.Add(i);
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (ints.Count == 0)
|
|
|
|
|
ints.Add(-1);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
SATriggers[device] = string.Join(",", ints);
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (nUDRainbow.Value == 0) btnRainbow.Image = greyscale;
|
|
|
|
|
else btnRainbow.Image = colored;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void Show_ControlsBtn(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Control[] b = Controls.Find(((Button)sender).Name.Remove(1, 1), true);
|
|
|
|
|
if (b != null && b.Length == 1)
|
|
|
|
|
Show_ControlsBn(b[0], e);
|
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
|
|
|
|
|
private void Show_ControlsBn(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
KBM360 kbm360 = new KBM360(device, this, (Button)sender);
|
|
|
|
|
kbm360.Icon = Icon;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
kbm360.ShowDialog();
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
public void ChangeButtonText(Control ctrl, bool shift, KeyValuePair<object, string> tag, bool SC, bool TG, bool MC, bool MR, int sTrigger = 0)
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
DS4KeyType kt = DS4KeyType.None;
|
|
|
|
|
if (SC) kt |= DS4KeyType.ScanCode;
|
|
|
|
|
if (TG) kt |= DS4KeyType.Toggle;
|
|
|
|
|
if (MC) kt |= DS4KeyType.Macro;
|
|
|
|
|
if (MR) kt |= DS4KeyType.RepeatMacro;
|
|
|
|
|
UpdateDS4CSetting(device, ctrl.Name, shift, tag.Key, tag.Value, kt, sTrigger);
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
|
|
|
|
public void ChangeButtonText(KeyValuePair<object, string> tag, Control ctrl, bool SC)
|
|
|
|
|
{
|
|
|
|
|
if (ctrl is Button)
|
|
|
|
|
{
|
|
|
|
|
DS4KeyType kt = DS4KeyType.None;
|
|
|
|
|
if (SC) kt |= DS4KeyType.ScanCode;
|
|
|
|
|
UpdateDS4CSetting(device, ctrl.Name, false, tag.Key, tag.Value, kt);
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
/*public void Toggle_Bn(bool SC, bool TG, bool MC, bool MR)
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (lastSelected.Tag is KeyValuePair<int, string> || lastSelected.Tag is KeyValuePair<UInt16, string> || lastSelected.Tag is KeyValuePair<int[], string>)
|
2014-06-14 21:14:27 +02:00
|
|
|
|
lastSelected.Font = new Font(lastSelected.Font,
|
|
|
|
|
(SC ? FontStyle.Bold : FontStyle.Regular) | (TG ? FontStyle.Italic : FontStyle.Regular) |
|
|
|
|
|
(MC ? FontStyle.Underline : FontStyle.Regular) | (MR ? FontStyle.Strikeout : FontStyle.Regular));
|
2014-12-02 01:07:29 +01:00
|
|
|
|
else if (lastSelected.Tag is KeyValuePair<string, string>)
|
2014-05-28 04:49:58 +02:00
|
|
|
|
if (lastSelected.Tag.ToString().Contains("Mouse Button"))
|
|
|
|
|
lastSelected.Font = new Font(lastSelected.Font, TG ? FontStyle.Italic : FontStyle.Regular);
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else
|
|
|
|
|
lastSelected.Font = new Font(lastSelected.Font, FontStyle.Regular);
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-12-17 19:29:22 +01:00
|
|
|
|
public void Toggle_Bn(bool SC, bool TG, bool MC, bool MR, System.Windows.Forms.Control ctrl)
|
|
|
|
|
{
|
|
|
|
|
if (ctrl is Button)
|
|
|
|
|
{
|
|
|
|
|
Button btn = (Button)ctrl;
|
|
|
|
|
if (btn.Tag is KeyValuePair<int, string> || btn.Tag is KeyValuePair<UInt16, string> || btn.Tag is KeyValuePair<int[], string>)
|
|
|
|
|
btn.Font = new Font(btn.Font,
|
|
|
|
|
(SC ? FontStyle.Bold : FontStyle.Regular) | (TG ? FontStyle.Italic : FontStyle.Regular) |
|
|
|
|
|
(MC ? FontStyle.Underline : FontStyle.Regular) | (MR ? FontStyle.Strikeout : FontStyle.Regular));
|
|
|
|
|
else if (btn.Tag is KeyValuePair<string, string>)
|
|
|
|
|
if (btn.Tag.ToString().Contains("Mouse Button"))
|
|
|
|
|
btn.Font = new Font(btn.Font, TG ? FontStyle.Italic : FontStyle.Regular);
|
|
|
|
|
else
|
|
|
|
|
btn.Font = new Font(btn.Font, FontStyle.Regular);
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}*/
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void btnLightbar_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-10-21 04:31:13 +02:00
|
|
|
|
advColorDialog.Color = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
advColorDialog_OnUpdateColor(main, e);
|
2014-05-12 07:48:50 +02:00
|
|
|
|
if (advColorDialog.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
main = advColorDialog.Color;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnLightbar.BackgroundImage = RecolorImage((Bitmap)btnLightbar.BackgroundImage, main);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (FlashColor[device].Equals(new DS4Color { red = 0, green = 0, blue = 0 }))
|
|
|
|
|
btnFlashColor.BackColor = main;
|
|
|
|
|
btnFlashColor.BackgroundImage = nUDRainbow.Enabled ? rainbowImg : null;
|
2014-10-21 04:31:13 +02:00
|
|
|
|
tBRedBar.Value = advColorDialog.Color.R;
|
|
|
|
|
tBGreenBar.Value = advColorDialog.Color.G;
|
|
|
|
|
tBBlueBar.Value = advColorDialog.Color.B;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (device < 4)
|
2015-02-08 22:51:52 +01:00
|
|
|
|
DS4LightBar.forcelight[device] = false;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-05-12 07:48:50 +02:00
|
|
|
|
private void lowColorChooserButton_Click(object sender, EventArgs e)
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
2014-05-12 07:48:50 +02:00
|
|
|
|
advColorDialog.Color = lowColorChooserButton.BackColor;
|
|
|
|
|
advColorDialog_OnUpdateColor(lowColorChooserButton.BackColor, e);
|
|
|
|
|
if (advColorDialog.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
lowColorChooserButton.BackColor = advColorDialog.Color;
|
2014-10-21 04:31:13 +02:00
|
|
|
|
tBLowRedBar.Value = advColorDialog.Color.R;
|
|
|
|
|
tBLowGreenBar.Value = advColorDialog.Color.G;
|
|
|
|
|
tBLowBlueBar.Value = advColorDialog.Color.B;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (device < 4)
|
2015-02-08 22:51:52 +01:00
|
|
|
|
DS4LightBar.forcelight[device] = false;
|
2014-06-02 19:29:38 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void btnChargingColor_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
advColorDialog.Color = btnChargingColor.BackColor;
|
|
|
|
|
advColorDialog_OnUpdateColor(btnChargingColor.BackColor, e);
|
|
|
|
|
if (advColorDialog.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
btnChargingColor.BackColor = advColorDialog.Color;
|
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (device < 4)
|
2015-02-10 22:45:56 +01:00
|
|
|
|
DS4LightBar.forcelight[device] = false;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ChargingColor[device] = new DS4Color(btnChargingColor.BackColor);
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
2014-05-12 07:48:50 +02:00
|
|
|
|
private void advColorDialog_OnUpdateColor(object sender, EventArgs e)
|
2014-04-30 21:32:44 +02:00
|
|
|
|
{
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (sender is Color && device < 4)
|
2014-05-12 07:48:50 +02:00
|
|
|
|
{
|
|
|
|
|
Color color = (Color)sender;
|
2015-02-08 22:51:52 +01:00
|
|
|
|
DS4Color dcolor = new DS4Color { red = color.R, green = color.G, blue = color.B };
|
|
|
|
|
DS4LightBar.forcedColor[device] = dcolor;
|
|
|
|
|
DS4LightBar.forcedFlash[device] = 0;
|
|
|
|
|
DS4LightBar.forcelight[device] = true;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void SetColorToolTip(TrackBar tb, int type)
|
2014-04-30 21:32:44 +02:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (tb != null)
|
|
|
|
|
{
|
|
|
|
|
int value = tb.Value;
|
|
|
|
|
int sat = bgc - (value < bgc ? value : bgc);
|
|
|
|
|
int som = bgc + 11 * (int)(value * 0.0039215);
|
|
|
|
|
tb.BackColor = Color.FromArgb(tb.Name.ToLower().Contains("red") ? som : sat, tb.Name.ToLower().Contains("green") ? som : sat, tb.Name.ToLower().Contains("blue") ? som : sat);
|
|
|
|
|
}
|
|
|
|
|
if (type == 0) //main
|
|
|
|
|
{
|
|
|
|
|
alphacolor = Math.Max(tBRedBar.Value, Math.Max(tBGreenBar.Value, tBBlueBar.Value));
|
|
|
|
|
reg = Color.FromArgb(tBRedBar.Value, tBGreenBar.Value, tBBlueBar.Value);
|
|
|
|
|
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
|
|
|
|
|
main = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnLightbar.BackgroundImage = RecolorImage((Bitmap)btnLightbar.BackgroundImage, main);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (FlashColor[device].Equals(new DS4Color { red = 0, green = 0, blue = 0 }))
|
|
|
|
|
btnFlashColor.BackColor = main;
|
|
|
|
|
btnFlashColor.BackgroundImage = nUDRainbow.Enabled ? rainbowImg : null;
|
|
|
|
|
MainColor[device] = new DS4Color((byte)tBRedBar.Value, (byte)tBGreenBar.Value, (byte)tBBlueBar.Value);
|
|
|
|
|
}
|
|
|
|
|
else if (type == 1)
|
|
|
|
|
{
|
|
|
|
|
alphacolor = Math.Max(tBLowRedBar.Value, Math.Max(tBLowGreenBar.Value, tBLowBlueBar.Value));
|
|
|
|
|
reg = Color.FromArgb(tBLowRedBar.Value, tBLowGreenBar.Value, tBLowBlueBar.Value);
|
|
|
|
|
full = HuetoRGB(reg.GetHue(), reg.GetBrightness(), reg);
|
|
|
|
|
lowColorChooserButton.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
|
|
|
|
|
LowColor[device] = new DS4Color((byte)tBLowRedBar.Value, (byte)tBLowGreenBar.Value, (byte)tBLowBlueBar.Value);
|
|
|
|
|
}
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (!saving && !loading && tb != null)
|
2015-11-28 06:47:26 +01:00
|
|
|
|
tp.Show(tb.Value.ToString(), tb, (int)(dpix * 100), 0, 2000);
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
int bgc = 245; //Color of the form background, If greyscale color
|
|
|
|
|
private void MainBar_ValueChanged(object sender, EventArgs e)
|
2014-04-30 21:32:44 +02:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
SetColorToolTip((TrackBar)sender, 0);
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void LowBar_ValueChanged(object sender, EventArgs e)
|
2014-07-26 01:17:45 +02:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
SetColorToolTip((TrackBar)sender, 1);
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-05-12 07:48:50 +02:00
|
|
|
|
public Color HuetoRGB(float hue, float light, Color rgb)
|
|
|
|
|
{
|
|
|
|
|
float L = (float)Math.Max(.5, light);
|
|
|
|
|
float C = (1 - Math.Abs(2 * L - 1));
|
|
|
|
|
float X = (C * (1 - Math.Abs((hue / 60) % 2 - 1)));
|
|
|
|
|
float m = L - C / 2;
|
|
|
|
|
float R =0, G=0, B=0;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
if (light == 1) return Color.White;
|
|
|
|
|
else if (rgb.R == rgb.G && rgb.G == rgb.B) return Color.White;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
else if (0 <= hue && hue < 60) { R = C; G = X; }
|
|
|
|
|
else if (60 <= hue && hue < 120) { R = X; G = C; }
|
|
|
|
|
else if (120 <= hue && hue < 180) { G = C; B = X; }
|
|
|
|
|
else if (180 <= hue && hue < 240) { G = X; B = C; }
|
|
|
|
|
else if (240 <= hue && hue < 300) { R = X; B = C; }
|
|
|
|
|
else if (300 <= hue && hue < 360) { R = C; B = X; }
|
|
|
|
|
return Color.FromArgb((int)((R + m) * 255), (int)((G + m) * 255), (int)((B + m) * 255));
|
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
private void rumbleBoostBar_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
RumbleBoost[device] = (byte)nUDRumbleBoost.Value;
|
2014-11-18 22:23:41 +01:00
|
|
|
|
byte h = (byte)Math.Min(255, (255 * nUDRumbleBoost.Value / 100));
|
|
|
|
|
byte l = (byte)Math.Min(255, (255 * nUDRumbleBoost.Value / 100));
|
|
|
|
|
bool hB = btnRumbleHeavyTest.Text == Properties.Resources.TestLText;
|
|
|
|
|
bool lB = btnRumbleLightTest.Text == Properties.Resources.TestLText;
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble((byte)(hB ? h : 0), (byte)(lB ? l : 0), device);
|
2014-05-05 09:42:05 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
|
2014-11-18 22:23:41 +01:00
|
|
|
|
private void btnRumbleHeavyTest_Click(object sender, EventArgs e)
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
DS4Device d = Program.rootHub.DS4Controllers[(int)nUDSixaxis.Value - 1];
|
2015-02-08 22:51:52 +01:00
|
|
|
|
if (d != null)
|
|
|
|
|
if (((Button)sender).Text == Properties.Resources.TestHText)
|
|
|
|
|
{
|
|
|
|
|
Program.rootHub.setRumble((byte)Math.Min(255, (255 * nUDRumbleBoost.Value / 100)), d.RightLightFastRumble, (int)nUDSixaxis.Value - 1);
|
|
|
|
|
((Button)sender).Text = Properties.Resources.StopHText;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Program.rootHub.setRumble(0, d.RightLightFastRumble, (int)nUDSixaxis.Value - 1);
|
|
|
|
|
((Button)sender).Text = Properties.Resources.TestHText;
|
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-11-18 22:23:41 +01:00
|
|
|
|
private void btnRumbleLightTest_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
DS4Device d = Program.rootHub.DS4Controllers[(int)nUDSixaxis.Value - 1];
|
2015-02-08 22:51:52 +01:00
|
|
|
|
if (d != null)
|
|
|
|
|
if (((Button)sender).Text == Properties.Resources.TestLText)
|
|
|
|
|
{
|
|
|
|
|
Program.rootHub.setRumble(d.LeftHeavySlowRumble, (byte)Math.Min(255, (255 * nUDRumbleBoost.Value / 100)), (int)nUDSixaxis.Value - 1);
|
|
|
|
|
((Button)sender).Text = Properties.Resources.StopLText;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Program.rootHub.setRumble(d.LeftHeavySlowRumble, 0, (int)nUDSixaxis.Value - 1);
|
|
|
|
|
((Button)sender).Text = Properties.Resources.TestLText;
|
|
|
|
|
}
|
2014-11-18 22:23:41 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void numUDTouch_ValueChanged(object sender, EventArgs e)
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
TouchSensitivity[device] = (byte)nUDTouch.Value;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void numUDTap_ValueChanged(object sender, EventArgs e)
|
2014-03-28 02:50:40 +01:00
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
TapSensitivity[device] = (byte)nUDTap.Value;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void numUDScroll_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ScrollSensitivity[device] = (int)nUDScroll.Value;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
private void ledAsBatteryIndicator_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LedAsBatteryIndicator[device] = cBLightbyBattery.Checked;
|
2014-11-01 22:49:22 +01:00
|
|
|
|
pnlLowBattery.Visible = cBLightbyBattery.Checked;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
//pnlFull.Location = new Point(pnlFull.Location.X, (cBLightbyBattery.Checked ? (int)(dpix * 42) : (pnlFull.Location.Y + pnlLowBattery.Location.Y) / 2));
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
lbFull.Text = (cBLightbyBattery.Checked ? Properties.Resources.Full + ":" : Properties.Resources.Color + ":");
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
2014-05-24 04:30:43 +02:00
|
|
|
|
|
2014-03-28 02:50:40 +01:00
|
|
|
|
private void lowerRCOffCheckBox_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LowerRCOn[device] = cBlowerRCOn.Checked;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void touchpadJitterCompensation_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
TouchpadJitterCompensation[device] = cBTouchpadJitterCompensation.Checked;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
2014-05-12 07:48:50 +02:00
|
|
|
|
|
2014-03-28 02:50:40 +01:00
|
|
|
|
private void flushHIDQueue_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlushHIDQueue[device] = cBFlushHIDQueue.Checked;
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-09 01:41:36 +02:00
|
|
|
|
private void nUDIdleDisconnect_ValueChanged(object sender, EventArgs e)
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
IdleDisconnectTimeout[device] = (int)(nUDIdleDisconnect.Value * 60);
|
2014-06-09 01:41:36 +02:00
|
|
|
|
//if (nUDIdleDisconnect.Value == 0)
|
|
|
|
|
//cBIdleDisconnect.Checked = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cBIdleDisconnect_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (cBIdleDisconnect.Checked)
|
|
|
|
|
nUDIdleDisconnect.Value = 5;
|
|
|
|
|
else
|
|
|
|
|
nUDIdleDisconnect.Value = 0;
|
|
|
|
|
nUDIdleDisconnect.Enabled = cBIdleDisconnect.Checked;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
private void Options_FormClosing(object sender, FormClosingEventArgs e)
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
2014-04-30 05:54:41 +02:00
|
|
|
|
for (int i = 0; i < 4; i++)
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LoadProfile(i, false, Program.rootHub); //Refreshes all profiles in case other controllers are using the same profile
|
2014-08-23 22:52:20 +02:00
|
|
|
|
if (olddinputcheck != cBDinput.Checked)
|
|
|
|
|
{
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
}
|
2014-11-18 22:23:41 +01:00
|
|
|
|
if (btnRumbleHeavyTest.Text == Properties.Resources.StopText)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble(0, 0, (int)nUDSixaxis.Value - 1);
|
2014-05-30 22:39:39 +02:00
|
|
|
|
inputtimer.Stop();
|
|
|
|
|
sixaxisTimer.Stop();
|
2015-11-30 22:15:17 +01:00
|
|
|
|
root.OptionsClosed();
|
|
|
|
|
Visible = false;
|
|
|
|
|
e.Cancel = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Options_Closed(object sender, FormClosedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
/*for (int i = 0; i < 4; i++)
|
|
|
|
|
LoadProfile(i, false, Program.rootHub); //Refreshes all profiles in case other controllers are using the same profile
|
|
|
|
|
if (olddinputcheck != cBDinput.Checked)
|
|
|
|
|
{
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
}
|
|
|
|
|
if (btnRumbleHeavyTest.Text == Properties.Resources.StopText)
|
|
|
|
|
Program.rootHub.setRumble(0, 0, (int)nUDSixaxis.Value - 1);
|
|
|
|
|
inputtimer.Stop();
|
|
|
|
|
sixaxisTimer.Stop();*/
|
|
|
|
|
//e.c
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-05-12 07:48:50 +02:00
|
|
|
|
private void cBSlide_CheckedChanged(object sender, EventArgs e)
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
|
|
|
|
if (cBSlide.Checked)
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDTouch.Value = 100;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDTouch.Value = 0;
|
|
|
|
|
nUDTouch.Enabled = cBSlide.Checked;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cBScroll_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (cBScroll.Checked)
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDScroll.Value = 5;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDScroll.Value = 0;
|
|
|
|
|
nUDScroll.Enabled = cBScroll.Checked;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cBTap_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (cBTap.Checked)
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDTap.Value = 100;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDTap.Value = 0;
|
|
|
|
|
nUDTap.Enabled = cBTap.Checked;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
cBDoubleTap.Enabled = cBTap.Checked;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-29 03:14:01 +02:00
|
|
|
|
private void cBDoubleTap_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
DoubleTap[device] = cBDoubleTap.Checked;
|
2014-04-29 03:14:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
public void UpdateLists()
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
lBControls.Items[0] = "Cross : " + UpdateButtonList(bnCross);
|
|
|
|
|
lBControls.Items[1] = "Circle : " + UpdateButtonList(bnCircle);
|
|
|
|
|
lBControls.Items[2] = "Square : " + UpdateButtonList(bnSquare);
|
|
|
|
|
lBControls.Items[3] = "Triangle : " + UpdateButtonList(bnTriangle);
|
|
|
|
|
lBControls.Items[4] = "Options : " + UpdateButtonList(bnOptions);
|
|
|
|
|
lBControls.Items[5] = "Share : " + UpdateButtonList(bnShare);
|
|
|
|
|
lBControls.Items[6] = "Up : " + UpdateButtonList(bnUp);
|
|
|
|
|
lBControls.Items[7] = "Down : " + UpdateButtonList(bnDown);
|
|
|
|
|
lBControls.Items[8] = "Left : " + UpdateButtonList(bnLeft);
|
|
|
|
|
lBControls.Items[9] = "Right : " + UpdateButtonList(bnRight);
|
|
|
|
|
lBControls.Items[10] = "PS : " + UpdateButtonList(bnPS);
|
|
|
|
|
lBControls.Items[11] = "L1 : " + UpdateButtonList(bnL1);
|
|
|
|
|
lBControls.Items[12] = "R1 : " + UpdateButtonList(bnR1);
|
|
|
|
|
lBControls.Items[13] = "L2 : " + UpdateButtonList(bnL2);
|
|
|
|
|
lBControls.Items[14] = "R2 : " + UpdateButtonList(bnR2);
|
|
|
|
|
lBControls.Items[15] = "L3 : " + UpdateButtonList(bnL3);
|
|
|
|
|
lBControls.Items[16] = "R3 : " + UpdateButtonList(bnR3);
|
|
|
|
|
lBControls.Items[17] = "Left Touch : " + UpdateButtonList(bnTouchLeft);
|
|
|
|
|
lBControls.Items[18] = "Right Touch : " + UpdateButtonList(bnTouchRight);
|
|
|
|
|
lBControls.Items[19] = "Multitouch : " + UpdateButtonList(bnTouchMulti);
|
|
|
|
|
lBControls.Items[20] = "Upper Touch : " + UpdateButtonList(bnTouchUpper);
|
|
|
|
|
lBControls.Items[21] = "LS Up : " + UpdateButtonList(bnLSUp);
|
|
|
|
|
lBControls.Items[22] = "LS Down : " + UpdateButtonList(bnLSDown);
|
|
|
|
|
lBControls.Items[23] = "LS Left : " + UpdateButtonList(bnLSLeft);
|
|
|
|
|
lBControls.Items[24] = "LS Right : " + UpdateButtonList(bnLSRight);
|
|
|
|
|
lBControls.Items[25] = "RS Up : " + UpdateButtonList(bnRSUp);
|
|
|
|
|
lBControls.Items[26] = "RS Down : " + UpdateButtonList(bnRSDown);
|
|
|
|
|
lBControls.Items[27] = "RS Left : " + UpdateButtonList(bnRSLeft);
|
|
|
|
|
lBControls.Items[28] = "RS Right : " + UpdateButtonList(bnRSRight);
|
|
|
|
|
lBControls.Items[29] = Properties.Resources.TiltUp + " : " + UpdateButtonList(bnGyroZN);
|
|
|
|
|
lBControls.Items[30] = Properties.Resources.TiltDown + " : " + UpdateButtonList(bnGyroZP);
|
|
|
|
|
lBControls.Items[31] = Properties.Resources.TiltLeft + " : " + UpdateButtonList(bnGyroXP);
|
|
|
|
|
lBControls.Items[32] = Properties.Resources.TiltRight + " : " + UpdateButtonList(bnGyroXN);
|
2014-11-15 22:54:14 +01:00
|
|
|
|
if (lBControls.Items.Count > 33)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
lBControls.Items[33] = Properties.Resources.SwipeUp + " : " + UpdateButtonList(bnSwipeUp);
|
|
|
|
|
lBControls.Items[34] = Properties.Resources.SwipeDown + " : " + UpdateButtonList(bnSwipeDown);
|
|
|
|
|
lBControls.Items[35] = Properties.Resources.SwipeLeft + " : " + UpdateButtonList(bnSwipeLeft);
|
|
|
|
|
lBControls.Items[36] = Properties.Resources.SwipeRight + " : " + UpdateButtonList(bnSwipeRight);
|
|
|
|
|
|
|
|
|
|
lbSwipeUp.Text = UpdateButtonList(bnSwipeUp);
|
|
|
|
|
lbSwipeDown.Text = UpdateButtonList(bnSwipeDown);
|
|
|
|
|
lbSwipeLeft.Text = UpdateButtonList(bnSwipeLeft);
|
|
|
|
|
lbSwipeRight.Text = UpdateButtonList(bnSwipeRight);
|
2014-11-15 22:54:14 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
|
|
|
|
lbGyroXN.Text = UpdateButtonList(bnGyroXN);
|
|
|
|
|
lbGyroZN.Text = UpdateButtonList(bnGyroZN);
|
|
|
|
|
lbGyroZP.Text = UpdateButtonList(bnGyroZP);
|
|
|
|
|
lbGyroXP.Text = UpdateButtonList(bnGyroXP);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private string UpdateButtonList(Button button, bool shift =false)
|
2014-06-24 00:27:14 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
object tagO = GetDS4Action(device, button.Name, shift);
|
|
|
|
|
bool SC = GetDS4KeyType(device, button.Name, false).HasFlag(DS4KeyType.ScanCode);
|
2014-12-17 19:29:22 +01:00
|
|
|
|
bool extracontrol = button.Name.Contains("Gyro") || button.Name.Contains("Swipe");
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (tagO != null)
|
|
|
|
|
{
|
|
|
|
|
if (tagO is int || tagO is ushort)
|
|
|
|
|
{
|
|
|
|
|
return (Keys)int.Parse(tagO.ToString()) + (SC ? " (" + Properties.Resources.ScanCode + ")" : "");
|
|
|
|
|
}
|
|
|
|
|
else if (tagO is int[])
|
|
|
|
|
{
|
|
|
|
|
return Properties.Resources.Macro + (SC ? " (" + Properties.Resources.ScanCode + ")" : "");
|
|
|
|
|
}
|
|
|
|
|
else if (tagO is string || tagO is X360Controls)
|
|
|
|
|
{
|
|
|
|
|
string tag;
|
|
|
|
|
if (tagO is X360Controls)
|
|
|
|
|
{
|
|
|
|
|
tag = KBM360.getX360ControlsByName((X360Controls)tagO);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
tag = tagO.ToString();
|
|
|
|
|
return tag;
|
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
else
|
2015-12-18 07:25:51 +01:00
|
|
|
|
return defaults[button.Name];
|
|
|
|
|
}
|
|
|
|
|
else if (!extracontrol && !shift && defaults.ContainsKey(button.Name))
|
2014-12-17 19:29:22 +01:00
|
|
|
|
return defaults[button.Name];
|
2015-12-18 07:25:51 +01:00
|
|
|
|
else if (shift)
|
|
|
|
|
return "";
|
2014-06-24 00:27:14 +02:00
|
|
|
|
else
|
2015-11-30 22:15:17 +01:00
|
|
|
|
return Properties.Resources.Unassigned;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
private void Show_ControlsList(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-05-12 07:48:50 +02:00
|
|
|
|
if (lBControls.SelectedIndex == 0) Show_ControlsBn(bnCross, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 1) Show_ControlsBn(bnCircle, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 2) Show_ControlsBn(bnSquare, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 3) Show_ControlsBn(bnTriangle, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 4) Show_ControlsBn(bnOptions, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 5) Show_ControlsBn(bnShare, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 6) Show_ControlsBn(bnUp, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 7) Show_ControlsBn(bnDown, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 8) Show_ControlsBn(bnLeft, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 9) Show_ControlsBn(bnRight, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 10) Show_ControlsBn(bnPS, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 11) Show_ControlsBn(bnL1, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 12) Show_ControlsBn(bnR1, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 13) Show_ControlsBn(bnL2, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 14) Show_ControlsBn(bnR2, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 15) Show_ControlsBn(bnL3, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 16) Show_ControlsBn(bnR3, e);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 17) Show_ControlsBn(bnTouchLeft, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 18) Show_ControlsBn(bnTouchRight, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 19) Show_ControlsBn(bnTouchMulti, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 20) Show_ControlsBn(bnTouchUpper, e);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 21) Show_ControlsBn(bnLSUp, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 22) Show_ControlsBn(bnLSDown, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 23) Show_ControlsBn(bnLSLeft, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 24) Show_ControlsBn(bnLSRight, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 25) Show_ControlsBn(bnRSUp, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 26) Show_ControlsBn(bnRSDown, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 27) Show_ControlsBn(bnRSLeft, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 28) Show_ControlsBn(bnRSRight, e);
|
2014-06-24 00:27:14 +02:00
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 29) Show_ControlsBn(bnGyroZN, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 30) Show_ControlsBn(bnGyroZP, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 31) Show_ControlsBn(bnGyroXP, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 32) Show_ControlsBn(bnGyroXN, e);
|
2014-11-15 22:54:14 +01:00
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 33) Show_ControlsBn(bnSwipeUp, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 34) Show_ControlsBn(bnSwipeDown, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 35) Show_ControlsBn(bnSwipeLeft, e);
|
|
|
|
|
if (lBControls.SelectedIndex == 36) Show_ControlsBn(bnSwipeRight, e);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void List_MouseDoubleClick(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Show_ControlsList(sender, e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void List_KeyDown(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (e.KeyValue == 13)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
Show_ControlsList(sender, e);
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-04-29 23:56:58 +02:00
|
|
|
|
|
2014-04-30 21:32:44 +02:00
|
|
|
|
private void numUDRainbow_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
Rainbow[device]= (double)nUDRainbow.Value;
|
2014-06-09 01:41:36 +02:00
|
|
|
|
if ((double)nUDRainbow.Value <= 0.5)
|
2014-05-05 04:25:53 +02:00
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
btnRainbow.Image = greyscale;
|
2014-05-05 04:25:53 +02:00
|
|
|
|
ToggleRainbow(false);
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDRainbow.Value = 0;
|
2014-05-05 04:25:53 +02:00
|
|
|
|
}
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-13 22:30:54 +01:00
|
|
|
|
private void btnRainbow_Click(object sender, EventArgs e)
|
2014-04-30 21:32:44 +02:00
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (btnRainbow.Image == greyscale)
|
2014-04-30 21:32:44 +02:00
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
btnRainbow.Image = colored;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
ToggleRainbow(true);
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDRainbow.Value = 5;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
btnRainbow.Image = greyscale;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
ToggleRainbow(false);
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDRainbow.Value = 0;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ToggleRainbow(bool on)
|
|
|
|
|
{
|
2014-06-09 01:41:36 +02:00
|
|
|
|
nUDRainbow.Enabled = on;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
if (on)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnLightbar.BackgroundImage = RecolorImage((Bitmap)btnLightbar.BackgroundImage, main);
|
2014-08-17 00:09:15 +02:00
|
|
|
|
cBLightbyBattery.Text = Properties.Resources.DimByBattery.Replace("*nl*", "\n");
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-11-01 22:49:22 +01:00
|
|
|
|
pnlLowBattery.Enabled = cBLightbyBattery.Checked;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnLightbar.BackgroundImage = RecolorImage((Bitmap)btnLightbar.BackgroundImage, main);
|
2014-08-17 00:09:15 +02:00
|
|
|
|
cBLightbyBattery.Text = Properties.Resources.ColorByBattery.Replace("*nl*", "\n");
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (FlashColor[device].Equals(new DS4Color { red = 0, green = 0, blue = 0 }))
|
|
|
|
|
btnFlashColor.BackColor = main;
|
|
|
|
|
btnFlashColor.BackgroundImage = nUDRainbow.Enabled ? rainbowImg : null;
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbspc.Enabled = on;
|
2014-11-01 22:49:22 +01:00
|
|
|
|
pnlLowBattery.Enabled = !on;
|
|
|
|
|
pnlFull.Enabled = !on;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Bitmap GreyscaleImage(Bitmap image)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
Bitmap c = image;
|
2014-04-30 21:32:44 +02:00
|
|
|
|
Bitmap d = new Bitmap(c.Width, c.Height);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < c.Width; i++)
|
|
|
|
|
{
|
|
|
|
|
for (int x = 0; x < c.Height; x++)
|
|
|
|
|
{
|
|
|
|
|
Color oc = c.GetPixel(i, x);
|
|
|
|
|
int grayScale = (int)((oc.R * 0.3) + (oc.G * 0.59) + (oc.B * 0.11));
|
|
|
|
|
Color nc = Color.FromArgb(oc.A, grayScale, grayScale, grayScale);
|
|
|
|
|
d.SetPixel(i, x, nc);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return d;
|
|
|
|
|
}
|
2014-05-05 09:31:24 +02:00
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private Bitmap RecolorImage(Bitmap image, Color color)
|
|
|
|
|
{
|
|
|
|
|
Bitmap c = Properties.Resources.DS4_lightbar;
|
|
|
|
|
Bitmap d = new Bitmap(c.Width, c.Height);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < c.Width; i++)
|
|
|
|
|
for (int x = 0; x < c.Height; x++)
|
|
|
|
|
if (!nUDRainbow.Enabled)
|
|
|
|
|
{
|
|
|
|
|
Color col = c.GetPixel(i, x);
|
|
|
|
|
col = Color.FromArgb((int)(col.A * (color.A / 255f)), color.R, color.G, color.B);
|
|
|
|
|
d.SetPixel(i, x, col);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Color col = HuetoRGB((i / (float)c.Width) * 360, .5f, Color.Red);
|
|
|
|
|
d.SetPixel(i, x, Color.FromArgb(c.GetPixel(i, x).A, col));
|
|
|
|
|
}
|
|
|
|
|
return d;
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-05 09:31:24 +02:00
|
|
|
|
private void numUDL2_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
L2Deadzone[device] = (byte)(nUDL2.Value * 255);
|
2014-05-05 09:31:24 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void numUDR2_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
R2Deadzone[device] = (byte)(nUDR2.Value * 255);
|
2014-05-12 07:48:50 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-26 20:02:01 +02:00
|
|
|
|
private void nUDSX_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
SXDeadzone[device] = (double)nUDSX.Value;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
pnlSATrack.Refresh();
|
2014-06-26 20:02:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void nUDSZ_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
SZDeadzone[device] = (double)nUDSZ.Value;
|
2015-12-05 09:55:11 +01:00
|
|
|
|
pnlSATrack.Refresh();
|
2015-04-21 21:00:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-05 09:55:11 +01:00
|
|
|
|
private void pnlSATrack_Paint(object sender, PaintEventArgs e)
|
2015-04-21 21:00:09 +02:00
|
|
|
|
{
|
|
|
|
|
if (nUDSX.Value > 0 || nUDSZ.Value > 0)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2015-04-21 21:00:09 +02:00
|
|
|
|
e.Graphics.FillEllipse(Brushes.Red,
|
|
|
|
|
(int)(dpix * 63) - (int)(nUDSX.Value * 125) / 2,
|
|
|
|
|
(int)(dpix * 63) - (int)(nUDSZ.Value * 125) / 2,
|
|
|
|
|
(int)(nUDSX.Value * 125), (int)(nUDSZ.Value * 125));
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
2014-06-26 20:02:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-05-21 23:42:25 +02:00
|
|
|
|
private void numUDRS_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-04-21 21:00:09 +02:00
|
|
|
|
nUDRS.Value = Math.Round(nUDRS.Value, 2);
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
RSDeadzone[device] = (int)Math.Round((nUDRS.Value * 127),0);
|
2015-12-05 09:55:11 +01:00
|
|
|
|
pnlRSTrack.BackColor = nUDRS.Value >= 0 ? Color.White : Color.Red;
|
|
|
|
|
pnlRSTrack.Refresh();
|
2015-04-21 21:00:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-05 09:55:11 +01:00
|
|
|
|
private void pnlRSTrack_Paint(object sender, PaintEventArgs e)
|
2015-04-21 21:00:09 +02:00
|
|
|
|
{
|
|
|
|
|
if (nUDRS.Value > 0)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2015-04-21 21:00:09 +02:00
|
|
|
|
int value = (int)(nUDRS.Value * 125);
|
|
|
|
|
e.Graphics.FillEllipse(Brushes.Red,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
value, value);
|
|
|
|
|
}
|
|
|
|
|
else if (nUDRS.Value < 0)
|
|
|
|
|
{
|
|
|
|
|
int value = (int)((1 + nUDRS.Value) * 125);
|
|
|
|
|
e.Graphics.FillEllipse(Brushes.White,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
value, value);
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
2014-05-21 23:42:25 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void numUDLS_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-04-21 21:00:09 +02:00
|
|
|
|
nUDLS.Value = Math.Round(nUDLS.Value, 2);
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LSDeadzone[device] = (int)Math.Round((nUDLS.Value * 127), 0);
|
2015-12-05 09:55:11 +01:00
|
|
|
|
pnlLSTrack.BackColor = nUDLS.Value >= 0 ? Color.White : Color.Red;
|
|
|
|
|
pnlLSTrack.Refresh();
|
2015-04-21 21:00:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-05 09:55:11 +01:00
|
|
|
|
private void pnlLSTrack_Paint(object sender, PaintEventArgs e)
|
2015-04-21 21:00:09 +02:00
|
|
|
|
{
|
|
|
|
|
if (nUDLS.Value > 0)
|
|
|
|
|
{
|
|
|
|
|
int value = (int)(nUDLS.Value * 125);
|
|
|
|
|
e.Graphics.FillEllipse(Brushes.Red,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
value, value);
|
|
|
|
|
}
|
|
|
|
|
else if (nUDLS.Value < 0)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2015-04-21 21:00:09 +02:00
|
|
|
|
int value = (int)((1 + nUDLS.Value) * 125);
|
|
|
|
|
e.Graphics.FillEllipse(Brushes.White,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
(int)(dpix * 63) - value / 2,
|
|
|
|
|
value, value);
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
2014-05-21 23:42:25 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-05-24 04:30:43 +02:00
|
|
|
|
private void numUDMouseSens_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ButtonMouseSensitivity[device] = (int)numUDMouseSens.Value;
|
|
|
|
|
//ButtonMouseSensitivity(device, (int)numUDMouseSens.Value);
|
2014-05-24 04:30:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-05-25 01:08:40 +02:00
|
|
|
|
private void LightBar_MouseDown(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (!saving && !loading)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
tp.Show(((TrackBar)sender).Value.ToString(), ((TrackBar)sender), (int)(100 * dpix), 0, 2000);
|
2014-05-25 01:08:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Lightbar_MouseUp(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
tp.Hide(((TrackBar)sender));
|
|
|
|
|
}
|
2014-05-30 22:39:39 +02:00
|
|
|
|
|
|
|
|
|
private void btnCancel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2014-05-31 06:37:02 +02:00
|
|
|
|
|
|
|
|
|
private void nUDflashLED_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (nUDflashLED.Value % 10 != 0)
|
|
|
|
|
nUDflashLED.Value = Math.Round(nUDflashLED.Value / 10, 0) * 10;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlashAt[device] = (int)nUDflashLED.Value;
|
2014-05-31 06:37:02 +02:00
|
|
|
|
}
|
2014-06-02 19:29:38 +02:00
|
|
|
|
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
private void cBMouseAccel_CheckedChanged(object sender, EventArgs e)
|
2014-06-24 00:27:14 +02:00
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
MouseAccel[device] = cBMouseAccel.Checked;
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
private void tabControls_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (tCControls.SelectedIndex == 2)
|
2014-06-24 00:27:14 +02:00
|
|
|
|
sixaxisTimer.Start();
|
|
|
|
|
else
|
|
|
|
|
sixaxisTimer.Stop();
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
private void DrawCircle(object sender, PaintEventArgs e)
|
2014-06-26 20:02:01 +02:00
|
|
|
|
{
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
// Create pen.
|
|
|
|
|
Pen blackPen = new Pen(Color.Red);
|
|
|
|
|
|
|
|
|
|
// Create rectangle for ellipse.
|
|
|
|
|
Rectangle rect = new Rectangle(0, 0, ((PictureBox)sender).Size.Width, ((PictureBox)sender).Size.Height);
|
|
|
|
|
|
|
|
|
|
// Draw ellipse to screen.
|
|
|
|
|
e.Graphics.DrawEllipse(blackPen, rect);
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-26 01:17:45 +02:00
|
|
|
|
private void lbEmpty_Click(object sender, EventArgs e)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2014-10-21 04:31:13 +02:00
|
|
|
|
tBLowRedBar.Value = tBRedBar.Value;
|
|
|
|
|
tBLowGreenBar.Value = tBGreenBar.Value;
|
|
|
|
|
tBLowBlueBar.Value = tBBlueBar.Value;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2014-07-26 01:17:45 +02:00
|
|
|
|
|
|
|
|
|
private void lbSATip_Click(object sender, EventArgs e)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
//pnlSixaxis.Visible = !pnlSixaxis.Visible;
|
|
|
|
|
//btnSATrack.Visible = !btnSATrack.Visible;
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SixaxisPanel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbSATip_Click(sender, e);
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-26 01:17:45 +02:00
|
|
|
|
private void lbSATrack_Click(object sender, EventArgs e)
|
Shift modifier: Hold an action to use another set of controls, if nothing is set to the shifted control, in falls back to the default action
View input of controls in profiles, see exactly when a deadzone is passed and check the input delay for controllers (special thanks to jhebbel), click the on sixaxis panel
Click the Empty text on in the lightbar box to copy the lightbar color from full to empty.
While opened, option to keep the window size after closing the profile's settings
Old profiles are automatically upgraded if it's missing new settings, such as how colors are now saved, sixaxis deadzones, and shift controls
Other UI changes for profile settings, flipped touchpad and other settings boxes
Others:
Fix for when clicking the semicolon in the select an action screen
Fix assigning Sixaxis action to a key
minor UI changes and bug fixes, such as auto resize of the log listview
DS4Updater: Also now works for the new numbering system, can read the version number right from the exe instead of in profiles.xml, UI additions to better notify users of errors, Bug fixes for non-portable users
2014-07-07 21:22:42 +02:00
|
|
|
|
{
|
2014-07-26 01:17:45 +02:00
|
|
|
|
lbSATip_Click(sender, e);
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-07-26 01:17:45 +02:00
|
|
|
|
private void btnBrowse_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if( openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
cBLaunchProgram.Checked = true;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LaunchProgram[device] = openFileDialog1.FileName;
|
2014-07-26 01:17:45 +02:00
|
|
|
|
pBProgram.Image = Icon.ExtractAssociatedIcon(openFileDialog1.FileName).ToBitmap();
|
|
|
|
|
btnBrowse.Text = Path.GetFileNameWithoutExtension(openFileDialog1.FileName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cBLaunchProgram_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!cBLaunchProgram.Checked)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LaunchProgram[device] = string.Empty;
|
2014-07-26 01:17:45 +02:00
|
|
|
|
pBProgram.Image = null;
|
2014-08-17 00:09:15 +02:00
|
|
|
|
btnBrowse.Text = Properties.Resources.Browse;
|
2014-07-26 01:17:45 +02:00
|
|
|
|
}
|
2014-06-26 20:02:01 +02:00
|
|
|
|
}
|
2014-08-23 22:52:20 +02:00
|
|
|
|
|
|
|
|
|
private void cBDinput_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
DinputOnly[device] = cBDinput.Checked;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (device < 4)
|
2014-08-23 22:52:20 +02:00
|
|
|
|
{
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
root.btnStartStop_Clicked(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-15 04:37:14 +02:00
|
|
|
|
private void cbStartTouchpadOff_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
StartTouchpadOff[device] = cbStartTouchpadOff.Checked;
|
2014-09-15 04:37:14 +02:00
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
|
|
|
|
|
|
2014-09-15 04:37:14 +02:00
|
|
|
|
private void Items_MouseHover(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
string name = ((Control)sender).Name;
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (name.Contains("btn") && !name.Contains("Flash") && !name.Contains("Stick") && !name.Contains("Rainbow"))
|
2015-11-28 06:47:26 +01:00
|
|
|
|
name = name.Remove(1, 1);
|
|
|
|
|
switch (name)
|
2014-09-15 04:37:14 +02:00
|
|
|
|
{
|
|
|
|
|
case "cBlowerRCOn": root.lbLastMessage.Text = Properties.Resources.BestUsedRightSide; break;
|
|
|
|
|
case "cBDoubleTap": root.lbLastMessage.Text = Properties.Resources.TapAndHold; break;
|
|
|
|
|
case "lbControlTip": root.lbLastMessage.Text = Properties.Resources.UseControllerForMapping; break;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "cBTouchpadJitterCompensation": root.lbLastMessage.Text = Properties.Resources.Jitter; break;
|
2015-12-13 22:30:54 +01:00
|
|
|
|
case "btnRainbow": root.lbLastMessage.Text = Properties.Resources.AlwaysRainbow; break;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "cBFlushHIDQueue": root.lbLastMessage.Text = Properties.Resources.FlushHIDTip; break;
|
|
|
|
|
case "cBLightbyBattery": root.lbLastMessage.Text = Properties.Resources.LightByBatteryTip; break;
|
|
|
|
|
case "lbGryo": root.lbLastMessage.Text = Properties.Resources.GyroReadout; break;
|
|
|
|
|
case "tBsixaxisGyroX": root.lbLastMessage.Text = Properties.Resources.GyroX; break;
|
|
|
|
|
case "tBsixaxisGyroY": root.lbLastMessage.Text = Properties.Resources.GyroY; break;
|
|
|
|
|
case "tBsixaxisGyroZ": root.lbLastMessage.Text = Properties.Resources.GyroZ; break;
|
2014-09-15 04:37:14 +02:00
|
|
|
|
case "tBsixaxisAccelX": root.lbLastMessage.Text = "AccelX"; break;
|
|
|
|
|
case "tBsixaxisAccelY": root.lbLastMessage.Text = "AccelY"; break;
|
|
|
|
|
case "tBsixaxisAccelZ": root.lbLastMessage.Text = "AccelZ"; break;
|
|
|
|
|
case "lbEmpty": root.lbLastMessage.Text = Properties.Resources.CopyFullColor; break;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "lbSATip": root.lbLastMessage.Text = Properties.Resources.SixAxisReading; break;
|
2014-09-15 04:37:14 +02:00
|
|
|
|
case "cBDinput": root.lbLastMessage.Text = Properties.Resources.DinputOnly; break;
|
2015-02-08 22:51:52 +01:00
|
|
|
|
case "btnFlashColor": root.lbLastMessage.Text = Properties.Resources.FlashAtTip; break;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
case "cbStartTouchpadOff": root.lbLastMessage.Text = Properties.Resources.TouchpadOffTip; break;
|
|
|
|
|
case "cBTPforControls": root.lbLastMessage.Text = Properties.Resources.UsingTPSwipes; break;
|
|
|
|
|
default: root.lbLastMessage.Text = Properties.Resources.HoverOverItems; break;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
|
|
|
|
case "bnUp": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnLeft": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnRight": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnDown": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
case "btnLS": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "btnRS": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
case "bnCross": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnCircle": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnSquare": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnTriangle": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "lbGyro": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnGyroZN": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnGyroZP": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnGyroXN": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnGyroXP": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "lbTPSwipes": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnSwipeUp": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnSwipeLeft": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnSwipeRight": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
case "bnSwipeDown": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnL3": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
case "bnR3": root.lbLastMessage.Text = Properties.Resources.RightClickPresets; break;
|
|
|
|
|
}
|
|
|
|
|
if (name.Contains("bnLS") || name.Contains("bnRS"))
|
2015-11-28 06:47:26 +01:00
|
|
|
|
root.lbLastMessage.Text = Properties.Resources.RightClickPresets;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
if (root.lbLastMessage.Text != Properties.Resources.HoverOverItems)
|
2014-09-15 04:37:14 +02:00
|
|
|
|
root.lbLastMessage.ForeColor = Color.Black;
|
|
|
|
|
else
|
|
|
|
|
root.lbLastMessage.ForeColor = SystemColors.GrayText;
|
|
|
|
|
}
|
2014-11-15 22:54:14 +01:00
|
|
|
|
|
|
|
|
|
private void cBTPforControls_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
UseTPforControls[device] = rBTPControls.Checked;
|
|
|
|
|
pnlTPMouse.Visible = rBTPMouse.Checked;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
fLPTouchSwipe.Visible = rBTPControls.Checked;
|
|
|
|
|
if (rBTPControls.Checked && lBControls.Items.Count <= 33)
|
2014-11-15 22:54:14 +01:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
lBControls.Items.AddRange(new string[4] { "t", "t", "t", "t" });
|
|
|
|
|
UpdateLists();
|
2014-11-15 22:54:14 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
else if (rBTPMouse.Checked && lBControls.Items.Count > 33)
|
2014-11-15 22:54:14 +01:00
|
|
|
|
{
|
|
|
|
|
lBControls.Items.RemoveAt(36);
|
|
|
|
|
lBControls.Items.RemoveAt(35);
|
|
|
|
|
lBControls.Items.RemoveAt(34);
|
|
|
|
|
lBControls.Items.RemoveAt(33);
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-11-20 20:03:18 +01:00
|
|
|
|
|
|
|
|
|
private void cBControllerInput_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
DS4Mapping=cBControllerInput.Checked;
|
2014-11-20 20:03:18 +01:00
|
|
|
|
}
|
2014-12-13 21:12:03 +01:00
|
|
|
|
|
|
|
|
|
private void btnAddAction_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
SpecActions sA = new SpecActions(this);
|
|
|
|
|
sA.TopLevel = false;
|
|
|
|
|
sA.Dock = DockStyle.Fill;
|
|
|
|
|
sA.Visible = true;
|
|
|
|
|
tPSpecial.Controls.Add(sA);
|
|
|
|
|
sA.BringToFront();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnEditAction_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (lVActions.SelectedIndices.Count > 0 && lVActions.SelectedIndices[0] >= 0)
|
|
|
|
|
{
|
|
|
|
|
SpecActions sA = new SpecActions(this, lVActions.SelectedItems[0].Text, lVActions.SelectedIndices[0]);
|
|
|
|
|
sA.TopLevel = false;
|
|
|
|
|
sA.Dock = DockStyle.Fill;
|
|
|
|
|
sA.Visible = true;
|
|
|
|
|
tPSpecial.Controls.Add(sA);
|
|
|
|
|
sA.BringToFront();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnRemAction_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (lVActions.SelectedIndices.Count > 0 && lVActions.SelectedIndices[0] >= 0)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
RemoveAction(lVActions.SelectedItems[0].Text);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
lVActions.Items.Remove(lVActions.SelectedItems[0]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void lVActions_ItemChecked(object sender, ItemCheckedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
List<string> pactions = new List<string>();
|
|
|
|
|
foreach (ListViewItem lvi in lVActions.Items)
|
2015-12-05 09:55:11 +01:00
|
|
|
|
if (lvi != null && lvi.Checked)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
pactions.Add(lvi.Text);
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ProfileActions[device] = pactions;
|
Version 1.4.5
Added support for the New DS4 USB Adapater (Thanks to boganhobo and
Chamilsaan)
Implemented teokp's amazing fix for hide ds4 not working on the
anniversary update of Windows 10: when a controller fails to enter
exclusive mode, DS4Windows will ask for admin privilages to fix the
issue.
Now (near)unlimited Special Actions can be made from the previous limit
of 50
Special Action Xbox Game DVR is now no longer limited to Windows 10,
renamed multi action button: Assign a macro to single tap, double tap,
and holding down a button
Added option for White DS4Windows Icon in the notification tray (While
not merged from, thanks to tehmantra)
Added option to temporarily turn off DS4Windows when using a certain
program (togglable in the Auto Profiles Tab) (Same case as above but
thanks to dedChar to bring to light)
Fixed Options crashes in certain locales where decimal points are
repesented with commas, such as German (Thanks to kiliansch)
Added/Updated translations for many languauges, now including Japanese,
Slovenian, Hungarian, Greek, Finnish, Czech, Indonesian, and Ukrainian
2016-09-22 03:38:38 +02:00
|
|
|
|
/*if (lVActions.Items.Count >= 50)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
{
|
|
|
|
|
btnNewAction.Enabled = false;
|
Version 1.4.5
Added support for the New DS4 USB Adapater (Thanks to boganhobo and
Chamilsaan)
Implemented teokp's amazing fix for hide ds4 not working on the
anniversary update of Windows 10: when a controller fails to enter
exclusive mode, DS4Windows will ask for admin privilages to fix the
issue.
Now (near)unlimited Special Actions can be made from the previous limit
of 50
Special Action Xbox Game DVR is now no longer limited to Windows 10,
renamed multi action button: Assign a macro to single tap, double tap,
and holding down a button
Added option for White DS4Windows Icon in the notification tray (While
not merged from, thanks to tehmantra)
Added option to temporarily turn off DS4Windows when using a certain
program (togglable in the Auto Profiles Tab) (Same case as above but
thanks to dedChar to bring to light)
Fixed Options crashes in certain locales where decimal points are
repesented with commas, such as German (Thanks to kiliansch)
Added/Updated translations for many languauges, now including Japanese,
Slovenian, Hungarian, Greek, Finnish, Czech, Indonesian, and Ukrainian
2016-09-22 03:38:38 +02:00
|
|
|
|
}*/
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void nUDLSCurve_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
LSCurve[device] = (int)Math.Round(nUDLSCurve.Value, 0);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void nUDRSCurve_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
RSCurve[device] = (int)Math.Round(nUDRSCurve.Value, 0);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
}
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
|
|
|
|
private void cMSPresets_Opened(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
string name = cMSPresets.SourceControl.Name;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (name.Contains("btn") && !name.Contains("Stick"))
|
|
|
|
|
name = name.Remove(1, 1);
|
2014-12-17 19:29:22 +01:00
|
|
|
|
if (name == "bnUp" || name == "bnLeft" || name == "bnRight" || name == "bnDown")
|
|
|
|
|
controlToolStripMenuItem.Text = "Dpad";
|
2015-11-30 22:15:17 +01:00
|
|
|
|
else if (name == "btnLeftStick" || name.Contains("bnLS") || name.Contains("bnL3"))
|
2014-12-17 19:29:22 +01:00
|
|
|
|
controlToolStripMenuItem.Text = "Left Stick";
|
2015-11-30 22:15:17 +01:00
|
|
|
|
else if (name == "btnRightStick" || name.Contains("bnRS") || name.Contains("bnR3"))
|
2014-12-17 19:29:22 +01:00
|
|
|
|
controlToolStripMenuItem.Text = "Right Stick";
|
|
|
|
|
else if (name == "bnCross" || name == "bnCircle" || name == "bnSquare" || name == "bnTriangle")
|
|
|
|
|
controlToolStripMenuItem.Text = "Face Buttons";
|
|
|
|
|
else if (name == "lbGyro" || name.StartsWith("bnGyro"))
|
|
|
|
|
controlToolStripMenuItem.Text = "Sixaxis";
|
|
|
|
|
else if (name == "lbTPSwipes" || name.StartsWith("bnSwipe"))
|
|
|
|
|
controlToolStripMenuItem.Text = "Touchpad Swipes";
|
|
|
|
|
else
|
|
|
|
|
controlToolStripMenuItem.Text = "Select another control";
|
2015-12-18 07:25:51 +01:00
|
|
|
|
MouseToolStripMenuItem.Visible = !(name == "lbTPSwipes" || name.StartsWith("bnSwipe"));
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
/*private void BatchToggle_Bn(bool scancode, Button button1, Button button2, Button button3, Button button4)
|
2014-12-17 19:29:22 +01:00
|
|
|
|
{
|
|
|
|
|
Toggle_Bn(scancode, false, false, false, button1);
|
|
|
|
|
Toggle_Bn(scancode, false, false, false, button2);
|
|
|
|
|
Toggle_Bn(scancode, false, false, false, button3);
|
|
|
|
|
Toggle_Bn(scancode, false, false, false, button4);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}*/
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
|
|
|
|
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
private void SetPreset(object sender, EventArgs e)
|
2014-12-17 19:29:22 +01:00
|
|
|
|
{
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
bool scancode = false;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
KeyValuePair<object, string> tagU;
|
|
|
|
|
KeyValuePair<object, string> tagL;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
KeyValuePair<object, string> tagR;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
KeyValuePair<object, string> tagD;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
KeyValuePair<object, string> tagM = new KeyValuePair<object, string>(null, "0,0,0,0,0,0,0,0"); ;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
string name = ((ToolStripMenuItem)sender).Name;
|
|
|
|
|
if (name.Contains("Dpad") || name.Contains("DPad"))
|
2014-12-17 19:29:22 +01:00
|
|
|
|
{
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
if (name.Contains("InvertedX"))
|
|
|
|
|
{
|
2014-12-17 19:29:22 +01:00
|
|
|
|
tagU = new KeyValuePair<object, string>("Up Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Down Button", "0,0,0,0,0,0,0,0");
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("InvertedY"))
|
|
|
|
|
{
|
2014-12-17 19:29:22 +01:00
|
|
|
|
tagU = new KeyValuePair<object, string>("Down Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Up Button", "0,0,0,0,0,0,0,0");
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("Inverted"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Down Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Up Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-12-17 19:29:22 +01:00
|
|
|
|
tagU = new KeyValuePair<object, string>("Up Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Down Button", "0,0,0,0,0,0,0,0");
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("LS"))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (name.Contains("InvertedX"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Left Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Left Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("InvertedY"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Left Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Left Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("Inverted"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Left Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Left Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Left Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Left X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Left X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Left Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
2015-11-30 22:15:17 +01:00
|
|
|
|
tagM = new KeyValuePair<object, string>("Left Stick", "0,0,0,0,0,0,0,0");
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("RS"))
|
|
|
|
|
{
|
|
|
|
|
if (name.Contains("InvertedX"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Right Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Right Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("InvertedY"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Right Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Right Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("Inverted"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Right Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Right Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Right Y-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Right X-Axis-", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Right X-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Right Y-Axis+", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
2015-11-30 22:15:17 +01:00
|
|
|
|
tagM = new KeyValuePair<object, string>("Right Stick", "0,0,0,0,0,0,0,0");
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
else if (name.Contains("ABXY"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Y Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("X Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("B Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("A Button", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("WASD"))
|
|
|
|
|
{
|
|
|
|
|
if (name.Contains("ScanCode"))
|
|
|
|
|
scancode = true;
|
|
|
|
|
tagU = new KeyValuePair<object, string>((int)Keys.W, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>((int)Keys.A, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>((int)Keys.D, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>((int)Keys.S, "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("ArrowKeys"))
|
|
|
|
|
{
|
|
|
|
|
if (name.Contains("ScanCode"))
|
|
|
|
|
scancode = true;
|
|
|
|
|
tagU = new KeyValuePair<object, string>((int)Keys.Up, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>((int)Keys.Left, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>((int)Keys.Right, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>((int)Keys.Down, "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("Mouse"))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (name.Contains("InvertedX"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Mouse Up", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Mouse Right", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Mouse Left", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Mouse Down", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("InvertedY"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Mouse Down", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Mouse Left", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Mouse Right", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Mouse Up", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else if (name.Contains("Inverted"))
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Mouse Down", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Mouse Right", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Mouse Left", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Mouse Up", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>("Mouse Up", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>("Mouse Left", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>("Mouse Right", "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>("Mouse Down", "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else //default
|
|
|
|
|
{
|
|
|
|
|
tagU = new KeyValuePair<object, string>(null, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagL = new KeyValuePair<object, string>(null, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagR = new KeyValuePair<object, string>(null, "0,0,0,0,0,0,0,0");
|
|
|
|
|
tagD = new KeyValuePair<object, string>(null, "0,0,0,0,0,0,0,0");
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
Button button1, button2, button3, button4, button5 = null;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
if (controlToolStripMenuItem.Text == "Dpad")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnUp;
|
|
|
|
|
button2 = bnLeft;
|
|
|
|
|
button3 = bnRight;
|
|
|
|
|
button4 = bnDown;
|
|
|
|
|
}
|
|
|
|
|
else if (controlToolStripMenuItem.Text == "Left Stick")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnLSUp;
|
|
|
|
|
button2 = bnLSLeft;
|
|
|
|
|
button3 = bnLSRight;
|
|
|
|
|
button4 = bnLSDown;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
button5 = bnL3;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
|
|
|
|
else if (controlToolStripMenuItem.Text == "Right Stick")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnRSUp;
|
|
|
|
|
button2 = bnRSLeft;
|
|
|
|
|
button3 = bnRSRight;
|
|
|
|
|
button4 = bnRSDown;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
button5 = bnR3;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
|
|
|
|
else if (controlToolStripMenuItem.Text == "Face Buttons")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnTriangle;
|
|
|
|
|
button2 = bnSquare;
|
|
|
|
|
button3 = bnCircle;
|
|
|
|
|
button4 = bnCross;
|
|
|
|
|
}
|
|
|
|
|
else if (controlToolStripMenuItem.Text == "Sixaxis")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnGyroZN;
|
|
|
|
|
button2 = bnGyroXP;
|
|
|
|
|
button3 = bnGyroXN;
|
|
|
|
|
button4 = bnGyroZP;
|
|
|
|
|
}
|
|
|
|
|
else if (controlToolStripMenuItem.Text == "Touchpad Swipes")
|
|
|
|
|
{
|
|
|
|
|
button1 = bnSwipeUp;
|
|
|
|
|
button2 = bnSwipeLeft;
|
|
|
|
|
button3 = bnSwipeRight;
|
|
|
|
|
button4 = bnSwipeDown;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
button1 = button2 = button3 = button4 = null;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
ChangeButtonText(tagU, button1, scancode);
|
|
|
|
|
ChangeButtonText(tagL, button2, scancode);
|
|
|
|
|
ChangeButtonText(tagR, button3, scancode);
|
|
|
|
|
ChangeButtonText(tagD, button4, scancode);
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (tagM.Key != null && button5 != null)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
ChangeButtonText(tagM, button5, scancode);
|
|
|
|
|
//BatchToggle_Bn(scancode, button1, button2, button3, button4);
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
|
|
|
|
UpdateLists();
|
|
|
|
|
cMSPresets.Hide();
|
|
|
|
|
}
|
|
|
|
|
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
private void cBWhileCharging_SelectedIndexChanged(object sender, EventArgs e)
|
2014-12-17 19:29:22 +01:00
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
ChargingType[device] = cBWhileCharging.SelectedIndex;
|
Version 1.4.222
Added Press/Toggle Key to Special Actions, you can hold a trigger to
hold a key or toggle a key with one set of buttons, and untoggle it by
pressing or releasing another set of buttons
Added Disconnect BT to Special Actions, PS+Options to d/c is now added
to Special actions and can be enabled for each profile. You can now set
Disconnect BT to any control(s) and how long you need to hold the
control(s) to take affect
Added Partial German Translation (Thanks Michél)
Added 95% Finished Russian Translation (Thanks overclockers.ru members:
KoNoRIMCI & Sr_psycho)
Added Partial Italian Translation (Thanks Giulio)
Updates to the translations sheets, they should now have every bit of
text in DS4Windows, minus the controls of the controller
English Spelling fixes
Main/Starting tab only shows info for connected controllers, and context
menu only shows options for connected controllers.
Mouse wheel scrolling with analog sticks/triggers/gyro, the mouse now
scrolls smoothly
Slightly reworked analog mouse movement + mouse acceleration (not as
janky anymore)
When starting DS4Windows, if no controllers are connected, DS4Windows
defaults to the profile tab
Certain log warnings (Like unable to get controller exclusively) shows
up in red
Easter egg: try pressing a few buttons in sequence while in the log tab
Fixed Start Profile with TP off being unchecked next time a profile is
opened
Other minor Bug Fixes, such as clearing the log then moving to a new tab
crashing DS4W
2015-01-17 21:16:48 +01:00
|
|
|
|
btnChargingColor.Visible = cBWhileCharging.SelectedIndex == 3;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
}
|
2015-02-08 22:51:52 +01:00
|
|
|
|
|
|
|
|
|
private void btnFlashColor_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (btnFlashColor.BackColor != main)
|
2015-02-08 22:51:52 +01:00
|
|
|
|
advColorDialog.Color = btnFlashColor.BackColor;
|
|
|
|
|
else
|
|
|
|
|
advColorDialog.Color = Color.Black;
|
|
|
|
|
advColorDialog_OnUpdateColor(lbPercentFlashBar.ForeColor, e);
|
|
|
|
|
if (advColorDialog.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
if (advColorDialog.Color.GetBrightness() > 0)
|
|
|
|
|
btnFlashColor.BackColor = advColorDialog.Color;
|
|
|
|
|
else
|
2015-11-28 06:47:26 +01:00
|
|
|
|
btnFlashColor.BackColor = main;
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlashColor[device] = new DS4Color(advColorDialog.Color);
|
2015-02-08 22:51:52 +01:00
|
|
|
|
}
|
|
|
|
|
if (device < 4)
|
|
|
|
|
DS4LightBar.forcelight[device] = false;
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void useSAforMouse_CheckedChanged(object sender, EventArgs e)
|
2015-02-08 22:51:52 +01:00
|
|
|
|
{
|
2015-11-28 06:47:26 +01:00
|
|
|
|
UseSAforMouse[device] = rBSAMouse.Checked;
|
|
|
|
|
pnlSAMouse.Visible = rBSAMouse.Checked;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
fLPTiltControls.Visible = rBSAControls.Checked;
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnGyroTriggers_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
cMGyroTriggers.Show((Control)sender, new Point(0, ((Control)sender).Height));
|
2015-02-08 22:51:52 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void SATrigger_CheckedChanged(object sender, EventArgs e)
|
2015-02-08 22:51:52 +01:00
|
|
|
|
{
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (sender != cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1] && ((ToolStripMenuItem)sender).Checked)
|
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1]).Checked = false;
|
|
|
|
|
if (((ToolStripMenuItem)cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1]).Checked) //always on
|
|
|
|
|
for (int i = 0; i < cMGyroTriggers.Items.Count - 1; i++)
|
2015-11-28 06:47:26 +01:00
|
|
|
|
((ToolStripMenuItem)cMGyroTriggers.Items[i]).Checked = false;
|
2015-12-13 22:30:54 +01:00
|
|
|
|
|
|
|
|
|
List <int> ints = new List<int>();
|
2015-11-28 06:47:26 +01:00
|
|
|
|
List<string> s = new List<string>();
|
2015-12-13 22:30:54 +01:00
|
|
|
|
for (int i = 0; i < cMGyroTriggers.Items.Count - 1; i++)
|
2015-11-28 06:47:26 +01:00
|
|
|
|
if (((ToolStripMenuItem)cMGyroTriggers.Items[i]).Checked)
|
|
|
|
|
{
|
|
|
|
|
ints.Add(i);
|
|
|
|
|
s.Add(cMGyroTriggers.Items[i].Text);
|
|
|
|
|
}
|
2015-12-13 22:30:54 +01:00
|
|
|
|
if (ints.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
ints.Add(-1);
|
|
|
|
|
s.Add(cMGyroTriggers.Items[cMGyroTriggers.Items.Count - 1].Text);
|
|
|
|
|
}
|
2015-11-28 06:47:26 +01:00
|
|
|
|
SATriggers[device] = string.Join(",", ints);
|
|
|
|
|
if (s.Count > 0)
|
|
|
|
|
btnGyroTriggers.Text = string.Join(", ", s);
|
2015-02-08 22:51:52 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void cBGyroInvert_CheckChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
int invert = 0;
|
|
|
|
|
if (cBGyroInvertX.Checked)
|
|
|
|
|
invert += 2;
|
|
|
|
|
if (cBGyroInvertY.Checked)
|
|
|
|
|
invert += 1;
|
|
|
|
|
GyroInvert[device] = invert;
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
private void btnLightbar_MouseHover(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
lbControlName.Text = lbControlTip.Text;
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-05 09:55:11 +01:00
|
|
|
|
private void nUDSens_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!loading)
|
|
|
|
|
{
|
|
|
|
|
L2Sens[device] = (double)nUDL2S.Value;
|
|
|
|
|
R2Sens[device] = (double)nUDR2S.Value;
|
|
|
|
|
LSSens[device] = (double)nUDLSS.Value;
|
|
|
|
|
RSSens[device] = (double)nUDRSS.Value;
|
|
|
|
|
SXSens[device] = (double)nUDSXS.Value;
|
|
|
|
|
SZSens[device] = (double)nUDSZS.Value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-30 22:15:17 +01:00
|
|
|
|
private void Options_Resize(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-12-05 09:55:11 +01:00
|
|
|
|
fLPSettings.AutoScroll = false;
|
|
|
|
|
fLPSettings.AutoScroll = true;
|
2015-11-30 22:15:17 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void lBControls_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (lBControls.SelectedItem != null)
|
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
//lbControlName.Text = lBControls.SelectedItem.ToString();
|
2015-11-30 22:15:17 +01:00
|
|
|
|
if (lBControls.SelectedIndex == 0)
|
|
|
|
|
lbControlName.ForeColor = Color.FromArgb(153, 205, 204);
|
|
|
|
|
else if (lBControls.SelectedIndex == 1)
|
|
|
|
|
lbControlName.ForeColor = Color.FromArgb(247, 131, 150);
|
|
|
|
|
else if (lBControls.SelectedIndex == 2)
|
|
|
|
|
lbControlName.ForeColor = Color.FromArgb(237, 170, 217);
|
|
|
|
|
else if (lBControls.SelectedIndex == 3)
|
|
|
|
|
lbControlName.ForeColor = Color.FromArgb(75, 194, 202);
|
|
|
|
|
else
|
|
|
|
|
lbControlName.ForeColor = Color.White;
|
|
|
|
|
}
|
|
|
|
|
if (lBControls.SelectedIndex == 0) button_MouseHover(bnCross, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 1) button_MouseHover(bnCircle, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 2) button_MouseHover(bnSquare, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 3) button_MouseHover(bnTriangle, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 4) button_MouseHover(bnOptions, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 5) button_MouseHover(bnShare, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 6) button_MouseHover(bnUp, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 7) button_MouseHover(bnDown, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 8) button_MouseHover(bnLeft, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 9) button_MouseHover(bnRight, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 10) button_MouseHover(bnPS, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 11) button_MouseHover(bnL1, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 12) button_MouseHover(bnR1, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 13) button_MouseHover(bnL2, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 14) button_MouseHover(bnR2, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 15) button_MouseHover(bnL3, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 16) button_MouseHover(bnR3, null);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 17) button_MouseHover(bnTouchLeft, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 18) button_MouseHover(bnTouchRight, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 19) button_MouseHover(bnTouchMulti, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 20) button_MouseHover(bnTouchUpper, null);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 21) button_MouseHover(bnLSUp, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 22) button_MouseHover(bnLSDown, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 23) button_MouseHover(bnLSLeft, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 24) button_MouseHover(bnLSRight, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 25) button_MouseHover(bnRSUp, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 26) button_MouseHover(bnRSDown, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 27) button_MouseHover(bnRSLeft, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 28) button_MouseHover(bnRSRight, null);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 29) button_MouseHover(bnGyroZN, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 30) button_MouseHover(bnGyroZP, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 31) button_MouseHover(bnGyroXP, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 32) button_MouseHover(bnGyroXN, null);
|
|
|
|
|
|
|
|
|
|
if (lBControls.SelectedIndex == 33) button_MouseHover(bnSwipeUp, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 34) button_MouseHover(bnSwipeDown, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 35) button_MouseHover(bnSwipeLeft, null);
|
|
|
|
|
if (lBControls.SelectedIndex == 36) button_MouseHover(bnSwipeRight, null);
|
2015-11-28 06:47:26 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2015-11-28 06:47:26 +01:00
|
|
|
|
private void nUDGyroSensitivity_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
GyroSensitivity[device] = (int)Math.Round(nUDGyroSensitivity.Value, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2015-02-08 22:51:52 +01:00
|
|
|
|
private void cBFlashType_SelectedIndexChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
FlashType[device]= (byte)cBFlashType.SelectedIndex;
|
2015-02-08 22:51:52 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void nUDRainbowB_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
Version 1.4.266
Flash Lightbar when at high latency now has the option to choose what
you decide is high latency
Show Notifications now has the option to only show warnings, such as
when a controller cannot be grabbed exclusively
Speaking of bad news for Windows 10 users: Hide DS4 has now been
disabled, until i can figure out why this is, it will be disabled, this
means some games that rely on this may not work properly or at all,
sorry about that
As for good news for Windows 10, did you know you can press Windows + G
to open a game bar which can record games. For Windows 10 users, there's
a new special action: Xbox Game DVR. Pick a trigger (only one button)
and tapping/holding/or double tapping does various things, such as
start/stop recording, save an ongoing recording, take a screenshot (via
the xbox app's option or your own hotkey ie form steam), or just open
the gamebar
Much of the code has been updated with c# 6.0
Added manifest so DS4Windows can notice Windows 10 and high DPIs, also
reorganized files
2015-07-31 05:34:22 +02:00
|
|
|
|
//
|
2015-02-08 22:51:52 +01:00
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-03-28 02:50:40 +01:00
|
|
|
|
}
|