mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-09-02 15:45:46 +00:00
More nits
Co-Authored-By: Paris Oplopoios <parisoplop@gmail.com>
This commit is contained in:
parent
6b3e91f9e7
commit
2aa8f96e9c
1 changed files with 3 additions and 3 deletions
|
@ -779,12 +779,12 @@ void MainWindow::setupControllerSensors(SDL_GameController* controller) {
|
|||
}
|
||||
|
||||
void MainWindow::loadKeybindings() {
|
||||
auto keyMappings = InputMappings::deserialize(emu->getAppDataRoot() / "controls_qt.toml", "Qt", [](const std::string& name) {
|
||||
auto mappings = InputMappings::deserialize(emu->getAppDataRoot() / "controls_qt.toml", "Qt", [](const std::string& name) {
|
||||
return InputMappings::Scancode(QKeySequence(QString::fromStdString(name))[0].key());
|
||||
});
|
||||
|
||||
if (keyMappings) {
|
||||
keyboardMappings = *keyMappings;
|
||||
if (mappings.has_value()) {
|
||||
keyboardMappings = *mappings;
|
||||
} else {
|
||||
keyboardMappings = InputMappings::defaultKeyboardMappings();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue