Skip to content

Commit

Permalink
Buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 20, 2023
1 parent dd1396e commit d339a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/GameSettingsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ void GameSettingsScreen::CreateControlsSettings(UI::ViewGroup *controlsSettings)

auto co = GetI18NCategory(I18NCat::CONTROLS);
auto ms = GetI18NCategory(I18NCat::MAINSETTINGS);
auto di = GetI18NCategory(I18NCat::DIALOG);

int deviceType = System_GetPropertyInt(SYSPROP_DEVICE_TYPE);

Expand All @@ -685,7 +686,6 @@ void GameSettingsScreen::CreateControlsSettings(UI::ViewGroup *controlsSettings)

// TVs don't have touch control, at least not yet.
if ((deviceType != DEVICE_TYPE_TV) && (deviceType != DEVICE_TYPE_VR)) {
auto di = GetI18NCategory(I18NCat::DIALOG);
controlsSettings->Add(new ItemHeader(co->T("OnScreen", "On-Screen Touch Controls")));
controlsSettings->Add(new CheckBox(&g_Config.bShowTouchControls, co->T("OnScreen", "On-Screen Touch Controls")));
layoutEditorChoice_ = controlsSettings->Add(new Choice(co->T("Customize Touch Controls")));
Expand Down

0 comments on commit d339a4b

Please sign in to comment.