SDL::EventHandler

SDL::EventHandler is a base class for application-specific SDL event handlers.
Download

SDL::EventHandler Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • chromatic
  • Publisher web site:
  • http://search.cpan.org/~chromatic/Crypt-CipherSaber-1.00/lib/Crypt/CipherSaber.pm

SDL::EventHandler Tags


SDL::EventHandler Description

SDL::EventHandler is a base class for application-specific SDL event handlers. SDL::EventHandler is a base class for application-specific SDL event handlers.SYNOPSIS # load the event class and this library load_bytecode 'library/SDL/Event.pir' load_bytecode 'library/SDL/EventHandler.pir' # subclass this class .local pmc parent_class .local pmc class_type getclass parent_class, 'SDL::EventHandler' subclass class_type, parent_class, 'My::Event::Handler' # define your overridden methods .sub key_down_down :method .param pmc event .param pmc event_args # ... .end # create an event handler object .local pmc event_handler .local int handler_type find_type handler_type, 'My::Event::Handler' event_handler = new handler_type # create and populate some event_arguments .local pmc event_args new event_args, .Hash event_args = main_surface event_args = sprites # create a new event object .local pmc event .local int event_type find_type event_type, 'SDL::Event' event = new event_type # ... and process events event.'process_events'( event_handler, handler_args )Requirements:· Perl


SDL::EventHandler Related Software