<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>I've simply added a case{}, may be that wasn't expected to be coded like this, but it works.<br>a<br><span style="text-decoration: underline;">$ diff -uw sdl.cxx.old sdl.cxx<br>--- sdl.cxx.old 2010-04-29 07:01:12 +0000<br>+++ sdl.cxx 2010-04-29 06:57:15 +0000<br>@@ -119,9 +119,14 @@<br> SETSYMBOL(at+3,keyboard[k] ? keyboard[k] : symprintf("unknown_%d",k));<br> pd_anything(gensym("#sdl")->s_thing,sel,4,at);<br> } break;<br>- case SDL_MOUSEBUTTONDOWN: SDL_MOUSEBUTTONUP: {<br>- if (SDL_MOUSEBUTTONDOWN) mousem |= (128<<event.button.button);<br>- else mousem &= ~(128<<event.button.button);<br>+ case SDL_MOUSEBUTTONDOWN: {<br>+ mousem |= (128<<event.button.button);<br>+ <br>+ //post("mousem=%d",mousem);<br>+ report_pointer();<br>+ } break;<br>+ case SDL_MOUSEBUTTONUP: {<br>+ mousem &= ~(128<<event.button.button);<br> //post("mousem=%d",mousem);<br> report_pointer();<br> } break;<br><br></span><br></div></body></html>