SDLK_y
SDLK_z
SDL_ACTIVEEVENT
+ SDL_ALLEVENTS
SDL_ANYFORMAT
+ SDL_ADDEVENT
SDL_APPACTIVE
SDL_APPINPUTFOCUS
SDL_APPMOUSEFOCUS
SDL_DOUBLEBUF
SDL_ENABLE
SDL_FULLSCREEN
+ SDL_GETEVENT
SDL_GL_ACCUM_ALPHA_SIZE
SDL_GL_ACCUM_BLUE_SIZE
SDL_GL_ACCUM_GREEN_SIZE
SDL_MOUSEMOTION
SDL_OPENGL
SDL_OPENGLBLIT
+ SDL_PEEKEVENT
SDL_PREALLOC
SDL_PRESSED
SDL_QUERY
SDLK_y => 121,
SDLK_z => 122,
- SDL_ACTIVEEVENT => 1,
- SDL_ANYFORMAT => 268435456,
- SDL_APPACTIVE => 4,
- SDL_APPINPUTFOCUS => 2,
- SDL_APPMOUSEFOCUS => 1,
- SDL_ASYNCBLIT => 4,
+ SDL_ACTIVEEVENT => 1,
+ SDL_ADDEVENT => 0,
+ SDL_ALLEVENTS => 0xFFFFFFFF,
+ SDL_ANYFORMAT => 268435456,
+ SDL_APPACTIVE => 4,
+ SDL_APPINPUTFOCUS => 2,
+ SDL_APPMOUSEFOCUS => 1,
+ SDL_ASYNCBLIT => 4,
SDL_AUDIO_PAUSED => 2,
SDL_AUDIO_PLAYING => 1,
SDL_ENABLE => 1,
SDL_FULLSCREEN => -2147483648,
+ SDL_GETEVENT => 2,
SDL_GL_ACCUM_ALPHA_SIZE => 11,
SDL_GL_ACCUM_BLUE_SIZE => 10,
SDL_GL_ACCUM_GREEN_SIZE => 9,
SDL_OPENGL => 2,
SDL_OPENGLBLIT => 10,
+ SDL_PEEKEVENT => 1,
SDL_PREALLOC => 16777216,
SDL_PRESSED => 1,
+
SDL_QUERY => -1,
SDL_QUIT => 12,
+
SDL_RELEASED => 0,
SDL_RESIZABLE => 16,
SDL_RLEACCEL => 16384,
SDL_RLEACCELOK => 8192,
+
SDL_SRCALPHA => 65536,
SDL_SRCCOLORKEY => 4096,
SDL_SWSURFACE => 0,
SDL_SYSWMEVENT => 13,
+
SDL_UYVY_OVERLAY => 1498831189,
+
SDL_VIDEOEXPOSE => 17,
SDL_VIDEORESIZE => 16,
+
SDL_YUY2_OVERLAY => 844715353,
SDL_YV12_OVERLAY => 842094169,
SDL_YVYU_OVERLAY => 1431918169,
use strict;
use warnings;
-use Test::More tests => 1 + 544; # use_ok + constants
+use Test::More tests => 1 + 552; # use_ok + constants
BEGIN { use_ok('SDL::Constants') }
is( SDL_ACTIVEEVENT, 1, 'SDL_ACTIVEEVENT should be imported' );
is( SDL_ACTIVEEVENT(), 1, 'SDL_ACTIVEEVENT() should also be available' );
+is( SDL_ADDEVENT, 0, 'SDL_ADDEVENT should be imported' );
+is( SDL_ADDEVENT(), 0, 'SDL_ADDEVENT() should also be available' );
+is( SDL_ALLEVENTS, 0xFFFFFFFF, 'SDL_ALLEVENTS should be imported' );
+is( SDL_ALLEVENTS(), 0xFFFFFFFF, 'SDL_ALLEVENTS() should also be available' );
is( SDL_ANYFORMAT, 268435456, 'SDL_ANYFORMAT should be imported' );
is( SDL_ANYFORMAT(), 268435456, 'SDL_ANYFORMAT() should also be available' );
is( SDL_APPACTIVE, 4, 'SDL_APPACTIVE should be imported' );
is( SDL_FULLSCREEN, -2147483648, 'SDL_FULLSCREEN should be imported' );
is( SDL_FULLSCREEN(), -2147483648, 'SDL_FULLSCREEN() should also be available' );
+is( SDL_GETEVENT, 2, 'SDL_GETEVENT should be imported' );
+is( SDL_GETEVENT(), 2, 'SDL_GETEVENT() should also be available' );
+
is( SDL_GL_ACCUM_ALPHA_SIZE, 11, 'SDL_GL_ACCUM_ALPHA_SIZE should be imported' );
is( SDL_GL_ACCUM_ALPHA_SIZE(), 11, 'SDL_GL_ACCUM_ALPHA_SIZE() should also be available' );
is( SDL_GL_ACCUM_BLUE_SIZE, 10, 'SDL_GL_ACCUM_BLUE_SIZE should be imported' );
is( SDL_OPENGLBLIT, 10, 'SDL_OPENGLBLIT should be imported' );
is( SDL_OPENGLBLIT(), 10, 'SDL_OPENGLBLIT() should also be available' );
+is( SDL_PEEKEVENT, 1, 'SDL_PEEKEVENT should be imported' );
+is( SDL_PEEKEVENT(), 1, 'SDL_PEEKEVENT() should also be available' );
is( SDL_PREALLOC, 16777216, 'SDL_PREALLOC should be imported' );
is( SDL_PREALLOC(), 16777216, 'SDL_PREALLOC() should also be available' );
is( SDL_PRESSED, 1, 'SDL_PRESSED should be imported' );
is( SDL_PRESSED(), 1, 'SDL_PRESSED() should also be available' );
+
is( SDL_QUERY, -1, 'SDL_QUERY should be imported' );
is( SDL_QUERY(), -1, 'SDL_QUERY() should also be available' );
is( SDL_QUIT, 12, 'SDL_QUIT should be imported' );
is( SDL_QUIT(), 12, 'SDL_QUIT() should also be available' );
+
is( SDL_RELEASED, 0, 'SDL_RELEASED should be imported' );
is( SDL_RELEASED(), 0, 'SDL_RELEASED() should also be available' );
is( SDL_RESIZABLE, 16, 'SDL_RESIZABLE should be imported' );
is( SDL_RLEACCEL(), 16384, 'SDL_RLEACCEL() should also be available' );
is( SDL_RLEACCELOK, 8192, 'SDL_RLEACCELOK should be imported' );
is( SDL_RLEACCELOK(), 8192, 'SDL_RLEACCELOK() should also be available' );
+
is( SDL_SRCALPHA, 65536, 'SDL_SRCALPHA should be imported' );
is( SDL_SRCALPHA(), 65536, 'SDL_SRCALPHA() should also be available' );
is( SDL_SRCCOLORKEY, 4096, 'SDL_SRCCOLORKEY should be imported' );
is( SDL_SWSURFACE(), 0, 'SDL_SWSURFACE() should also be available' );
is( SDL_SYSWMEVENT, 13, 'SDL_SYSWMEVENT should be imported' );
is( SDL_SYSWMEVENT(), 13, 'SDL_SYSWMEVENT() should also be available' );
+
is( SDL_UYVY_OVERLAY, 1498831189, 'SDL_UYVY_OVERLAY should be imported' );
is( SDL_UYVY_OVERLAY(), 1498831189,'SDL_UYVY_OVERLAY() should also be available' );
+
is( SDL_VIDEOEXPOSE, 17, 'SDL_VIDEOEXPOSE should be imported' );
is( SDL_VIDEOEXPOSE(), 17, 'SDL_VIDEOEXPOSE() should also be available' );
is( SDL_VIDEORESIZE, 16, 'SDL_VIDEORESIZE should be imported' );
is( SDL_VIDEORESIZE(), 16, 'SDL_VIDEORESIZE() should also be available' );
+
is( SDL_YUY2_OVERLAY, 844715353, 'SDL_YUY2_OVERLAY should be imported' );
is( SDL_YUY2_OVERLAY(), 844715353,'SDL_YUY2_OVERLAY() should also be available' );
is( SDL_YV12_OVERLAY, 842094169, 'SDL_YV12_OVERLAY should be imported' );
-#!/usr/bin/perl\r
-\r
-# Test that our MANIFEST describes the distribution\r
-\r
-use strict;\r
-\r
-BEGIN {\r
- use English qw(-no_match_vars);\r
- $OUTPUT_AUTOFLUSH = 1;\r
- $WARNING = 1;\r
-}\r
-\r
-my @MODULES = (\r
- 'Test::DistManifest 1.001003',\r
-);\r
-\r
-# Don't run tests for installs\r
-use Test::More;\r
-unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {\r
- plan( skip_all => "Author tests not required for installation" );\r
-}\r
-\r
-# Load the testing modules\r
-foreach my $MODULE ( @MODULES ) {\r
- eval "use $MODULE";\r
- if ( $EVAL_ERROR ) {\r
- $ENV{RELEASE_TESTING}\r
- ? BAIL_OUT( "Failed to load required release-testing module $MODULE" )\r
- : plan( skip_all => "$MODULE not available for testing" );\r
- }\r
-}\r
-\r
-manifest_ok();\r
+#!/usr/bin/perl
+
+# Test that our MANIFEST describes the distribution
+
+use strict;
+
+BEGIN {
+ use English qw(-no_match_vars);
+ $OUTPUT_AUTOFLUSH = 1;
+ $WARNING = 1;
+}
+
+my @MODULES = (
+ 'Test::DistManifest 1.001003',
+);
+
+# Don't run tests for installs
+use Test::More;
+unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
+ plan( skip_all => "Author tests not required for installation" );
+}
+
+# Load the testing modules
+foreach my $MODULE ( @MODULES ) {
+ eval "use $MODULE";
+ if ( $EVAL_ERROR ) {
+ $ENV{RELEASE_TESTING}
+ ? BAIL_OUT( "Failed to load required release-testing module $MODULE" )
+ : plan( skip_all => "$MODULE not available for testing" );
+ }
+}
+
+manifest_ok();