/[VRac]/Screen.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Screen.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 152 by dpavlin, Sun Aug 5 15:24:22 2007 UTC revision 155 by dpavlin, Sun Aug 5 16:58:01 2007 UTC
# Line 49  sub open_screen { Line 49  sub open_screen {
49          );          );
50          #$app->grab_input( SDL_GRAB_QUERY );          #$app->grab_input( SDL_GRAB_QUERY );
51          $app->grab_input( SDL_GRAB_OFF );          $app->grab_input( SDL_GRAB_OFF );
52          $app->title( ref($self) . ' ' . $self::VERSION );          $app->title( ref($self) );
53    
54          $self->app( $app );          $self->app( $app );
55    
# Line 238  sub key_pressed { Line 238  sub key_pressed {
238          my $event = $self->event || confess "no event?";          my $event = $self->event || confess "no event?";
239    
240          if ( ! $event->poll ) {          if ( ! $event->poll ) {
241                    return $pending_key unless $self->can('session_event');
242                  if ( my $h = $self->session_event('key_pressed') ) {                  if ( my $h = $self->session_event('key_pressed') ) {
243                          my ( $key, $state ) = %$h;                          my ( $key, $state ) = %$h;
244                          if ( $state ) {                          if ( $state ) {

Legend:
Removed from v.152  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26