diff options
| author | 2017-01-21 11:53:03 +0200 | |
|---|---|---|
| committer | 2017-03-01 23:30:57 +0200 | |
| commit | 38e800f70d122051e12ac9f22e23d84b97fec424 (patch) | |
| tree | 0f52b5731a4fd8e9f2a39e8e75d1fa18ce8b9107 /src/citra_qt/configure_input.cpp | |
| parent | HID: use AnalogDevice (diff) | |
| download | yuzu-38e800f70d122051e12ac9f22e23d84b97fec424.tar.gz yuzu-38e800f70d122051e12ac9f22e23d84b97fec424.tar.xz yuzu-38e800f70d122051e12ac9f22e23d84b97fec424.zip | |
InputCommon: add Keyboard
Diffstat (limited to 'src/citra_qt/configure_input.cpp')
| -rw-r--r-- | src/citra_qt/configure_input.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/citra_qt/configure_input.cpp b/src/citra_qt/configure_input.cpp index c29652f32..8846a68b2 100644 --- a/src/citra_qt/configure_input.cpp +++ b/src/citra_qt/configure_input.cpp | |||
| @@ -92,14 +92,7 @@ void ConfigureInput::loadConfiguration() { | |||
| 92 | updateButtonLabels(); | 92 | updateButtonLabels(); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void ConfigureInput::restoreDefaults() { | 95 | void ConfigureInput::restoreDefaults() {} |
| 96 | for (const auto& input_id : Settings::NativeInput::All) { | ||
| 97 | const size_t index = static_cast<size_t>(input_id); | ||
| 98 | key_map[input_id] = static_cast<Qt::Key>(Config::defaults[index].toInt()); | ||
| 99 | } | ||
| 100 | updateButtonLabels(); | ||
| 101 | applyConfiguration(); | ||
| 102 | } | ||
| 103 | 96 | ||
| 104 | void ConfigureInput::updateButtonLabels() { | 97 | void ConfigureInput::updateButtonLabels() { |
| 105 | for (const auto& input_id : Settings::NativeInput::All) { | 98 | for (const auto& input_id : Settings::NativeInput::All) { |