diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-03-23 17:14:48 +0100 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-03-23 17:14:48 +0100 |
commit | 8c059c99535690033397dcbb0ae1de1019d0740c (patch) | |
tree | a9f80c8c52396db3444c5fc8225ac3c79aa90de2 /src/wx/main.h | |
parent | 91f46b00fb0c5e6765a59f03259e9f49ec1c4f34 (diff) |
* more thread-safe UI
* config system base
* FPS counter and limiter
Diffstat (limited to 'src/wx/main.h')
-rw-r--r-- | src/wx/main.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/wx/main.h b/src/wx/main.h index 0ee41be..f60e381 100644 --- a/src/wx/main.h +++ b/src/wx/main.h @@ -34,6 +34,8 @@ enum ID_RUN, ID_PAUSE, ID_RESET, + + ID_INPUTCONFIG, }; class EmuThread; @@ -53,32 +55,40 @@ public: SDL_Renderer* sdlrend; SDL_Texture* sdltex; + wxMutex* texmutex; + void* texpixels; + int texstride; + + int emustatus; + EmuThread* emuthread; + wxMutex* emustatuschangemutex; + wxCondition* emustatuschange; + wxMutex* emustopmutex; + wxCondition* emustop; + private: wxDECLARE_EVENT_TABLE(); + void OnClose(wxCloseEvent& event); + void OnCloseFromMenu(wxCommandEvent& event); void OnOpenROM(wxCommandEvent& event); - void OnPaint(wxPaintEvent& event); + void ProcessSDLEvents(); - EmuThread* emuthread; - wxMutex* emumutex; - wxCondition* emucond; + void OnPaint(wxPaintEvent& event); + void OnIdle(wxIdleEvent& event); }; class EmuThread : public wxThread { public: - EmuThread(MainFrame* parent, wxMutex* mutex, wxCondition* cond); + EmuThread(MainFrame* parent); ~EmuThread(); - u32 EmuStatus; - protected: virtual ExitCode Entry(); MainFrame* parent; - wxMutex* mutex; - wxCondition* cond; }; #endif // WX_MAIN_H |