Motion Input: Add nunchuk support.

This commit is contained in:
rlnilsen
2019-11-04 04:19:33 +01:00
parent 15fc71cfcf
commit 965781ea9d
12 changed files with 268 additions and 16 deletions

View File

@ -0,0 +1,32 @@
// Copyright 2019 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include "DolphinQt/Config/Mapping/MappingWidget.h"
#include "Core/HW/WiimoteEmu/ExtensionPort.h"
class QGroupBox;
class QHBoxLayout;
class WiimoteEmuExtensionMotionInput final : public MappingWidget
{
Q_OBJECT
public:
explicit WiimoteEmuExtensionMotionInput(MappingWindow* window);
InputConfig* GetConfig() override;
private:
void LoadSettings() override;
void SaveSettings() override;
void CreateNunchukLayout();
void CreateMainLayout();
// Main
QHBoxLayout* m_main_layout;
QGroupBox* m_nunchuk_box;
};