Input system refactor: Replace 5 callbacks with an interface

This commit is contained in:
Henrik Rydgård committed 2026-02-12 22:52:16 +01:00
1 parent dc554e27eb
commit a6ac956884
7 files changed
+71 -72

No files matched your search

+1 -1
View File
@@ -1432,7 +1432,7 @@ void MainScreen::CreateViews() {
#if !defined(MOBILE_DEVICE)
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
ImageID icon(g_Config.bFullScreen ? "I_RESTORE" : "I_FULLSCREEN");
fullscreenButton_ = logo->Add(new Button(gr->T("FullScreen", "Full Screen"), icon, new AnchorLayoutParams(48, 48, NONE, 0, 0, NONE, Centering::None)));
fullscreenButton_ = logo->Add(new Button("", icon, new AnchorLayoutParams(48, 48, NONE, 0, 0, NONE, Centering::None)));
fullscreenButton_->SetIgnoreText(true);
fullscreenButton_->OnClick.Add([this](UI::EventParams &e) {
if (fullscreenButton_) {