Mouse Tracking Question

Apr 12, 2010 at 4:50am

Mouse Tracking Question

With the Max Tutorials, I see that the mouse tracking begins in the upper left hand corner of your screen.

I was curious if anybody could share a patch with me or a method of causing this tracking to be centered in the middle of the screen. This way I would be able to have it reach a max of 127 (or -127) on each side of the screen.

Thanks guys

Apr 12, 2010 at 6:13am

It’s easy – start with the normal mousetracking stuff, add a split object to the mousestate object’s output to divide your screen into different areas, and then do some adding and subtracting.

Apr 12, 2010 at 8:30am

[unpack 0 0]
[scale 0 1280 -127. 127.] [scale 0 1024 -127. 127.]
| /
[pack 0 0]

Apr 12, 2010 at 9:51am


– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.