Added "Coarse Step" option under the "Move Cursor with Scroll Wheel" setting (#2463)
* "Coarse Step" option for Moving Cursor with Scroll Wheel * Update pattern.cpp * Update settings.cpp * Update settings.cpp
This commit is contained in:
parent
801f5c5720
commit
5eb8718ce5
|
@ -1255,6 +1255,10 @@ void FurnaceGUI::drawPattern() {
|
|||
xAmount*=MAX(1,editStep);
|
||||
yAmount*=MAX(1,editStep);
|
||||
}
|
||||
if (settings.cursorWheelStep == 2) {
|
||||
xAmount *= MAX(1, editStepCoarse);
|
||||
yAmount *= MAX(1, editStepCoarse);
|
||||
}
|
||||
moveCursor(xAmount,yAmount,false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2962,6 +2962,10 @@ void FurnaceGUI::drawSettings() {
|
|||
settings.cursorWheelStep=1;
|
||||
settingsChanged=true;
|
||||
}
|
||||
if (ImGui::RadioButton(_("Coarse Step##cws1"), settings.cursorWheelStep == 2)) {
|
||||
settings.cursorWheelStep = 2;
|
||||
settingsChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
// SUBSECTION ASSETS
|
||||
|
@ -5416,7 +5420,7 @@ void FurnaceGUI::readConfig(DivConfig& conf, FurnaceGUISettingGroups groups) {
|
|||
clampSetting(settings.shaderOsc,0,1);
|
||||
clampSetting(settings.oscLineSize,0.25f,16.0f);
|
||||
clampSetting(settings.songNotesWrap, 0, 1);
|
||||
clampSetting(settings.cursorWheelStep,0,1);
|
||||
clampSetting(settings.cursorWheelStep,0,2);
|
||||
clampSetting(settings.vsync,0,4);
|
||||
clampSetting(settings.frameRateLimit,0,1000);
|
||||
clampSetting(settings.displayRenderTime,0,1);
|
||||
|
|
Loading…
Reference in a new issue