mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Correct event handlers to trigger in all instnces
Some events don't propagate correctly to the right sub-window and some things like the pad handler don't even necessarily have windows. So, just register some events with the top-level app. Also add a virtual destructor to the PadHandlerBase to be able to deal with multiple inheritance in the derived classes.
This commit is contained in:
parent
b877879db6
commit
8feabb00d6
10 changed files with 86 additions and 87 deletions
|
|
@ -209,8 +209,8 @@ PADManager::PADManager(wxWindow* parent)
|
|||
SetSizerAndFit(s_panel);
|
||||
|
||||
// Bind buttons
|
||||
Bind(wxEVT_KEY_UP, &PADManager::OnKeyUp, this);
|
||||
Bind(wxEVT_KEY_DOWN, &PADManager::OnKeyDown, this);
|
||||
wxGetApp().Bind(wxEVT_KEY_UP, &PADManager::OnKeyUp, this);
|
||||
wxGetApp().Bind(wxEVT_KEY_DOWN, &PADManager::OnKeyDown, this);
|
||||
b_up_lstick ->Bind(wxEVT_BUTTON, &PADManager::OnButtonClicked, this);
|
||||
b_down_lstick ->Bind(wxEVT_BUTTON, &PADManager::OnButtonClicked, this);
|
||||
b_left_lstick ->Bind(wxEVT_BUTTON, &PADManager::OnButtonClicked, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue