Skip to content

Commit

Permalink
Dials now work with alt key for slower turning
Browse files Browse the repository at this point in the history
Dials now work with alt key for slower turning.
Press alt and move dial for fine grain tuning.
  • Loading branch information
Justin-Johnson committed May 13, 2021
1 parent 6bc1899 commit e8fdf63
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ReEQ.jsfx
Original file line number Diff line number Diff line change
Expand Up @@ -3677,7 +3677,7 @@ function is_mouse_number_dial() instance (x, y, r, v) local (rad)
* Handle the number style button
*/
function handle_number_dial(val) instance (x, y, r, v, width, menutext, label, drag, height, db, oldy, type)
local (oldy, md)
local (oldy, md, mouse_speed)
(
v = val;
(button_focus == -1 || button_focus == x) && node_drag_mode == 0 ? (
Expand All @@ -3694,8 +3694,9 @@ function handle_number_dial(val) instance (x, y, r, v, width, menutext, label, d
!(mouse_cap & 1) ? ( drag = 0; button_focus = -1; );
);

drag ? (
md = (mouse_y - oldy);
drag ? (
mouse_cap & 16 ? mouse_speed = 12 : mouse_speed = 1;
md = (mouse_y - oldy) / mouse_speed;

md > 0 ? v -= 0.01 * abs(md*0.5);
md < 0 ? v += 0.01 * abs(md*0.5);
Expand Down

0 comments on commit e8fdf63

Please sign in to comment.