mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-11 17:28:29 +12:00
[Linux/MacOS] Further Wiimote changes for parity with Windows (#945)
This commit is contained in:
parent
d8b9a74d86
commit
5e84862e28
8 changed files with 23 additions and 19 deletions
|
@ -976,7 +976,7 @@ void InputSettings2::on_controller_settings(wxCommandEvent& event)
|
|||
|
||||
case InputAPI::Keyboard: break;
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
#ifdef SUPPORTS_WIIMOTE
|
||||
case InputAPI::Wiimote: {
|
||||
const auto wiimote = std::dynamic_pointer_cast<NativeWiimoteController>(controller);
|
||||
wxASSERT(wiimote);
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "gui/components/wxInputDraw.h"
|
||||
#include "gui/input/InputAPIAddWindow.h"
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
#ifdef SUPPORTS_WIIMOTE
|
||||
|
||||
WiimoteControllerSettings::WiimoteControllerSettings(wxWindow* parent, const wxPoint& position, std::shared_ptr<NativeWiimoteController> controller)
|
||||
: wxDialog(parent, wxID_ANY, _("Controller settings"), position, wxDefaultSize,
|
||||
|
@ -56,6 +56,7 @@ WiimoteControllerSettings::WiimoteControllerSettings(wxWindow* parent, const wxP
|
|||
// Motion
|
||||
m_use_motion = new wxCheckBox(box, wxID_ANY, _("Use motion"));
|
||||
m_use_motion->SetValue(m_settings.motion);
|
||||
m_use_motion->SetValue(m_settings.motion);
|
||||
m_use_motion->Enable(m_controller->has_motion());
|
||||
row_sizer->Add(m_use_motion, 0, wxALL, 5);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
#ifdef SUPPORTS_WIIMOTE
|
||||
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/timer.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue