[Gridflow-dev] #mouse unclick
colet.patrice at free.fr
colet.patrice at free.fr
Thu Apr 29 03:08:56 EDT 2010
I've simply added a case{}, may be that wasn't expected to be coded like this, but it works.
a
$ diff -uw sdl.cxx.old sdl.cxx
--- sdl.cxx.old 2010-04-29 07:01:12 +0000
+++ sdl.cxx 2010-04-29 06:57:15 +0000
@@ -119,9 +119,14 @@
SETSYMBOL(at+3,keyboard[k] ? keyboard[k] : symprintf("unknown_%d",k));
pd_anything(gensym("#sdl")->s_thing,sel,4,at);
} break;
- case SDL_MOUSEBUTTONDOWN: SDL_MOUSEBUTTONUP: {
- if (SDL_MOUSEBUTTONDOWN) mousem |= (128<<event.button.button);
- else mousem &= ~(128<<event.button.button);
+ case SDL_MOUSEBUTTONDOWN: {
+ mousem |= (128<<event.button.button);
+
+ //post("mousem=%d",mousem);
+ report_pointer();
+ } break;
+ case SDL_MOUSEBUTTONUP: {
+ mousem &= ~(128<<event.button.button);
//post("mousem=%d",mousem);
report_pointer();
} break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.artengine.ca/pipermail/gridflow-dev/attachments/20100429/10c1abdd/attachment.htm>
More information about the Gridflow-dev
mailing list