mirror of
https://github.com/DerKoun/bsnes-hd.git
synced 2025-04-02 10:52:49 -04:00
19 lines
535 B
C++
19 lines
535 B
C++
auto Program::updateInputDriver(Window parent) -> void {
|
|
auto changed = (bool)input;
|
|
input.create(settings.input.driver);
|
|
input.setContext(presentation.viewport.handle());
|
|
if(changed) {
|
|
}
|
|
|
|
inputManager.initialize();
|
|
inputSettings.reloadPorts();
|
|
hotkeySettings.reloadMappings();
|
|
|
|
if(!input.ready()) {
|
|
MessageDialog({
|
|
"Error: failed to initialize [", settings.input.driver, "] input driver."
|
|
}).setAlignment(parent).error();
|
|
settings.input.driver = "None";
|
|
return updateInputDriver(parent);
|
|
}
|
|
}
|