Skip to content
This repository
Browse code

cleanup

  • Loading branch information...
commit e303fb2bceaf87ab0ab803ac5ed1ab4d259a2a5f 1 parent b4cfef3
Tobias Leich FROGGS authored

Showing 1 changed file with 2 additions and 8 deletions. Show diff stats Hide diff stats

  1. +2 8 lib/SDL/Event.pm6
10 lib/SDL/Event.pm6
@@ -21,12 +21,6 @@ class SDL::Event {
21 21 # SDL_UserEvent user;
22 22 # SDL_SysWMEvent syswm; is rw;
23 23
24   - #method new( $x = 0, $y = 0, $w = 0, $h = 0 ) {
25   - # self.bless( *, x => $x, y => $y, w => $w, h => $h );
26   - #}
27   -
28   - #submethod BUILD( :$!x, :$!y, :$!w, :$!h ) { * }
29   -
30 24 my $carr = CArray[int].new();
31 25
32 26 method CArray {
@@ -43,9 +37,9 @@ class SDL::Event {
43 37 _poll_event( self.CArray )
44 38 }
45 39
46   - method type { $carr[0] +& 0xFF; }
  40 + method type { $carr[0] +& 0xFF; }
47 41 method key_state { ($carr[0] +> 16) +& 0xFF; }
48   - method key_sym { $carr[1] +& 0xFF; }
  42 + method key_sym { $carr[1] +& 0xFF; }
49 43 method button_button { ($carr[0] +> 16) +& 0xFF; }
50 44 method button_x { ($carr[0] +> 32) +& 0xFFFF; }
51 45 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.