Fix Prelaunch Break-Out With Controller Config (#950)

* Fix Prelaunch Break-Out With Controller Config

Fixes #945

* Formatting
This commit is contained in:
SuperDude88
2026-05-11 23:49:24 -04:00
committed by GitHub
parent b0f1fbee1c
commit 9d5d8dd13a
3 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -301,7 +301,11 @@ int rumble_raw_to_percent(u16 raw) {
} // namespace
ControllerConfigWindow::ControllerConfigWindow() {
ControllerConfigWindow::ControllerConfigWindow(bool prelaunch) {
if (prelaunch) {
mSuppressNavFallback = true;
}
listen(
Rml::EventId::Keydown,
[this](Rml::Event& event) {
+1 -1
View File
@@ -8,7 +8,7 @@ namespace dusk::ui {
class ControllerConfigWindow : public Window {
public:
ControllerConfigWindow();
ControllerConfigWindow(bool prelaunch);
void update() override;
void hide(bool close) override;
+1 -1
View File
@@ -620,7 +620,7 @@ SettingsWindow::SettingsWindow(bool prelaunch) : mPrelaunch(prelaunch) {
leftPane.add_section("Controller");
leftPane.register_control(leftPane.add_button("Configure Controller").on_pressed([this] {
push(std::make_unique<ControllerConfigWindow>());
push(std::make_unique<ControllerConfigWindow>(mPrelaunch));
}),
rightPane, [](Pane& pane) {
pane.clear();