[Clam-devel] ControlPiano
Hernán Ordiales
h at ordia.com.ar
Thu Jun 11 17:23:58 PDT 2009
On Tue, Jun 9, 2009 at 7:06 PM, David García Garzón<dgarcia at iua.upf.edu> wrote:
> Hernan, i just updated the ControlPiano to simplify the key picking code. I
> guess that the problem of changing the when by dragging can be easily solved
> by:
> * On press, keep the pressed key as state of the widget, and grabMouse()
> * On move, release the pressed key if changed and press the new one
> * On release, release any pressed key and releaseMouse()
cool! i didn't know about the [grab/release]Mouse() and how they work
--
Hernán
http://h.ordia.com.ar
GnuPG: 0xEE8A3FE9
More information about the clam-devel
mailing list