Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed input disable to only be forced on switch #941

Merged
merged 10 commits into from
Aug 8, 2022
6 changes: 4 additions & 2 deletions libultraship/libultraship/ImGuiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,11 @@ namespace SohImGui {

if (ImGui::BeginMenu("Controller"))
{

#ifndef __SWITCH__
KiritoDv marked this conversation as resolved.
Show resolved Hide resolved
EnhancementCheckbox("Use Controller Navigation", "gControlNav");
Tooltip("Allows controller navigation of the menu bar\nD-pad to move between items, A to select, and X to grab focus on the menu bar");

#endif
EnhancementCheckbox("Controller Configuration", "gControllerConfigurationEnabled");
controller->Opened = CVar_GetS32("gControllerConfigurationEnabled", 0);

Expand Down Expand Up @@ -1303,7 +1305,7 @@ namespace SohImGui {
{
val = 20;
}

CVar_SetS32(fps_cvar, val);
needs_save = true;
}
Expand Down
6 changes: 5 additions & 1 deletion libultraship/libultraship/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ extern "C" {
pad->gyro_x = 0;
pad->gyro_y = 0;

if (!CVar_GetS32("gOpenMenuBar", 0)) {
#ifdef __SWITCH__
if(!CVar_GetS32("gOpenMenuBar", 0)) {
#else
if(!(CVar_GetS32("gControlNav", 0) && CVar_GetS32("gOpenMenuBar", 0))) {
KiritoDv marked this conversation as resolved.
Show resolved Hide resolved
KiritoDv marked this conversation as resolved.
Show resolved Hide resolved
#endif
Ship::Window::ControllerApi->WriteToPad(pad);
}

Expand Down