X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0003.html-inc;h=34e5e0ca8c6fe95aedf6c9c51a9ae65756169111;hb=e785862422f3e827a242fc244bd57b23443887ce;hp=83a05ba23c0e352fd270773c2f64bbc88ba2ff59;hpb=769d193e7a4b5eeebd1f248a084ae4f2495df071;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0003.html-inc b/pages/blog-0003.html-inc index 83a05ba..34e5e0c 100644 --- a/pages/blog-0003.html-inc +++ b/pages/blog-0003.html-inc @@ -1,6 +1,20 @@

-Hello Mouse? An Example of the New Event Code +Closing the Grant

-
Any code that is not marketed is dead code
--mst


You need the new code from the redesign branch to use this .

#!/usr/bin/env perl

use SDL;
use SDL::Events;
use SDL::Event;
use SDL::Video;

SDL::init(SDL_INIT_VIDEO);

my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
my $event = SDL::Event->new();

while(1)
{
SDL::Events::pump_events();

if(SDL::Events::poll_event($event) && $event->type == SDL_ACTIVEEVENT)
{
print "Hello Mouse!!!\n" if ($event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
print "Bye Mouse!!!\n" if (!$event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
}

exit if($event->type == SDL_QUIT);
}
\ No newline at end of file +With the following commit I am closing the grant.
+
+This is what has been accomplished from each of the objectives:
+Next Steps:
+
+


+

\ No newline at end of file