diff --git a/src/frontend/KaizenQt.cpp b/src/frontend/KaizenQt.cpp index b6c58723..efe5dbaa 100644 --- a/src/frontend/KaizenQt.cpp +++ b/src/frontend/KaizenQt.cpp @@ -49,16 +49,6 @@ void KaizenQt::LoadROM(const QString& file_name) noexcept { emuThread->core->LoadROM(file_name.toStdString()); } -static inline u32 QtKeyToN64Controller(Qt::Key k) { - u32 ret{}; - printf("Valore prima: %08X\n", ret); - - - printf("Valore dopo: %08X\n", ret); - - return ret; -} - void KaizenQt::keyPressEvent(QKeyEvent *e) { emuThread->core->pause = true; auto k = static_cast(e->key()); diff --git a/src/frontend/MainWindow.cpp b/src/frontend/MainWindow.cpp index 5ae996f7..52fc88c7 100644 --- a/src/frontend/MainWindow.cpp +++ b/src/frontend/MainWindow.cpp @@ -2,6 +2,7 @@ #include #include #include +#include MainWindowController::MainWindowController() noexcept { view.setupUi(this); @@ -55,4 +56,12 @@ void MainWindowController::ConnectSignalsToSlots() noexcept { "Kaizen is licensed under the BSD 3-clause license.\n" "Nintendo 64 is a registered trademarks of Nintendo Co., Ltd.")); }); + + connect(view.actionSettings, &QAction::triggered, this, [this]() { + auto layout = new QVBoxLayout(this); + layout->addWidget(new QSlider(Qt::Horizontal)); + auto settings = new QWidget; + settings->setLayout(layout); + settings->show(); + }); } \ No newline at end of file diff --git a/src/frontend/mainwindow.ui b/src/frontend/mainwindow.ui index f741ed2d..9dda72b4 100644 --- a/src/frontend/mainwindow.ui +++ b/src/frontend/mainwindow.ui @@ -31,7 +31,7 @@ 0 - + @@ -41,7 +41,7 @@ 0 0 800 - 21 + 22 @@ -55,6 +55,7 @@ Emulation + @@ -121,6 +122,17 @@ Stop the emulation + + + Settings + + + Settings + + + Open the settings window + +