diff options
Diffstat (limited to 'src/wx/main.cpp')
-rw-r--r-- | src/wx/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/main.cpp b/src/wx/main.cpp index b4813af..058808f 100644 --- a/src/wx/main.cpp +++ b/src/wx/main.cpp @@ -23,6 +23,8 @@ #include "../NDS.h" #include "../GPU.h" +#include "InputConfig.h" + bool Touching; @@ -58,6 +60,8 @@ wxBEGIN_EVENT_TABLE(MainFrame, wxFrame) EVT_MENU(ID_OPENROM, MainFrame::OnOpenROM) EVT_MENU(ID_EXIT, MainFrame::OnCloseFromMenu) + EVT_MENU(ID_INPUTCONFIG, MainFrame::OnInputConfig) + EVT_PAINT(MainFrame::OnPaint) EVT_IDLE(MainFrame::OnIdle) wxEND_EVENT_TABLE() @@ -179,6 +183,12 @@ void MainFrame::OnOpenROM(wxCommandEvent& event) emustatuschangemutex->Unlock(); } +void MainFrame::OnInputConfig(wxCommandEvent& event) +{ + InputConfigDialog dlg(this); + dlg.ShowModal(); +} + void MainFrame::ProcessSDLEvents() { bool running = (emustatus == 1); |