2014-04-27 21:32:09 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Windows.Forms;
|
2015-02-08 22:51:52 +01:00
|
|
|
|
|
2014-11-18 22:23:41 +01:00
|
|
|
|
namespace DS4Windows
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
|
|
|
|
public partial class KBM360 : Form
|
|
|
|
|
{
|
|
|
|
|
private int device;
|
|
|
|
|
private Button button;
|
|
|
|
|
private Options ops;
|
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 SpecActions sA;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private Point oldSC;
|
2014-06-14 21:14:27 +02:00
|
|
|
|
public List<string> macros = new List<string>();
|
|
|
|
|
public List<int> macrostag = new List<int>();
|
2014-12-02 01:07:29 +01:00
|
|
|
|
public bool macrorepeat, newaction;
|
2014-11-14 20:44:50 +01:00
|
|
|
|
RecordBox rb;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
string defaultText;
|
|
|
|
|
string guideText;
|
|
|
|
|
bool loading = true;
|
|
|
|
|
private int alphacolor;
|
|
|
|
|
private Color reg, full;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
int bgc = 240; // Color of the form background, If greyscale color
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private bool extraChanged;
|
2017-11-28 16:49:28 +01:00
|
|
|
|
private Bitmap pnl360BgImage;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-12-13 21:12:03 +01:00
|
|
|
|
public KBM360(int deviceNum, Options ooo, Button buton)
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2017-11-28 16:49:28 +01:00
|
|
|
|
pnl360BgImage = (Bitmap)Properties.Resources._360_map.Clone();
|
|
|
|
|
pnl360Controls.BackgroundImage = null;
|
|
|
|
|
pnl360Controls.BackgroundImageLayout = ImageLayout.None;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
device = deviceNum;
|
|
|
|
|
ops = ooo;
|
|
|
|
|
button = buton;
|
2017-04-06 08:35:36 +02:00
|
|
|
|
DS4ControlSettings dcs = Global.getDS4CSetting(device, button.Name);
|
|
|
|
|
cBToggle.Checked = dcs.keyType.HasFlag(DS4KeyType.Toggle);
|
|
|
|
|
cBScanCode.Checked = dcs.keyType.HasFlag(DS4KeyType.ScanCode);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
oldSC = cBScanCode.Location;
|
|
|
|
|
defaultText = btnDefault.Text;
|
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 (button.Name.StartsWith("bnShift"))
|
2014-11-01 22:49: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
|
|
|
|
Console.Write("shift");
|
2014-11-01 22:49:22 +01:00
|
|
|
|
Text = Properties.Resources.SelectActionTitle.Replace("*action*", button.Name.Substring(7));
|
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
|
|
|
|
btnDefault.Text = Properties.Resources.FallBack;
|
2014-11-04 04:44:55 +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 (button.Name.StartsWith("bn"))
|
2017-05-12 16:48:58 +02: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
|
|
|
|
Text = Properties.Resources.SelectActionTitle.Replace("*action*", button.Name.Substring(2));
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
|
|
|
|
((Button)control).Click += anybtn_Click;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in pnl360Controls.Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2014-04-27 21:32:09 +02:00
|
|
|
|
if (control is Button)
|
2014-06-14 21:14:27 +02:00
|
|
|
|
((Button)control).Click += anybtn_Click;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-11-18 22:23:41 +01:00
|
|
|
|
if (button.Name.Contains("Touch") || button.Name.Contains("Swipe"))
|
2014-04-29 23:56:58 +02:00
|
|
|
|
{
|
2014-11-04 04:44:55 +01:00
|
|
|
|
btnMOUSEDOWN.Visible = false;
|
|
|
|
|
btnMOUSELEFT.Visible = false;
|
|
|
|
|
btnMOUSERIGHT.Visible = false;
|
|
|
|
|
btnMOUSEUP.Visible = false;
|
2014-04-29 23:56:58 +02:00
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-12-13 21:12:03 +01:00
|
|
|
|
ActiveControl = lBMacroOn;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
guideText = btnGuide.Text;
|
|
|
|
|
btnGuide.Text = "";
|
|
|
|
|
cBShiftButton.SelectedIndex = Global.GetDS4STrigger(device, button.Name);
|
|
|
|
|
cBShiftButton.Items[26] = ops.fingerOnTouchpadToolStripMenuItem.Text;
|
|
|
|
|
rBRegular.Checked = true;
|
|
|
|
|
loading = false;
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
2014-11-14 20:44:50 +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
|
|
|
|
public KBM360(SpecActions ooo, Button buton, bool extras)
|
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
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
sA = ooo;
|
|
|
|
|
button = buton;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
Size = new Size(btnVolUp.Location.X + btnVolUp.Size.Width * 2,
|
|
|
|
|
btnNUMENTER.Location.Y + btnNUMENTER.Size.Height * 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
|
|
|
|
if (extras)
|
|
|
|
|
{
|
|
|
|
|
cBScanCode.Checked = button.Text.Contains("(SC)");
|
|
|
|
|
cBToggle.Checked = button.Text.Contains("(Toggle)");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cBScanCode.Visible = false;
|
|
|
|
|
cBToggle.Visible = false;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02: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
|
|
|
|
gBExtras.Visible = false;
|
|
|
|
|
bnMacro.Visible = false;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
X360Label.Visible = false;
|
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
|
|
|
|
Text = Properties.Resources.SelectActionTitle.Replace("*action*", "Trigger");
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02: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 (control is Button)
|
|
|
|
|
((Button)control).Click += anybtn_Click;
|
2017-05-12 16:48:58 +02: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
|
|
|
|
btnMOUSEDOWN.Visible = false;
|
|
|
|
|
btnMOUSELEFT.Visible = false;
|
|
|
|
|
btnMOUSERIGHT.Visible = false;
|
|
|
|
|
btnMOUSEUP.Visible = false;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
rBRegular.Visible = false;
|
|
|
|
|
rBShiftModifer.Visible = false;
|
|
|
|
|
pBMouse.Visible = false;
|
|
|
|
|
btnLEFTMOUSE.Visible = false;
|
|
|
|
|
btn4THMOUSE.Visible = false;
|
|
|
|
|
pnl360Controls.Visible = false;
|
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
|
|
|
|
ActiveControl = lBMacroOn;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
btnGuide.Text = "";
|
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
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
public void anybtn_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (rb == null && sender is Button && ((Button)sender).Name != "bnMacro" && ((Button)sender).Name != "bnTest")
|
2014-04-27 21:32:09 +02:00
|
|
|
|
{
|
2014-05-28 04:49:58 +02:00
|
|
|
|
Button bn = ((Button)sender);
|
2014-12-17 19:29:22 +01:00
|
|
|
|
macrostag.Clear();
|
2015-12-18 07:25:51 +01:00
|
|
|
|
string keyname;
|
|
|
|
|
ushort val;
|
|
|
|
|
/*if (((Button)sender).Text.Contains('↑') || ((Button)sender).Text.Contains('↓') || ((Button)sender).Text.Contains('→') || ((Button)sender).Text.Contains('←') || ((Button)sender).Text.Contains('Ø'))
|
|
|
|
|
keyname = ((Button)sender).Tag.ToString();
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else if (((Button)sender).Font.Name == "Webdings")
|
|
|
|
|
{
|
|
|
|
|
if (((Button)sender).Text == "9")
|
|
|
|
|
keyname = "Previous Track";
|
|
|
|
|
else if (((Button)sender).Text == "<")
|
|
|
|
|
keyname = "Stop Track";
|
|
|
|
|
else if (((Button)sender).Text == "4")
|
|
|
|
|
keyname = "Play/Pause";
|
|
|
|
|
else if (((Button)sender).Text == ":")
|
|
|
|
|
keyname = "Next Track";
|
|
|
|
|
else
|
|
|
|
|
keyname = "How did you get here?";
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
else */
|
2017-05-12 16:48:58 +02:00
|
|
|
|
if (bn.Tag == null)
|
|
|
|
|
keyname = bn.Text;
|
|
|
|
|
else if (bn.Tag.ToString().Contains("X360"))
|
|
|
|
|
keyname = bn.Tag.ToString().Substring(4);
|
|
|
|
|
else if (bn.Tag != null && ushort.TryParse(bn.Tag.ToString(), out val))
|
2015-12-18 07:25:51 +01:00
|
|
|
|
keyname = ((Keys)val).ToString();
|
2014-04-27 21:32:09 +02:00
|
|
|
|
else
|
2017-05-12 16:48:58 +02:00
|
|
|
|
keyname = bn.Tag.ToString();
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
object keytag;
|
|
|
|
|
//ushort val;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
if (bn.Tag != null && bn.Tag.ToString().Contains("X360"))
|
2017-04-11 22:57:39 +02:00
|
|
|
|
{
|
|
|
|
|
//keytag = ((Button)sender).Tag.ToString().Substring(4);
|
2017-05-12 16:48:58 +02:00
|
|
|
|
keytag = Global.getX360ControlsByName(bn.Tag.ToString().Substring(4));
|
2017-04-11 22:57:39 +02:00
|
|
|
|
DS4Controls psButton = Global.getDS4ControlsByName(button.Name);
|
|
|
|
|
if ((X360Controls)keytag == Global.getDefaultX360ControlBinding(psButton) &&
|
|
|
|
|
!cBScanCode.Checked && !cBToggle.Checked && !rBShiftModifer.Checked)
|
|
|
|
|
{
|
|
|
|
|
// Reset action
|
|
|
|
|
keytag = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
else if (bn.Tag != null && ushort.TryParse(bn.Tag.ToString(), out val))
|
2015-12-18 07:25:51 +01:00
|
|
|
|
keytag = val;
|
2014-05-12 07:48:50 +02:00
|
|
|
|
else
|
2017-05-12 16:48:58 +02:00
|
|
|
|
keytag = bn.Tag;
|
2014-12-17 19:29:22 +01:00
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
lBMacroOn.Visible = false;
|
2018-03-18 20:58:29 +01:00
|
|
|
|
string extras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
extras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
KeyValuePair<object, string> tag = new KeyValuePair<object, string>(keytag, extras);
|
2018-03-18 20:58:29 +01:00
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
newaction = true;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
int value;
|
|
|
|
|
bool tagisint = keytag != null && int.TryParse(keytag.ToString(), out value);
|
|
|
|
|
bool scanavail = tagisint;
|
|
|
|
|
bool toggleavil = tagisint;
|
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 (ops != null)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
|
|
|
|
ops.ChangeButtonText(button, rBShiftModifer.Checked, tag,
|
|
|
|
|
(scanavail ? cBScanCode.Checked : false), (toggleavil ? cBToggle.Checked : false),
|
|
|
|
|
false, false, cBShiftButton.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
|
|
|
|
else if (sA != null)
|
|
|
|
|
{
|
|
|
|
|
button.Text = keyname;
|
|
|
|
|
button.Tag = keytag;
|
|
|
|
|
button.ForeColor = Color.Black;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
this.Close();
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
private string GetExtras()
|
|
|
|
|
{
|
|
|
|
|
string t =(byte)nUDHeavy.Value + "," + (byte)nUDLight.Value + "," +
|
|
|
|
|
(cBLightbar.Checked ? "1" + "," + tBRedBar.Value + "," + tBGreenBar.Value + "," + tBBlueBar.Value + "," + nUDLightFlash.Value: "0,0,0,0,0") + "," +
|
|
|
|
|
(cBMouse.Checked ? "1" + "," + (byte)nUDMouse.Value : "0,0");
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
return t;
|
|
|
|
|
}
|
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
|
|
|
|
|
2018-03-18 20:58:29 +01:00
|
|
|
|
private bool IsUsingExtras()
|
|
|
|
|
{
|
|
|
|
|
bool result = false;
|
|
|
|
|
result = result || (nUDHeavy.Value != 0);
|
|
|
|
|
result = result || (nUDLight.Value != 0);
|
|
|
|
|
result = result || (cBLightbar.Checked);
|
|
|
|
|
result = result ||
|
|
|
|
|
(tBRedBar.Value != 255 && tBGreenBar.Value != 255 &&
|
|
|
|
|
tBBlueBar.Value != 255);
|
|
|
|
|
|
|
|
|
|
result = result || (nUDLightFlash.Value != 0);
|
|
|
|
|
result = result || (cBMouse.Checked);
|
|
|
|
|
result = result || (nUDMouse.Value != 25);
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 21:32:09 +02:00
|
|
|
|
private void finalMeasure(object sender, FormClosedEventArgs e)
|
|
|
|
|
{
|
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 (ops != null)
|
2014-11-14 20:44:50 +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 (rb != null) //if record macro is open
|
|
|
|
|
{
|
|
|
|
|
if (!rb.saved && rb.macros.Count > 0)
|
|
|
|
|
if (MessageBox.Show(Properties.Resources.SaveRecordedMacro, "DS4Windows", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
|
|
|
|
|
rb.btnSave_Click(this, null);
|
|
|
|
|
}
|
|
|
|
|
if (lBMacroOn.Visible)
|
|
|
|
|
{
|
2018-03-18 20:58:29 +01:00
|
|
|
|
string extras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
extras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
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> tag = new KeyValuePair<object, string>(macrostag.ToArray(), extras);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
ops.ChangeButtonText(button, rBShiftModifer.Checked, tag, cBScanCode.Checked, false, lBMacroOn.Visible, macrorepeat, cBShiftButton.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
|
|
|
|
}
|
|
|
|
|
else if (!newaction)
|
|
|
|
|
{
|
2018-03-18 20:58:29 +01:00
|
|
|
|
string extras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
extras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
int value;
|
|
|
|
|
object tt = Global.GetDS4Action(device, button.Name, rBShiftModifer.Checked);
|
|
|
|
|
bool tagisint = tt != null
|
|
|
|
|
&& int.TryParse(tt.ToString(), out value);
|
|
|
|
|
bool scanavail = tagisint;
|
|
|
|
|
bool toggleavil = tagisint;
|
|
|
|
|
KeyValuePair<object, string> tag;
|
|
|
|
|
if (tt is X360Controls)
|
|
|
|
|
tag = new KeyValuePair<object, string>(getX360ControlsByName((X360Controls)tt), extras);
|
|
|
|
|
else
|
|
|
|
|
tag = new KeyValuePair<object, string>(tt, extras);
|
|
|
|
|
ops.ChangeButtonText(button, rBShiftModifer.Checked, tag, (scanavail ? cBScanCode.Checked : false), (toggleavil ? cBToggle.Checked : false), lBMacroOn.Visible, macrorepeat, cBShiftButton.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
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
//ops.Toggle_Bn((scanavail ? cBScanCode.Checked : false), (toggleavil ? cBToggle.Checked : false), lBMacroOn.Visible, macrorepeat);
|
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
|
|
|
|
ops.UpdateLists();
|
2014-12-02 01:07:29 +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 (sA != null)
|
2014-12-02 01:07:29 +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 (button.Tag != null)
|
|
|
|
|
{
|
|
|
|
|
int key;
|
|
|
|
|
if (int.TryParse(button.Tag.ToString(), out key))
|
|
|
|
|
button.Text = ((Keys)key).ToString() +
|
|
|
|
|
(cBScanCode.Checked ? " (SC)" : "") +
|
|
|
|
|
(cBToggle.Checked ? " (Toggle)" : "");
|
|
|
|
|
}
|
|
|
|
|
//button.Font = new Font(button.Font, (cBScanCode.Checked ? FontStyle.Bold : FontStyle.Regular) | (cBToggle.Checked ? FontStyle.Italic : FontStyle.Regular));
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Key_Down_Action(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (rb == null && !(ActiveControl is NumericUpDown) && !(ActiveControl is TrackBar))
|
2014-11-14 20:44:50 +01:00
|
|
|
|
{
|
|
|
|
|
lBMacroOn.Visible = false;
|
2018-03-18 20:58:29 +01:00
|
|
|
|
string extras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
extras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
KeyValuePair<object, string> tag = new KeyValuePair<object, string>(e.KeyValue, extras);
|
|
|
|
|
newaction = true;
|
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 (ops != null)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
|
|
|
|
ops.ChangeButtonText(button, rBShiftModifer.Checked, tag,
|
|
|
|
|
cBScanCode.Checked, cBToggle.Checked, false, false, cBShiftButton.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
|
|
|
|
else if (sA != null)
|
|
|
|
|
{
|
|
|
|
|
button.Text = e.KeyCode.ToString();
|
|
|
|
|
button.Tag = e.KeyValue;
|
|
|
|
|
button.ForeColor = Color.Black;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-11-14 20:44:50 +01:00
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
private void Key_Press_Action(object sender, KeyEventArgs e)
|
|
|
|
|
{
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (rb == null && !(ActiveControl is NumericUpDown) && !(ActiveControl is TrackBar))
|
2014-11-14 20:44:50 +01:00
|
|
|
|
{
|
|
|
|
|
lBMacroOn.Visible = false;
|
2018-03-18 20:58:29 +01:00
|
|
|
|
string extras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
extras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
KeyValuePair<object, string> tag = new KeyValuePair<object, string>(e.KeyValue, extras);
|
|
|
|
|
newaction = true;
|
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 (ops != null)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
|
|
|
|
ops.ChangeButtonText(button, rBShiftModifer.Checked, tag,
|
|
|
|
|
cBScanCode.Checked, cBToggle.Checked, false, false, cBShiftButton.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
|
|
|
|
else if (sA != null)
|
|
|
|
|
{
|
|
|
|
|
button.Text = e.KeyCode.ToString();
|
|
|
|
|
button.Tag = e.KeyValue;
|
|
|
|
|
button.ForeColor = Color.Black;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-11-14 20:44:50 +01:00
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2014-05-28 04:49:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
private void btnMacro_Click(object sender, EventArgs e)
|
2014-11-14 20:44:50 +01:00
|
|
|
|
{
|
2014-12-17 19:29:22 +01:00
|
|
|
|
gBExtras.Controls.Add(cBScanCode);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
cBScanCode.Location = new Point(lBTip.Location.X, lBTip.Location.Y + lBTip.Size.Height);
|
2014-12-13 21:12:03 +01:00
|
|
|
|
rb = new RecordBox(this);
|
2014-11-14 20:44:50 +01:00
|
|
|
|
rb.TopLevel = false;
|
|
|
|
|
rb.Dock = DockStyle.Fill;
|
|
|
|
|
rb.Visible = true;
|
|
|
|
|
Controls.Add(rb);
|
|
|
|
|
rb.BringToFront();
|
2015-12-18 07:25:51 +01:00
|
|
|
|
rb.FormClosed += delegate { Controls.Add(cBScanCode); cBScanCode.Location = oldSC; ActiveControl = lBMacroOn; rb = null; };
|
2014-06-14 21:14:27 +02:00
|
|
|
|
}
|
Rest of DS4Windows has been upped to .NET 4.5 (If you have .net 4/already can run DS4Windows, this won't affect you), thanks to this update, you can now...
Add delay to macros from one millisecond to 60 seconds, macros with delays only run once until pressed again. Without delays, the macro can be repeated while held down.
Profiles and settings are now back inside the application folder to help portability. It will remain in appdata as previous versions if DS4Windows is in a admin folder, I may try to add a setting for location saving.
Import profile option will automatically go to the appdata profile folder, auto profiles and settings will automatically copy over.
Option to delete the appdata folder if not in use in the settings tab, this way it helps with cleanup.
Another fix for auto profiles startup bug
Better reading of autoprofile program path names
Now only one instance of DS4Windows is possible, if another DS4Tool or DS4Windows that is not this version is started, this DS4Windows comes back into focus.
UI fixes
2014-06-10 21:45:09 +02:00
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
protected override bool IsInputKey(Keys keyData)
|
|
|
|
|
{
|
|
|
|
|
switch (keyData)
|
|
|
|
|
{
|
|
|
|
|
case Keys.Right:
|
|
|
|
|
case Keys.Left:
|
|
|
|
|
case Keys.Up:
|
|
|
|
|
case Keys.Down:
|
|
|
|
|
return true;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
|
|
|
|
case (Keys.Shift | Keys.Right):
|
|
|
|
|
case (Keys.Shift | Keys.Left):
|
|
|
|
|
case (Keys.Shift | Keys.Up):
|
|
|
|
|
case (Keys.Shift | Keys.Down):
|
2014-06-14 21:14:27 +02:00
|
|
|
|
return true;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
|
|
|
|
default: break;
|
2014-06-14 21:14:27 +02:00
|
|
|
|
}
|
|
|
|
|
return base.IsInputKey(keyData);
|
Rest of DS4Windows has been upped to .NET 4.5 (If you have .net 4/already can run DS4Windows, this won't affect you), thanks to this update, you can now...
Add delay to macros from one millisecond to 60 seconds, macros with delays only run once until pressed again. Without delays, the macro can be repeated while held down.
Profiles and settings are now back inside the application folder to help portability. It will remain in appdata as previous versions if DS4Windows is in a admin folder, I may try to add a setting for location saving.
Import profile option will automatically go to the appdata profile folder, auto profiles and settings will automatically copy over.
Option to delete the appdata folder if not in use in the settings tab, this way it helps with cleanup.
Another fix for auto profiles startup bug
Better reading of autoprofile program path names
Now only one instance of DS4Windows is possible, if another DS4Tool or DS4Windows that is not this version is started, this DS4Windows comes back into focus.
UI fixes
2014-06-10 21:45:09 +02:00
|
|
|
|
}
|
2014-06-14 21:14:27 +02:00
|
|
|
|
protected override void OnKeyDown(KeyEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
base.OnKeyDown(e);
|
|
|
|
|
switch (e.KeyCode)
|
|
|
|
|
{
|
|
|
|
|
case Keys.Left:
|
|
|
|
|
case Keys.Right:
|
|
|
|
|
case Keys.Up:
|
|
|
|
|
case Keys.Down:
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2014-06-14 21:14:27 +02:00
|
|
|
|
if (e.Shift)
|
|
|
|
|
{
|
Rest of DS4Windows has been upped to .NET 4.5 (If you have .net 4/already can run DS4Windows, this won't affect you), thanks to this update, you can now...
Add delay to macros from one millisecond to 60 seconds, macros with delays only run once until pressed again. Without delays, the macro can be repeated while held down.
Profiles and settings are now back inside the application folder to help portability. It will remain in appdata as previous versions if DS4Windows is in a admin folder, I may try to add a setting for location saving.
Import profile option will automatically go to the appdata profile folder, auto profiles and settings will automatically copy over.
Option to delete the appdata folder if not in use in the settings tab, this way it helps with cleanup.
Another fix for auto profiles startup bug
Better reading of autoprofile program path names
Now only one instance of DS4Windows is possible, if another DS4Tool or DS4Windows that is not this version is started, this DS4Windows comes back into focus.
UI fixes
2014-06-10 21:45:09 +02:00
|
|
|
|
|
2014-06-14 21:14:27 +02:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
break;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
default: break;
|
2014-06-14 21:14:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private void SetColorToolTip(object sender, EventArgs e)
|
2014-12-02 01:07:29 +01:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
TrackBar tb = (TrackBar)sender;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
cBLightbar.Checked = true;
|
2015-12-18 07:25:51 +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);
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
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);
|
|
|
|
|
bnColor.BackColor = Color.FromArgb((alphacolor > 205 ? 255 : (alphacolor + 50)), full);
|
2015-12-18 07:25:51 +01:00
|
|
|
|
((Label)gBExtras.Controls.Find("lb" + tb.Name.Substring(2, tb.Name.Length - 5) + "V", true)[0]).Text = tb.Value.ToString();
|
|
|
|
|
extraChanged = true;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
|
2014-12-02 01:07:29 +01: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;
|
|
|
|
|
if (light == 1) return Color.FromName("White");
|
|
|
|
|
else if (rgb.R == rgb.G && rgb.G == rgb.B) return Color.FromName("White");
|
|
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void bnColor_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
advColorDialog.Color = bnColor.BackColor;
|
|
|
|
|
if (advColorDialog.ShowDialog() == DialogResult.OK)
|
|
|
|
|
{
|
|
|
|
|
cBLightbar.Checked = true;
|
|
|
|
|
bnColor.BackColor = advColorDialog.Color;
|
|
|
|
|
tBRedBar.Value = advColorDialog.Color.R;
|
|
|
|
|
tBGreenBar.Value = advColorDialog.Color.G;
|
|
|
|
|
tBBlueBar.Value = advColorDialog.Color.B;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
extraChanged = true;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2017-05-12 16:48:58 +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-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-03-07 20:35:13 +01:00
|
|
|
|
private void advColorDialog_OnUpdateColor(Color color, EventArgs e)
|
2014-12-02 01:07:29 +01:00
|
|
|
|
{
|
2019-03-07 20:35:13 +01:00
|
|
|
|
if (device < 4)
|
2014-12-02 01:07:29 +01:00
|
|
|
|
{
|
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-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private void Hightlight_Hover(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
pBHighlight.Visible = true;
|
|
|
|
|
lb360Tip.Visible = true;
|
|
|
|
|
Control c = (Control)sender;
|
|
|
|
|
Size s = c.Size;
|
|
|
|
|
Size s2 = pBHighlight.Size;
|
|
|
|
|
Point l = c.Location;
|
|
|
|
|
pBHighlight.Location = new Point(l.X + s.Width / 2 - s2.Width / 2, l.Y + s.Height / 2 - s2.Height / 2);
|
|
|
|
|
Point l2 = pBHighlight.Location;
|
|
|
|
|
lb360Tip.Text = X360ControlName(c.Name.Substring(3));
|
|
|
|
|
lb360Tip.Location = new Point(l2.X + s2.Width / 2 - lb360Tip.Width / 2, l2.Y - 20);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string X360ControlName(string v)
|
|
|
|
|
{
|
|
|
|
|
string s = v;
|
|
|
|
|
for (int i = s.Length - 1; i > (s.StartsWith("L") || s.StartsWith("R") ? 1 : 0); i--)
|
|
|
|
|
{
|
|
|
|
|
if (s[i] >= 'A' && s[i] <= 'Z')
|
|
|
|
|
s = s.Insert(i, " ");
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (s == "Guide")
|
|
|
|
|
s = guideText;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
return s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Highlight_Leave(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
pBHighlight.Visible = false;
|
|
|
|
|
lb360Tip.Visible = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void rBShift_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!loading && extraChanged)
|
2018-03-18 20:58:29 +01:00
|
|
|
|
{
|
|
|
|
|
string strextras = null;
|
|
|
|
|
if (IsUsingExtras())
|
|
|
|
|
{
|
|
|
|
|
strextras = GetExtras();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Global.UpdateDS4Extra(device, button.Name, !rBShiftModifer.Checked, strextras);
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
object tagO = Global.GetDS4Action(device, button.Name, rBShiftModifer.Checked);
|
|
|
|
|
if (rBShiftModifer.Checked)
|
|
|
|
|
btnDefault.Text = Properties.Resources.FallBack;
|
|
|
|
|
else
|
|
|
|
|
btnDefault.Text = defaultText;
|
|
|
|
|
|
|
|
|
|
cBShiftButton.Visible = rBShiftModifer.Checked;
|
|
|
|
|
macrostag.Clear();
|
|
|
|
|
lBMacroOn.Visible = false;
|
|
|
|
|
newaction = false;
|
|
|
|
|
Highlight_Leave(null, null);
|
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
|
|
|
|
((Button)control).BackColor = SystemColors.Control;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (tagO != null)
|
|
|
|
|
{
|
|
|
|
|
if (tagO is int || tagO is ushort)
|
|
|
|
|
{
|
|
|
|
|
int tag = int.Parse(tagO.ToString());
|
|
|
|
|
int i;
|
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (int.TryParse(control.Tag?.ToString(), out i) && i == tag)
|
|
|
|
|
{
|
|
|
|
|
((Button)control).BackColor = Color.LightGreen;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
|
|
|
|
else if (tagO is int[])
|
|
|
|
|
{
|
|
|
|
|
int[] tag = (int[])tagO;
|
2017-05-12 16:48:58 +02:00
|
|
|
|
lBMacroOn.Visible = true;
|
|
|
|
|
foreach (int i in tag)
|
|
|
|
|
macrostag.Add(i);
|
|
|
|
|
|
2016-10-21 07:43:26 +02:00
|
|
|
|
if (Global.GetDS4KeyType(device, button.Name, rBShiftModifer.Checked).HasFlag(DS4KeyType.HoldMacro))
|
2015-12-18 07:25:51 +01:00
|
|
|
|
macrorepeat = true;
|
|
|
|
|
}
|
|
|
|
|
else if (tagO is string || tagO is X360Controls)
|
|
|
|
|
{
|
|
|
|
|
string tag;
|
|
|
|
|
if (tagO is X360Controls)
|
|
|
|
|
tag = getX360ControlsByName((X360Controls)tagO);
|
|
|
|
|
else
|
|
|
|
|
tag = tagO.ToString();
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control.Tag?.ToString() == tag)
|
|
|
|
|
{
|
|
|
|
|
((Button)control).BackColor = Color.LightGreen;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in pnl360Controls.Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control.Tag?.ToString().Substring(4) == tag)
|
|
|
|
|
{
|
|
|
|
|
Hightlight_Hover(((Button)control), null);
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
btnDefault.BackColor = Color.LightGreen;
|
|
|
|
|
if (rBRegular.Checked && ops.defaults.ContainsKey(button.Name))
|
|
|
|
|
{
|
|
|
|
|
tagO = ops.defaults[button.Name];
|
|
|
|
|
string tag;
|
|
|
|
|
if (tagO is X360Controls)
|
|
|
|
|
tag = getX360ControlsByName((X360Controls)tagO);
|
|
|
|
|
else
|
|
|
|
|
tag = tagO.ToString();
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control.Tag != null && control.Tag.ToString().Contains("X360") ? control.Tag?.ToString().Substring(4) == tag : control.Tag?.ToString() == tag)
|
|
|
|
|
{
|
|
|
|
|
((Button)control).BackColor = Color.LightGreen;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
foreach (Control control in pnl360Controls.Controls)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control is Button)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2015-12-18 07:25:51 +01:00
|
|
|
|
if (control.Tag?.ToString().Substring(4) == tag)
|
|
|
|
|
{
|
|
|
|
|
Hightlight_Hover(((Button)control), null);
|
|
|
|
|
break;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2017-03-29 03:41:17 +02:00
|
|
|
|
string dcExtras = Global.GetDS4Extra(device, button.Name, rBShiftModifer.Checked);
|
|
|
|
|
string[] extras = null;
|
|
|
|
|
if (!string.IsNullOrEmpty(dcExtras))
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
2017-03-29 03:41:17 +02:00
|
|
|
|
extras = dcExtras.Split(',');
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2017-03-29 03:41:17 +02:00
|
|
|
|
|
|
|
|
|
if (extras != null)
|
2015-12-18 07:25:51 +01:00
|
|
|
|
{
|
2017-03-29 03:41:17 +02:00
|
|
|
|
int b;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if (int.TryParse(extras[0], out b)) nUDHeavy.Value = b;
|
|
|
|
|
if (int.TryParse(extras[1], out b)) nUDLight.Value = b;
|
|
|
|
|
if (int.TryParse(extras[2], out b))
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2017-03-29 03:41:17 +02:00
|
|
|
|
if (b == 1)
|
|
|
|
|
{
|
|
|
|
|
cBLightbar.Checked = true;
|
|
|
|
|
if (int.TryParse(extras[3], out b)) tBRedBar.Value = b;
|
|
|
|
|
if (int.TryParse(extras[4], out b)) tBGreenBar.Value = b;
|
|
|
|
|
if (int.TryParse(extras[5], out b)) tBBlueBar.Value = b;
|
|
|
|
|
if (int.TryParse(extras[6], out b)) nUDLightFlash.Value = b;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
tBRedBar.Value = 255;
|
|
|
|
|
tBGreenBar.Value = 255;
|
|
|
|
|
tBBlueBar.Value = 255;
|
|
|
|
|
nUDLightFlash.Value = 0;
|
|
|
|
|
cBLightbar.Checked = false;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-29 03:41:17 +02:00
|
|
|
|
if (int.TryParse(extras[7], out b))
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
2017-03-29 03:41:17 +02:00
|
|
|
|
if (b == 1)
|
|
|
|
|
{
|
|
|
|
|
cBMouse.Checked = true;
|
|
|
|
|
if (int.TryParse(extras[8], out b)) nUDMouse.Value = b;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
nUDMouse.Value = 25;
|
|
|
|
|
cBMouse.Checked = false;
|
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
2017-03-29 03:41:17 +02:00
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
nUDHeavy.Value = 0;
|
|
|
|
|
nUDLight.Value = 0;
|
|
|
|
|
tBRedBar.Value = 255;
|
|
|
|
|
tBGreenBar.Value = 255;
|
|
|
|
|
tBBlueBar.Value = 255;
|
|
|
|
|
nUDLightFlash.Value = 0;
|
|
|
|
|
cBLightbar.Checked = false;
|
|
|
|
|
nUDMouse.Value = 25;
|
|
|
|
|
cBMouse.Checked = false;
|
|
|
|
|
}
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2017-03-29 03:41:17 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
extraChanged = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string getX360ControlsByName(X360Controls key)
|
|
|
|
|
{
|
|
|
|
|
switch (key)
|
|
|
|
|
{
|
|
|
|
|
case X360Controls.Back: return "Back";
|
|
|
|
|
case X360Controls.LS: return "Left Stick";
|
|
|
|
|
case X360Controls.RS: return "Right Stick";
|
|
|
|
|
case X360Controls.Start: return "Start";
|
|
|
|
|
case X360Controls.DpadUp: return "Up Button";
|
|
|
|
|
case X360Controls.DpadRight: return "Right Button";
|
|
|
|
|
case X360Controls.DpadDown: return "Down Button";
|
|
|
|
|
case X360Controls.DpadLeft: return "Left Button";
|
|
|
|
|
|
|
|
|
|
case X360Controls.LB: return "Left Bumper";
|
|
|
|
|
case X360Controls.RB: return "Right Bumper";
|
|
|
|
|
case X360Controls.Y: return "Y Button";
|
|
|
|
|
case X360Controls.B: return "B Button";
|
|
|
|
|
case X360Controls.A: return "A Button";
|
|
|
|
|
case X360Controls.X: return "X Button";
|
|
|
|
|
|
|
|
|
|
case X360Controls.Guide: return "Guide";
|
|
|
|
|
case X360Controls.LXNeg: return "Left X-Axis-";
|
|
|
|
|
case X360Controls.LYNeg: return "Left Y-Axis-";
|
|
|
|
|
case X360Controls.RXNeg: return "Right X-Axis-";
|
|
|
|
|
case X360Controls.RYNeg: return "Right Y-Axis-";
|
|
|
|
|
|
|
|
|
|
case X360Controls.LXPos: return "Left X-Axis+";
|
|
|
|
|
case X360Controls.LYPos: return "Left Y-Axis+";
|
|
|
|
|
case X360Controls.RXPos: return "Right X-Axis+";
|
|
|
|
|
case X360Controls.RYPos: return "Right Y-Axis+";
|
|
|
|
|
case X360Controls.LT: return "Left Trigger";
|
|
|
|
|
case X360Controls.RT: return "Right Trigger";
|
|
|
|
|
|
|
|
|
|
case X360Controls.LeftMouse: return "Left Mouse Button";
|
|
|
|
|
case X360Controls.RightMouse: return "Right Mouse Button";
|
|
|
|
|
case X360Controls.MiddleMouse: return "Middle Mouse Button";
|
|
|
|
|
case X360Controls.FourthMouse: return "4th Mouse Button";
|
|
|
|
|
case X360Controls.FifthMouse: return "5th Mouse Button";
|
|
|
|
|
case X360Controls.WUP: return "Mouse Wheel Up";
|
|
|
|
|
case X360Controls.WDOWN: return "Mouse Wheel Down";
|
|
|
|
|
case X360Controls.MouseUp: return "Mouse Up";
|
|
|
|
|
case X360Controls.MouseDown: return "Mouse Down";
|
|
|
|
|
case X360Controls.MouseLeft: return "Mouse Left";
|
|
|
|
|
case X360Controls.MouseRight: return "Mouse Right";
|
|
|
|
|
case X360Controls.Unbound: return "Unbound";
|
2017-05-12 16:48:58 +02:00
|
|
|
|
default: break;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
return "Unbound";
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
private void bnTest_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2017-05-12 16:48:58 +02:00
|
|
|
|
Button btn = (Button)sender;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
if (device < 4)
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
|
|
|
|
if (btn.Text == Properties.Resources.TestText)
|
2014-12-02 01:07:29 +01:00
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble((byte)nUDHeavy.Value, (byte)nUDLight.Value, device);
|
2017-05-12 16:48:58 +02:00
|
|
|
|
btn.Text = Properties.Resources.StopText;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble(0, 0, device);
|
2017-05-12 16:48:58 +02:00
|
|
|
|
btn.Text = Properties.Resources.TestText;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
else
|
2017-05-12 16:48:58 +02:00
|
|
|
|
{
|
|
|
|
|
if (btn.Text == Properties.Resources.TestText)
|
2014-12-02 01:07:29 +01:00
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble((byte)nUDHeavy.Value, (byte)nUDLight.Value, 0);
|
2017-05-12 16:48:58 +02:00
|
|
|
|
btn.Text = Properties.Resources.StopText;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble(0, 0, 0);
|
2017-05-12 16:48:58 +02:00
|
|
|
|
btn.Text = Properties.Resources.TestText;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
}
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
private void ExtraChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
extraChanged = true;
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-28 16:49:28 +01:00
|
|
|
|
private void pnl360Controls_Paint(object sender, PaintEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
e.Graphics.DrawImage(pnl360BgImage, new Rectangle(0, 13, Convert.ToInt32(pnl360Controls.Width), Convert.ToInt32(pnl360Controls.Height - 26)), new Rectangle(0, 0, Convert.ToInt32(pnl360BgImage.Width), Convert.ToInt32(pnl360BgImage.Height)), GraphicsUnit.Pixel);
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-02 01:07:29 +01:00
|
|
|
|
private void nUD_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (bnTest.Text != Properties.Resources.TestText)
|
|
|
|
|
{
|
|
|
|
|
if (device < 4)
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble((byte)nUDHeavy.Value, (byte)nUDLight.Value, device);
|
2014-12-02 01:07:29 +01:00
|
|
|
|
else
|
2014-12-13 21:12:03 +01:00
|
|
|
|
Program.rootHub.setRumble((byte)nUDHeavy.Value, (byte)nUDLight.Value, 0);
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2017-05-12 16:48:58 +02:00
|
|
|
|
|
2015-12-18 07:25:51 +01:00
|
|
|
|
extraChanged = true;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void nUDMouse_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
cBMouse.Checked = true;
|
2015-12-18 07:25:51 +01:00
|
|
|
|
extraChanged = true;
|
2014-12-02 01:07:29 +01:00
|
|
|
|
}
|
2014-04-27 21:32:09 +02:00
|
|
|
|
}
|
|
|
|
|
}
|