replace mouse

Dec 27, 2010 at 1:21pm

replace mouse

hello,

i’m sorry, i don’t speak english very well
it’s an urgent message

I would like to replace the function of the mousse in the java code to use only two number box (x,y). But I don’t understand what thing I must change in the java code to do it.

Thank you for your help.

Attachments:
  1. dessin.maxpat
#54117
Dec 27, 2010 at 7:07pm

only had a brief look at your patch. it seems to me that the “move x y” is your problem. you have a [pak move 0 0] going to a [prepend set] going to a message. well, since you use the “set” message that will only set the message but not send it!! so get rid of the message box and the prepend object and go directly from [pak 0 0] to the jsui. that should do the trick.
good luck.

#194725
Dec 28, 2010 at 4:54pm

Thank you for your answer. It was very helpful, but now max crash after some actions. i don’t know why. Tank’s a lot!

#194726
Dec 30, 2010 at 2:32pm

Hello,

I need help.
I don’t understand why the patch crash when I change the brush.
I think that maybe the function “move” is the reason of the crash.

Thank a lot for some informations.

Attachments:
  1. dessin.maxpat
#194727
Jan 4, 2011 at 3:33pm

help me please….

#194728
Jan 5, 2011 at 4:32pm

Your touch and move function should probably look like this:

function touch(x,y)
{
	onclick(x,y);
}

function move(x,y)
{
	ondrag(x, y);
}
#194729

You must be logged in to reply to this topic.