X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0006.html-inc;h=7f9c593d829b4b3118fe033c07d9644cbe13239e;hb=c59d9ab1a32a69fcdb54ab78e21e31ee26d88e7a;hp=83a05ba23c0e352fd270773c2f64bbc88ba2ff59;hpb=d502f71f4cb7e6073e2629cdba69f20e7001b721;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0006.html-inc b/pages/blog-0006.html-inc index 83a05ba..7f9c593 100644 --- a/pages/blog-0006.html-inc +++ b/pages/blog-0006.html-inc @@ -1,6 +1,25 @@

-Hello Mouse? An Example of the New Event Code +Eye Candy

-
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 +
+clang
+With each imperfect hit
+a legendary blade forms
+

+
+
+In prep for the TPM meeting we have been working hard to release a new version of SDL Perl and Alien::SDL. After a lot of feed back from testers (Mike Stok, Stuart Watt, and Chas Owens), we where able to get a working version on 64bit and Mac. The releases will be out tomorrow but here
+is some eye candy to tide you guys over.
+
+
+This is shooter.pl finally working in MacOSX and 64 bit.
+
+

+
+k23z_ mentioned I should get some more SDL_perl videos out to attract some devs. So here goes.
+
+Walking Guy from SDLPerl on Vimeo.
+


+

\ No newline at end of file