[Gridflow-cvs] [svn] commit: r3805 - /trunk/format/sdl.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Jun 5 10:39:23 EDT 2008


Author: matju
Date: Thu Jun  5 10:39:23 2008
New Revision: 3805

Log:
added KeyRelease events (working) and ButtonRelease events (not working here)

Modified:
    trunk/format/sdl.c

Modified: trunk/format/sdl.c
==============================================================================
--- trunk/format/sdl.c (original)
+++ trunk/format/sdl.c Thu Jun  5 10:39:23 2008
@@ -67,6 +67,7 @@
 		    case SDL_MOUSEBUTTONDOWN: SDL_MOUSEBUTTONUP: {
 			if (SDL_MOUSEBUTTONDOWN) mousem |=  (128<<event.button.button);
 			else                     mousem &= ~(128<<event.button.button);
+			post("mousem=%d",mousem);
 			report_pointer();
 		    } break;
 		    case SDL_MOUSEMOTION: {
@@ -109,6 +110,8 @@
 		clock = clock_new(this,(t_method)FormatSDL_call);
 		clock_delay(clock,0);
 		_0_title(0,0,string("GridFlow SDL"));
+		SDL_EventState(SDL_KEYUP,SDL_ENABLE);
+		SDL_EventState(SDL_MOUSEBUTTONUP,SDL_ENABLE);
 	}
 	\grin 0 int
 	~FormatSDL () {



More information about the Gridflow-cvs mailing list