dolphin/Source/Core/DolphinQt/Config/Mapping/PrimeHackEmuWii.h
Desmondchaser27 4ac3c2b339
Add Feature For Morphball Profiles for Metroid Prime 3 (#91)
* Adding in morphball profiles.

* Fixing bug where profile didn't load immediately when selecting the profile nor when saving the current profile.

* One last change to remove leftover code.

* Fixing coding standard issues.  Moved morphball profile switch into a function in PrimeUtils to more consistent with Primehack, per PR request.

* Adding support for the PrimeHack tab on the standard "Emulated Wiimote" controller GUI.

* Quick rename to "Morphball Profile" on Metroid Wiimote controller just for uniformity with the standard Emulated Wiimote controller menu.

* Updating support for Morphball Profile to work on all the Wii versions of Metroid Prime series.

* Fixed bugs made when rushing... Yeah!
2022-01-29 19:34:59 +00:00

41 lines
933 B
C++

// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include "DolphinQt/Config/Mapping/MappingWidget.h"
class QRadioButton;
class QLabel;
class QComboBox;
class PrimeHackModes;
class PrimeHackEmuWii final : public MappingWidget
{
public:
explicit PrimeHackEmuWii(MappingWindow* window);
InputConfig* GetConfig() override;
QGroupBox* controller_box;
QRadioButton* m_radio_mouse;
QRadioButton* m_radio_controller;
QComboBox* m_morphball_combobox;
private:
void LoadSettings() override;
void SaveSettings() override;
void CreateMainLayout();
void Connect(MappingWindow* window);
void OnMorphControlSelectionChanged();
void UpdateMorphProfileBackupFile();
void PopulateMorphBallProfiles();
void MappingWindowProfileSave();
void MappingWindowProfileLoad();
void OnDeviceSelected();
void ConfigChanged();
void Update();
};