X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0008.html-inc;h=2bd84fc7f40913acd9708e68ac8f58773c028455;hb=c8ad4fe9f211e727310a1ce6d23ffb1d7822d71f;hp=83a05ba23c0e352fd270773c2f64bbc88ba2ff59;hpb=cf23a5dab86667dca8475ee830e684c9944f115f;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0008.html-inc b/pages/blog-0008.html-inc index 83a05ba..2bd84fc 100644 --- a/pages/blog-0008.html-inc +++ b/pages/blog-0008.html-inc @@ -1,6 +1,40 @@

-Hello Mouse? An Example of the New Event Code +Getting people to use SDL Perl: Docs, API, and Distribution

-
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 +

The road so far


+Things have been busy but fruitful. Our two core modules are getting to be a bit more stable. Alien::SDL 1.405 is behaving well. This foundational stability will start to show results in SDL too I believe. Most excitingly the main developer of frozen-bubble is reviewing our Games::FrozenBubble port to CPAN. All good and well, but to keep this project going we need to improve.
+
+

Getting people to use SDL Perl


+After a long chat with a new SDL user on #sdl today, I realize we still have some way to go. Currently it seems we are lacking in a few areas. We can definitely use some feedback and help in these areas.
+
+
If anyone wants to help in these areas please talk to us on sdl-devel@perl.org. 
+


+

\ No newline at end of file