mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 09:39:46 -06:00
DolphinWX: Kill off trivial event tables
Also fixes some of the wonky stuff in Main where we would fire an event to do post-init stuff which isn't necessary anymore.
This commit is contained in:
@ -24,11 +24,13 @@ class wxEmuStateTip : public wxTipWindow
|
||||
{
|
||||
public:
|
||||
wxEmuStateTip(wxWindow* parent, const wxString& text, wxEmuStateTip** windowPtr)
|
||||
: wxTipWindow(parent, text, 70, (wxTipWindow**)windowPtr) {}
|
||||
: wxTipWindow(parent, text, 70, (wxTipWindow**)windowPtr)
|
||||
{
|
||||
Bind(wxEVT_KEY_DOWN, &wxEmuStateTip::OnKeyDown, this);
|
||||
}
|
||||
|
||||
// wxTipWindow doesn't correctly handle KeyEvents and crashes... we must overload that.
|
||||
void OnKeyDown(wxKeyEvent& event) { event.StopPropagation(); Close(); }
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
class CGameListCtrl : public wxListCtrl
|
||||
@ -83,8 +85,6 @@ private:
|
||||
void SetBackgroundColor();
|
||||
void ScanForISOs();
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
// events
|
||||
void OnLeftClick(wxMouseEvent& event);
|
||||
void OnRightClick(wxMouseEvent& event);
|
||||
|
Reference in New Issue
Block a user