Skip to content
Browse files

cleanup

  • Loading branch information...
1 parent b4cfef3 commit e303fb2bceaf87ab0ab803ac5ed1ab4d259a2a5f @FROGGS FROGGS committed Sep 12, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/SDL/Event.pm6
View
10 lib/SDL/Event.pm6
@@ -21,12 +21,6 @@ class SDL::Event {
# SDL_UserEvent user;
# SDL_SysWMEvent syswm; is rw;
- #method new( $x = 0, $y = 0, $w = 0, $h = 0 ) {
- # self.bless( *, x => $x, y => $y, w => $w, h => $h );
- #}
-
- #submethod BUILD( :$!x, :$!y, :$!w, :$!h ) { * }
-
my $carr = CArray[int].new();
method CArray {
@@ -43,9 +37,9 @@ class SDL::Event {
_poll_event( self.CArray )
}
- method type { $carr[0] +& 0xFF; }
+ method type { $carr[0] +& 0xFF; }
method key_state { ($carr[0] +> 16) +& 0xFF; }
- method key_sym { $carr[1] +& 0xFF; }
+ method key_sym { $carr[1] +& 0xFF; }
method button_button { ($carr[0] +> 16) +& 0xFF; }
method button_x { ($carr[0] +> 32) +& 0xFFFF; }
method button_y { ($carr[0] +> 48) +& 0xFFFF; }

0 comments on commit e303fb2

Please sign in to comment.
Something went wrong with that request. Please try again.