Forums > MaxMSP

Mouse Tracking Question

April 12, 2010 | 4:50 am

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


April 12, 2010 | 6:13 am

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.


April 12, 2010 | 8:30 am

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


April 12, 2010 | 9:51 am

simples:

– Pasted Max Patch, click to expand. –

Viewing 4 posts - 1 through 4 (of 4 total)