@@ -315,16 +315,12 @@ RND_Renderer::ImGuiOverlay::ImGuiOverlay(VkCommandBuffer cb, VkExtent2D fbRes, V
315315
316316 std::vector<HelpImage> page1;
317317 page1.emplace_back (createHelpImage ((stbi_uc const *)controls, sizeof (controls)));
318+ page1.push_back (createHelpImage ((stbi_uc const *)equip, sizeof (equip)));
319+ page1.push_back (createHelpImage ((stbi_uc const *)swing, sizeof (swing)));
320+ page1.push_back (createHelpImage ((stbi_uc const *)BOTWcontrolScheme_Magnesis, sizeof (BOTWcontrolScheme_Magnesis)));
321+ page1.push_back (createHelpImage ((stbi_uc const *)BOTWcontrolScheme_Whistle, sizeof (BOTWcontrolScheme_Whistle)));
318322 m_helpImagePages.push_back (page1);
319323
320- std::vector<HelpImage> page2;
321- page2.push_back (createHelpImage ((stbi_uc const *)equip, sizeof (equip)));
322- m_helpImagePages.push_back (page2);
323-
324- std::vector<HelpImage> page3;
325- page3.push_back (createHelpImage ((stbi_uc const *)swing, sizeof (swing)));
326- m_helpImagePages.push_back (page3);
327-
328324 VulkanUtils::DebugPipelineBarrier (cb);
329325
330326 // start the first frame right away
@@ -859,20 +855,28 @@ void RND_Renderer::ImGuiOverlay::DrawHelpMenu() {
859855 ImGui::PopStyleColor ();
860856 if (cameraMode == 1 ) {
861857 float deadzone = settings.stickDeadzone ;
862- DrawSettingRow (" Stick Deadzone" , [&]() {
858+ DrawSettingRow (" Thumbstick Deadzone" , [&]() {
863859 if (ImGui::SliderFloat (" ##StickDeadzone" , &deadzone, 0 .0f , 0 .5f , " %.2f" )) {
864860 settings.stickDeadzone = deadzone;
865861 changed = true ;
866862 }
867863 });
868864
869865 float threshold = settings.axisThreshold ;
870- DrawSettingRow (" Axis Threshold" , [&]() {
866+ DrawSettingRow (" Stick Direction Threshold" , [&]() {
871867 if (ImGui::SliderFloat (" ##AxisThreshold" , &threshold, 0 .1f , 0 .9f , " %.2f" )) {
872868 settings.axisThreshold = threshold;
873869 changed = true ;
874870 }
875871 });
872+
873+ DrawSettingRow (" Reset Input Thresholds" , [&]() {
874+ if (ImGui::Button (" Reset##InputThresholds" )) {
875+ settings.stickDeadzone = ModSettings::kDefaultStickDeadzone ;
876+ settings.axisThreshold = ModSettings::kDefaultAxisThreshold ;
877+ changed = true ;
878+ }
879+ });
876880 }
877881 else {
878882 ImGui::Text (" " );
@@ -1099,4 +1103,4 @@ void RND_Renderer::ImGuiOverlay::DrawAndCopyToImage(VkCommandBuffer cb, VkImage
10991103 // prepare for next frame immediately
11001104 ImGui_ImplVulkan_NewFrame ();
11011105 ImGui::NewFrame ();
1102- }
1106+ }
0 commit comments