mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 12:10:14 +00:00
Clean up
This commit is contained in:
parent
f6cd1ec450
commit
b58452bf9e
@ -31,7 +31,7 @@ const std::array<QVariant, Settings::NativeInput::NUM_INPUTS> Config::defaults =
|
|||||||
Qt::Key_D,
|
Qt::Key_D,
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::array<QVariant, Settings::NativeInput::NUM_INPUTS>& Config::getDefaultInput()
|
const std::array<QVariant, Settings::NativeInput::NUM_INPUTS>& Config::GetDefaultInput()
|
||||||
{
|
{
|
||||||
return defaults;
|
return defaults;
|
||||||
}
|
}
|
||||||
|
@ -24,5 +24,5 @@ public:
|
|||||||
|
|
||||||
void Reload();
|
void Reload();
|
||||||
void Save();
|
void Save();
|
||||||
static const std::array<QVariant, Settings::NativeInput::NUM_INPUTS>& getDefaultInput();
|
static const std::array<QVariant, Settings::NativeInput::NUM_INPUTS>& GetDefaultInput();
|
||||||
};
|
};
|
||||||
|
@ -161,7 +161,7 @@ void ConfigureInput::removeDuplicates(const QString& newValue)
|
|||||||
/// Restore all buttons to their default values.
|
/// Restore all buttons to their default values.
|
||||||
void ConfigureInput::restoreDefaults() {
|
void ConfigureInput::restoreDefaults() {
|
||||||
for (int i = 0; i < Settings::NativeInput::NUM_INPUTS - 1; ++i) {
|
for (int i = 0; i < Settings::NativeInput::NUM_INPUTS - 1; ++i) {
|
||||||
QString keyValue = getKeyName(Config::getDefaultInput()[i].toInt());
|
QString keyValue = getKeyName(Config::GetDefaultInput()[i].toInt());
|
||||||
input_mapping[Settings::NativeInput::Values(i)]->setText(keyValue);
|
input_mapping[Settings::NativeInput::Values(i)]->setText(keyValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user