Gauge used as rotary dial?


#1

Is it possible to assign a gesture to a gauge to simulate a rotary dial? Is there an easier way to enable a rotary dial with shinobi controls or gauges?


#2

Greetings Program!

I used the rotation gesture recognizer from here https://github.com/melle/OneFingerRotationGestureDemo and added it to the GaugeDesigner sample app and had some success with it. It was a bit picky on starting and stopping of the gesture with the gauge (but worked very well in the gesture demo).

I think if you tweak the center and radius values when instantiating the recognizer and calculating an appropriate value from the angle change and the guage min/max values, it could work very well.

I just picked the first rotation gesture I came across but there are others that might be better but it can be done.

Wg