Skip to content

Commit 9fead0c

Browse files
committed
Allow precise control of layer volume/stereo by holding Shift
- Layer volume and stereo can now be changed in increments of 1, not only 10 - Made normal control (without holding Shift) a bit less sensitive
1 parent 0895fec commit 9fead0c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

scripts/control_draw/control_draw.gml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -933,17 +933,25 @@ for (b = 0; b < totalrows; b += 1) {
933933
}
934934
}
935935
if (window = w_dragvol) {
936-
dragvol += (mouse_yprev - mouse_y) * 2
936+
dragvol += (mouse_yprev - mouse_y)
937937
dragvol = median(0, dragvol, 100)
938-
layervol[dragvolb] = floor(dragvol / 10) * 10
938+
if (!keyboard_check(vk_shift)) {
939+
layervol[dragvolb] = floor(dragvol / 10) * 10
940+
} else {
941+
layervol[dragvolb] = dragvol
942+
}
939943
if (!mouse_check_button(mb_left)) {
940944
window = w_releasemouse
941945
}
942946
}
943947
if (window = w_dragstereo) {
944-
dragstereo += (mouse_yprev - mouse_y) * 2
948+
dragstereo += (mouse_yprev - mouse_y)
945949
dragstereo = median(0, dragstereo, 200)
946-
layerstereo[dragstereob] = floor(dragstereo / 10) * 10
950+
if (!keyboard_check(vk_shift)) {
951+
layerstereo[dragstereob] = floor(dragstereo / 10) * 10
952+
} else {
953+
layerstereo[dragstereob] = dragstereo
954+
}
947955
if (!mouse_check_button(mb_left)) {
948956
window = w_releasemouse
949957
}

0 commit comments

Comments
 (0)