MCPcopy Create free account
hub / github.com/cemu-project/Cemu / OnOptionsInput

Method OnOptionsInput

src/gui/MainWindow.cpp:871–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

869}
870
871void MainWindow::OnOptionsInput(wxCommandEvent& event)
872{
873 switch (event.GetId())
874 {
875 case MAINFRAME_MENU_ID_OPTIONS_FULLSCREEN:
876 {
877 const bool state = m_fullscreenMenuItem->IsChecked();
878 SetFullScreen(state);
879 break;
880 }
881 case MAINFRAME_MENU_ID_OPTIONS_SECOND_WINDOW_PADVIEW:
882 {
883 GetConfig().pad_open = !GetConfig().pad_open;
884 g_config.Save();
885
886 TogglePadView();
887 break;
888 }
889 case MAINFRAME_MENU_ID_OPTIONS_GRAPHIC_PACKS2:
890 {
891 if (m_graphic_pack_window)
892 return;
893
894 uint64 titleId = 0;
895 if (CafeSystem::IsTitleRunning())
896 titleId = CafeSystem::GetForegroundTitleId();
897
898 m_graphic_pack_window = new GraphicPacksWindow2(this, titleId);
899 m_graphic_pack_window->Bind(wxEVT_CLOSE_WINDOW, &MainWindow::OnGraphicWindowClose, this);
900 m_graphic_pack_window->Show(true);
901
902 break;
903 }
904
905 case MAINFRAME_MENU_ID_OPTIONS_GENERAL2:
906 {
907 OpenSettings();
908 break;
909 }
910 case MAINFRAME_MENU_ID_OPTIONS_INPUT:
911 {
912 auto* frame = new InputSettings2(this);
913 frame->ShowModal();
914 frame->Destroy();
915 break;
916 }
917
918 }
919}
920
921void MainWindow::OnAccountSelect(wxCommandEvent& event)
922{

Callers

nothing calls this directly

Calls 7

IsTitleRunningFunction · 0.85
GetForegroundTitleIdFunction · 0.85
IsCheckedMethod · 0.80
ShowMethod · 0.80
SaveMethod · 0.45
ShowModalMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected