[Linux/MacOS] Further Wiimote changes for parity with Windows (#945)

This commit is contained in:
capitalistspz 2023-08-31 01:29:12 +00:00 committed by GitHub
parent d8b9a74d86
commit 5e84862e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 23 additions and 19 deletions

View file

@ -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);

View file

@ -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);

View file

@ -1,6 +1,6 @@
#pragma once
#if BOOST_OS_WINDOWS
#ifdef SUPPORTS_WIIMOTE
#include <wx/dialog.h>
#include <wx/timer.h>