summaryrefslogtreecommitdiff
path: root/converter/converter.cpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-09-21 23:57:23 -0400
committera1xd <[email protected]>2021-09-21 23:57:23 -0400
commita31be9be457effc06571ed7acf75200eb4578d97 (patch)
tree737f65ded18aed765bf5bfdb84678d047dde4fad /converter/converter.cpp
parenthandle lut mode exceptions on apply (diff)
downloadrawaccel-a31be9be457effc06571ed7acf75200eb4578d97.tar.xz
rawaccel-a31be9be457effc06571ed7acf75200eb4578d97.zip
remove converter questions, add notes instead
Diffstat (limited to 'converter/converter.cpp')
-rw-r--r--converter/converter.cpp26
1 files changed, 19 insertions, 7 deletions
diff --git a/converter/converter.cpp b/converter/converter.cpp
index ad92f8c..bb76bce 100644
--- a/converter/converter.cpp
+++ b/converter/converter.cpp
@@ -165,15 +165,11 @@ bool try_convert(const ia_settings_t& ia_settings) {
switch (static_cast<IA_MODES_ENUM>(mode)) {
case IA_QL: {
- bool legacy = !ask("We recommend trying out a new smooth cap style.\n"
- "Use new cap style?");
- ra_settings.argsv.x = convert_quake(ia_settings, legacy);
+ ra_settings.argsv.x = convert_quake(ia_settings, 1);
break;
}
case IA_NAT: {
- bool legacy = !ask("Raw Accel offers a new mode that you might like more than Natural.\n"
- "Wanna try it out now?");
- ra_settings.argsv.x = convert_natural(ia_settings, legacy);
+ ra_settings.argsv.x = convert_natural(ia_settings, 1);
break;
}
case IA_LOG: {
@@ -182,7 +178,7 @@ bool try_convert(const ia_settings_t& ia_settings) {
}
default: return false;
}
-
+
DriverSettings^ new_settings = Marshal::PtrToStructure<DriverSettings^>((IntPtr)&ra_settings);
SettingsErrors^ errors = gcnew SettingsErrors(new_settings);
@@ -191,6 +187,22 @@ bool try_convert(const ia_settings_t& ia_settings) {
return false;
}
+ bool nat = ra_settings.argsv.x.mode == ra::accel_mode::natural;
+ bool nat_or_capped = nat || ra_settings.argsv.x.cap > 0;
+
+ if (nat_or_capped) {
+ Console::WriteLine("NOTE:\n"
+ " Raw Accel features a new cap style that is preferred by many users.\n"
+ " To test it out, run rawaccel.exe, check the 'Gain' option, and click 'Apply'.\n");
+ }
+
+ if (ra_settings.argsv.x.offset > 0) {
+ Console::WriteLine("NOTE:\n"
+ " Offsets in Raw Accel work a bit differently compared to InterAccel,\n"
+ " the '{0}' parameter may need adjustment to compensate.\n",
+ nat ? "decay rate" : "acceleration");
+ }
+
Console::Write("Sending to driver... ");
(gcnew ManagedAccel(gcnew ExtendedSettings(new_settings)))->Activate();
Console::WriteLine("done");