Skip to content

Commit

Permalink
Add simulated input lag option and a blurb about the bindings window
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox committed Jan 9, 2025
1 parent 1de8840 commit cf89da6
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions mm/2s2h/BenGui/SearchableMenuItems.h
Original file line number Diff line number Diff line change
Expand Up @@ -725,13 +725,36 @@ void AddSettings() {
WIDGET_CVAR_COMBOBOX,
{ .comboBoxOptions = textureFilteringMap } } } } });
// Input Editor
settingsSidebar.push_back({ "Input Editor",
1,
{ { { "Popout Input Editor",
"gWindows.BenInputEditor",
"Enables the separate Input Editor window.",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "2S2H Input Editor" } } } } });
settingsSidebar.push_back(
{ "Controls",
1,
{ { {
"Simulated Input Lag: %d frames",
CVAR_SIMULATED_INPUT_LAG,
"Buffers your inputs to be executed a specified amount of frames later",
WIDGET_CVAR_SLIDER_INT,
{ 0, 6, 0 },
},
{ .widgetName =
"This interface can be a little daunting, please bare with us, we are working to improve "
"the experience and fix some known issues.\n"
"\n"
"Off the bat you may notice a handful of input devices displayed below the 'Clear All' button. "
"Some of these may be other controllers connected to your computer, some may "
"be duplicated controllers (known issue). It is suggested to click on the box with "
"the " ICON_FA_EYE " and name of any controllers that are disconnected or not in use to hide "
"their inputs, and make sure the target controller is visible.\n"
"\n"
"If you experience issues getting your controller to connect, or registering inputs "
"please try closing Steam or any other external input software, or try a different "
"controller to validate if it's a compatability issue.\n",
.widgetType = WIDGET_TEXT },
{ .widgetName = "Bindings", .widgetType = WIDGET_SEPARATOR_TEXT },
{ "Popout Bindings Window",
"gWindows.BenInputEditor",
"Enables the separate Input Editor window.",
WIDGET_WINDOW_BUTTON,
{ .size = UIWidgets::Sizes::Inline, .windowName = "2S2H Input Editor" } } } } });

settingsSidebar.push_back(
{ "Notifications",
Expand Down Expand Up @@ -1823,7 +1846,7 @@ void SearchMenuGetItem(widgetInfo& widget) {
break;
case WIDGET_TEXT:
ImGui::AlignTextToFramePadding();
ImGui::Text(widget.widgetName.c_str());
ImGui::TextWrapped(widget.widgetName.c_str());
break;
case WIDGET_COMBOBOX: {
int32_t* pointer = std::get<int32_t*>(widget.widgetOptions.valuePointer);
Expand Down

0 comments on commit cf89da6

Please sign in to comment.