Hi everyone, Is there any way of making MouseState output X-Y coordinates which are relative to the patch window rather than the screen as a whole?
Thanks, Alex
you can reset the position. since pd windows save in the same position,
you can get the pd window position manually and reset mousestate. but you
if you move your pd window, must reset the parameters.
or maybe there's a command somewhere to get the position of a window
somewhere.
Hi everyone, Is there any way of making MouseState output X-Y coordinates which are relative to the patch window rather than the screen as a whole?
Thanks, Alex
Look at this patch, maybe it can help you. ++
Jack
Le samedi 19 septembre 2009 à 23:49 +0100, Alex Lucas a écrit :
Hi everyone,
Is there any way of making MouseState output X-Y coordinates which are relative to the patch window rather than the screen as a whole?
Thanks, Alex _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can intercept the 'motion' messages that are send to each canvas
window. Check out [tot] from toxy and/or the pd-msg docs in Help-
Browser -> manuals -> pd-msg.
.hc
On Sep 19, 2009, at 6:49 PM, Alex Lucas wrote:
Hi everyone,
Is there any way of making MouseState output X-Y coordinates which
are relative to the patch window rather than the screen as a whole?Thanks, Alex _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I have the audacity to believe that peoples everywhere can have three
meals a day for their bodies, education and culture for their minds,
and dignity, equality and freedom for their spirits. - Martin
Luther King, Jr.
--- On Sun, 9/20/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] MouseState X-Y Coordinates To: "Alex Lucas" alex3lucas@googlemail.com Cc: pd-list@iem.at Date: Sunday, September 20, 2009, 6:01 PM
You can intercept the 'motion' messages that are send to each canvas window. Check out [tot] from toxy and/or the pd-msg docs in Help->Browser -> manuals -> pd-msg.
Specifically, look in the subpatch named "capture" in the [tot] help patch.
-Jonathan
.hc
On Sep 19, 2009, at 6:49 PM, Alex Lucas wrote:
Hi everyone,
Is there any way of making MouseState output X-Y
coordinates which are relative to the patch window rather than the screen as a whole?
Thanks, Alex _______________________________________________ Pd-list@iem.at
mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits. - Martin Luther King, Jr.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list