Mouse Tracking Question

greyfox18's icon

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

Gregory Taylor's icon

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.

Bas van der Graaff's icon

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

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

simples: