✅ Solved: Rotary switch

Trying to create a volume control switcher (imagine volume switcher on any analog audio device). I made two timelines with rotation 0 and rotation 360. Then I created a blend state with two timelines and input number (0-100) that controls the animation. It works fine when I change the number.

The problem is that I can’t handle the listeners to control this number (or the rotation) with mouse cursor (hold and drag), for example drag up => increase number (rotates clockwise), drag down => decrease number (rotates counterclockwise).

I tried different approaches including joysticks but nothing worked. Can you please explain or edit the rive file?


rotation_event.rev