Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed SDL_EVENTMASK documentation

  • Loading branch information...
commit 4ca9f3c9e2970c6b8e8f5b146a06cf3612990460 1 parent 59dfc7f
@jtpalmer jtpalmer authored garu committed
Showing with 8 additions and 4 deletions.
  1. +4 −0 CHANGELOG
  2. +4 −4 lib/pods/SDL/Event.pod
View
4 CHANGELOG
@@ -10,6 +10,10 @@ Revision history for Perl extension SDL_perl.
- SDLx::Text improved documentation [garu]
- SDLx::TTF fixed loading error [FROGGS]
+* 2.534_03
+ Documentation fixes:
+ - SDL::Event: fixed SDL_EVENTMASK documentation [jtpalmer]
+
* 2.534_02 August 27 2011
New features:
- SDLx::Surface: added methods draw_trigon, draw_ellipse, draw_arc and draw_bezier [jtpalmer]
View
8 lib/pods/SDL/Event.pod
@@ -223,10 +223,10 @@ SDL_SYSWMEVENTMASK
This way you can check if a given C<type> matches a mask:
- (SDL_JOYBUTTONDOWN & SDL_MOUSEEVENTMASK) # is false
- (SDL_MOUSEBUTTONDOWN & SDL_MOUSEEVENTMASK) # is true
- (SDL_MOUSEBUTTONUP & SDL_MOUSEEVENTMASK) # is true
- (SDL_MOUSEMOTION & SDL_MOUSEEVENTMASK) # is true
+ (SDL_EVENTMASK(SDL_JOYBUTTONDOWN) & SDL_MOUSEEVENTMASK) # is false
+ (SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN) & SDL_MOUSEEVENTMASK) # is true
+ (SDL_EVENTMASK(SDL_MOUSEBUTTONUP) & SDL_MOUSEEVENTMASK) # is true
+ (SDL_EVENTMASK(SDL_MOUSEMOTION) & SDL_MOUSEEVENTMASK) # is true
# and also true is:
Please sign in to comment.
Something went wrong with that request. Please try again.