Permalink
Browse files

Merge branch 'redesign' of git@github.com:kthakore/SDL_perl into rede…

…sign
  • Loading branch information...
acme committed Nov 6, 2009
2 parents 42bd71c + 3d3d399 commit 3d4708dc918914df7d58f3b9373555b0c9fb9205
Showing with 1,492 additions and 100 deletions.
  1. +98 −0 Build.PL
  2. +8 −0 lib/SDL/ActiveEvent.pm
  3. +20 −6 lib/SDL/Constants.pm
  4. +8 −0 lib/SDL/ExposeEvent.pm
  5. +8 −0 lib/SDL/JoyAxisEvent.pm
  6. +8 −0 lib/SDL/JoyBallEvent.pm
  7. +8 −0 lib/SDL/JoyButtonEvent.pm
  8. +8 −0 lib/SDL/JoyHatEvent.pm
  9. +8 −0 lib/SDL/KeyboardEvent.pm
  10. +8 −0 lib/SDL/MouseButtonEvent.pm
  11. +8 −0 lib/SDL/MouseMotionEvent.pm
  12. +9 −0 lib/SDL/MultiThread.pm
  13. +8 −0 lib/SDL/QuitEvent.pm
  14. +8 −0 lib/SDL/ResizeEvent.pm
  15. +8 −0 lib/SDL/SysWMEvent.pm
  16. +8 −0 lib/SDL/TextInputEvent.pm
  17. +8 −0 lib/SDL/UserEvent.pm
  18. +8 −0 lib/SDL/keysym.pm
  19. +5 −0 lib/pods/SDL/Cookbook.pod
  20. +12 −0 lib/pods/SDL/MultiThread.pod
  21. +14 −3 lib/pods/SDL/Surface.pod
  22. +141 −29 lib/pods/SDL/Video.pod
  23. +37 −0 scripts/MultiThreadPOC.pl
  24. +54 −0 src/Core/Events.xs
  25. +27 −0 src/Core/MultiThread.xs
  26. +49 −0 src/Core/objects/ActiveEvent.xs
  27. +66 −0 src/Core/objects/Event.xs
  28. +30 −0 src/Core/objects/ExposeEvent.xs
  29. +57 −0 src/Core/objects/JoyAxisEvent.xs
  30. +65 −0 src/Core/objects/JoyBallEvent.xs
  31. +65 −0 src/Core/objects/JoyButtonEvent.xs
  32. +57 −0 src/Core/objects/JoyHatEvent.xs
  33. +50 −0 src/Core/objects/KeyboardEvent.xs
  34. +74 −0 src/Core/objects/MouseButtonEvent.xs
  35. +73 −0 src/Core/objects/MouseMotionEvent.xs
  36. +30 −0 src/Core/objects/QuitEvent.xs
  37. +47 −0 src/Core/objects/ResizeEvent.xs
  38. +8 −9 src/Core/objects/Surface.xs
  39. +42 −0 src/Core/objects/SysWMEvent.xs
  40. +65 −0 src/Core/objects/UserEvent.xs
  41. 0 src/Core/objects/typemap
  42. +16 −1 t/constantspm.t
  43. +58 −12 t/core_events.t
  44. +3 −2 t/core_multi.t
  45. +15 −3 t/core_surface.t
  46. +0 −2 t/core_video.t
  47. +33 −33 t/manifest.t
  48. +37 −0 tools/make_XS_stub.pl
  49. +15 −0 typemap
View
@@ -49,6 +49,83 @@ my %subsystems =
},
libraries => [qw( SDL )],
},
+ ActiveEvent => {
+ file => {
+ from => 'src/Core/objects/ActiveEvent.xs',
+ to => 'lib/SDL/ActiveEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ ExposeEvent => {
+ file => {
+ from => 'src/Core/objects/ExposeEvent.xs',
+ to => 'lib/SDL/ExposeEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ JoyAxisEvent => {
+ file => {
+ from => 'src/Core/objects/JoyAxisEvent.xs',
+ to => 'lib/SDL/JoyAxisEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ JoyBallEvent => {
+ file => {
+ from => 'src/Core/objects/JoyBallEvent.xs',
+ to => 'lib/SDL/JoyBallEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ JoyButtonEvent => {
+ file => {
+ from => 'src/Core/objects/JoyButtonEvent.xs',
+ to => 'lib/SDL/JoyButtonEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ JoyHatEvent => {
+ file => {
+ from => 'src/Core/objects/JoyHatEvent.xs',
+ to => 'lib/SDL/JoyHatEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ KeyboardEvent => {
+ file => {
+ from => 'src/Core/objects/KeyboardEvent.xs',
+ to => 'lib/SDL/KeyboardEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ MouseButtonEvent => {
+ file => {
+ from => 'src/Core/objects/MouseButtonEvent.xs',
+ to => 'lib/SDL/MouseButtonEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ MouseMotionEvent => {
+ file => {
+ from => 'src/Core/objects/MouseMotionEvent.xs',
+ to => 'lib/SDL/MouseMotionEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ UserEvent => {
+ file => {
+ from => 'src/Core/objects/UserEvent.xs',
+ to => 'lib/SDL/UserEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ MultiThread => {
+ file => {
+ from => 'src/Core/MultiThread.xs',
+ to => 'lib/SDL/MultiThread.xs',
+ },
+ libraries => [qw( SDL )],
+ },
Video => {
file => {
from => 'src/Core/Video.xs',
@@ -77,6 +154,13 @@ my %subsystems =
},
libraries => [qw( SDL )],
},
+ SysWMEvent => {
+ file => {
+ from => 'src/Core/objects/SysWMEvent.xs',
+ to => 'lib/SDL/SysWMEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
Overlay => {
file => {
from => 'src/Core/objects/Overlay.xs',
@@ -105,6 +189,20 @@ my %subsystems =
},
libraries => [qw( SDL )],
},
+ QuitEvent => {
+ file => {
+ from => 'src/Core/objects/QuitEvent.xs',
+ to => 'lib/SDL/QuitEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
+ ResizeEvent => {
+ file => {
+ from => 'src/Core/objects/ResizeEvent.xs',
+ to => 'lib/SDL/ResizeEvent.xs',
+ },
+ libraries => [qw( SDL )],
+ },
VideoInfo => {
file => {
View
@@ -0,0 +1,8 @@
+package SDL::ActiveEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::ActiveEvent;
+1;
View
@@ -202,7 +202,9 @@ our @EXPORT=qw(
SDLK_y
SDLK_z
SDL_ACTIVEEVENT
+ SDL_ALLEVENTS
SDL_ANYFORMAT
+ SDL_ADDEVENT
SDL_APPACTIVE
SDL_APPINPUTFOCUS
SDL_APPMOUSEFOCUS
@@ -218,6 +220,7 @@ our @EXPORT=qw(
SDL_DOUBLEBUF
SDL_ENABLE
SDL_FULLSCREEN
+ SDL_GETEVENT
SDL_GL_ACCUM_ALPHA_SIZE
SDL_GL_ACCUM_BLUE_SIZE
SDL_GL_ACCUM_GREEN_SIZE
@@ -267,6 +270,7 @@ our @EXPORT=qw(
SDL_MOUSEMOTION
SDL_OPENGL
SDL_OPENGLBLIT
+ SDL_PEEKEVENT
SDL_PREALLOC
SDL_PRESSED
SDL_QUERY
@@ -484,12 +488,14 @@ use constant {
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,
@@ -505,6 +511,7 @@ use constant {
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,
@@ -566,21 +573,28 @@ use constant {
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,
View
@@ -0,0 +1,8 @@
+package SDL::ExposeEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::ExposeEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::JoyAxisEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::JoyAxisEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::JoyBallEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::JoyBallEvent;
+1;
@@ -0,0 +1,8 @@
+package SDL::JoyButtonEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::JoyButtonEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::JoyHatEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::JoyHatEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::KeyboardEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::KeyboardEvent;
+1;
@@ -0,0 +1,8 @@
+package SDL::MouseButtonEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::MouseButtonEvent;
+1;
@@ -0,0 +1,8 @@
+package SDL::MouseMotionEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::MouseMotionEvent;
+1;
View
@@ -0,0 +1,9 @@
+package SDL::MultiThread;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::MultiThread;
+
+1;
View
@@ -0,0 +1,8 @@
+package SDL::QuitEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::QuitEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::ResizeEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::ResizeEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::SysWMEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::SysWMEvent;
+1;
@@ -0,0 +1,8 @@
+package SDL::TextInputEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::TextInputEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::UserEvent;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::UserEvent;
+1;
View
@@ -0,0 +1,8 @@
+package SDL::keysym;
+use strict;
+use warnings;
+require Exporter;
+require DynaLoader;
+our @ISA = qw(Exporter DynaLoader);
+bootstrap SDL::keysym;
+1;
@@ -0,0 +1,5 @@
+=pod
+
+=head1 SDL::Cookbook
+
+=cut
@@ -0,0 +1,12 @@
+=pod
+
+=head1 NAME
+
+SDL::Video - Bindings to the MultiThread category in SDL API
+
+=head1 SYNOPSIS
+
+This module is not an object.
+
+
+=cut
Oops, something went wrong.

0 comments on commit 3d4708d

Please sign in to comment.