mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 01:38:29 +12:00
Input: Move pairing dialog button and source (#1424)
This commit is contained in:
parent
90eb2e01f4
commit
0735237686
5 changed files with 12 additions and 15 deletions
|
@ -20,6 +20,8 @@
|
|||
#include "gui/input/InputAPIAddWindow.h"
|
||||
#include "input/ControllerFactory.h"
|
||||
|
||||
#include "gui/input/PairingDialog.h"
|
||||
|
||||
#include "gui/input/panels/VPADInputPanel.h"
|
||||
#include "gui/input/panels/ProControllerInputPanel.h"
|
||||
|
||||
|
@ -252,6 +254,13 @@ wxWindow* InputSettings2::initialize_page(size_t index)
|
|||
page_data.m_controller_api_remove = remove_api;
|
||||
}
|
||||
|
||||
auto* pairingDialog = new wxButton(page, wxID_ANY, _("Pair Wii/Wii U Controller"));
|
||||
pairingDialog->Bind(wxEVT_BUTTON, [this](wxEvent&) {
|
||||
PairingDialog pairing_dialog(this);
|
||||
pairing_dialog.ShowModal();
|
||||
});
|
||||
sizer->Add(pairingDialog, wxGBPosition(5, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL | wxALL, 5);
|
||||
|
||||
// controller
|
||||
auto* controller_bttns = new wxBoxSizer(wxHORIZONTAL);
|
||||
auto* settings = new wxButton(page, wxID_ANY, _("Settings"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue