<p>Or simply hide the cursor?</p>
<div class="gmail_quote">On Nov 22, 2011 4:12 PM, "Fons Adriaensen" <<a href="mailto:fons@linuxaudio.org">fons@linuxaudio.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Nov 22, 2011 at 09:13:37PM +0100, Nick Copeland wrote:<br>
<br>
> If you are using a toolkit that has a data flow of the following:<br>
><br>
>       pointer motion->graphical display->values->application->output<br>
><br>
> Well, basically that is broken as you have a flow that is<br>
><br>
>       input->output->input->application->output<br>
><br>
> invariably that is going to lead to issues. The tail (the toolkit) is wagging the dog<br>
> (the application) as it imposes restrictions on the values the application is allowed<br>
> to see.<br>
><br>
> In my opinion (ok, it is only opinion) is that the correct flow is<br>
><br>
>      input->application->output<br>
<br>
Yes, I see your point, and it makes a lot of sense. So what would be<br>
required is<br>
<br>
* compute the new parameter value from<br>
<br>
  - a stored state in 'paramater space' rather than 'widget space'<br>
  - and pointer (mouse) gestures,<br>
<br>
* update the widget according to that value.<br>
<br>
This is more or less what I do in the rotary controls used<br>
in e.g. zita-at1 and zita-rev1. It's possible because the<br>
mouse movement and the visual representation of the value<br>
(the angle of the line on the rotary knob) are not directly<br>
related anyway.<br>
<br>
But this is not how most (all) toolkits work.<br>
You could probably use them in the way you suggest with some<br>
extra effort. But in many cases (e.g. linear sliders) the<br>
pointer and widget would have to remain in sync visually,<br>
which then means that your resolution in paramater space<br>
can't be better than the visual one. Unless you allow the<br>
pointer to move faster than the visual object it is controlling<br>
(which is what I do in the 2-D panner, but it's possible only<br>
because the widget is so small).<br>
<br>
Ciao,<br>
<br>
--<br>
FA<br>
<br>
Vor uns liegt ein weites Tal, die Sonne scheint - ein Glitzerstrahl.<br>
<br>
_______________________________________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
</blockquote></div>