From a31be9be457effc06571ed7acf75200eb4578d97 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 21 Sep 2021 23:57:23 -0400 Subject: remove converter questions, add notes instead --- converter/converter.cpp | 26 +++++++++++++++++++------- 1 file 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(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((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"); -- cgit v1.2.3