mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-13 03:40:44 +02:00

* 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!
41 lines
933 B
C++
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();
|
|
};
|