diff --git a/CHANGES b/CHANGES index 1be8e51ba..6f90d9e73 100644 --- a/CHANGES +++ b/CHANGES @@ -4,12 +4,13 @@ Features: - Ability to mute individual audio channels - Palette viewer - Volume control - - More shortcuts are editable (e.g. quick save/load, solar sensor) + - More shortcuts are editable (e.g. quick save/load) - Rewind now shows the frame after rewinding - Import/Export of GameShark/Action Replay snapshots - Add "Step backwards" item for single increment rewind - Deadzone estimation for game controllers - Analog inputs can be used for shortcuts + - Menu items for specific solar sensor brightness levels Bugfixes: - GBA: Fix timers not updating timing when writing to only the reload register - All: Fix sanitize-deb script not cleaning up after itself diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index dee0778c9..eae13178e 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -763,6 +763,15 @@ void Window::setupMenu(QMenuBar* menubar) { connect(minSolar, &QAction::triggered, [this]() { m_controller->setLuminanceLevel(0); }); addControlledAction(solarMenu, minSolar, "minLuminanceLevel"); + solarMenu->addSeparator(); + for (int i = 0; i <= 10; ++i) { + QAction* setSolar = new QAction(tr("Brightness %1").arg(QString::number(i)), solarMenu); + connect(setSolar, &QAction::triggered, [this, i]() { + m_controller->setLuminanceLevel(i); + }); + addControlledAction(solarMenu, setSolar, QString("luminanceLevel.%1").arg(QString::number(i))); + } + QMenu* avMenu = menubar->addMenu(tr("Audio/&Video")); m_shortcutController->addMenu(avMenu); QMenu* frameMenu = avMenu->addMenu(tr("Frame size"));