Page 2 of 2

Re: Mouse interaction

Posted: Tue Mar 13, 2012 9:02 pm
by MathieuSlico
Hi,

I'm new here and i'm really interested in trying out cpmouse, I think that it would work great for my project, I cant seem to find the code for cpmouse, so I was wondering if it is still available..

thank you so much for your help in advance,

sincerely,
Mat, :mrgreen:

Re: Mouse interaction

Posted: Wed Mar 14, 2012 2:05 pm
by slembcke
Not sure about cpMouse (I didn't make it), but it's pretty easy to do it yourself. The demo app does it like the following.

This is called when the mouse is clicked or released:
https://github.com/slembcke/Chipmunk-Ph ... emo.c#L352

Then there are a couple of lines that get called to update it each frame:
https://github.com/slembcke/Chipmunk-Ph ... emo.c#L256

Re: Mouse interaction

Posted: Tue Mar 20, 2012 12:09 am
by MathieuSlico
hey thank you for your quick answer, I just realized now that you got back to me so quickly, I was expecting to wait a week. :P

:D :D :D

Re: Mouse interaction

Posted: Tue Aug 21, 2012 4:16 am
by Carmella91
Thanks for the codes and links posted here.
Saved much of my time today;)
Hope to find some more helpful stuff here.