diff --git a/BeefLibs/SDL2/src/SDL2.bf b/BeefLibs/SDL2/src/SDL2.bf index ac494dc0..2374b3ec 100644 --- a/BeefLibs/SDL2/src/SDL2.bf +++ b/BeefLibs/SDL2/src/SDL2.bf @@ -52,10 +52,10 @@ namespace SDL2 } [LinkName("SDL_malloc")] - static extern void* malloc(int size); + public static extern void* malloc(int size); [LinkName("SDL_free")] - static extern void free(void* memblock); + public static extern void free(void* memblock); public struct RWOps; diff --git a/BeefLibs/SDL2/src/SDLApp.bf b/BeefLibs/SDL2/src/SDLApp.bf index c4da5827..922a0fb8 100644 --- a/BeefLibs/SDL2/src/SDLApp.bf +++ b/BeefLibs/SDL2/src/SDLApp.bf @@ -166,6 +166,11 @@ namespace SDL2 } + public virtual void HandleEvent(SDL.Event evt) + { + + } + public void Draw(Image image, float x, float y) { SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h); @@ -226,8 +231,7 @@ namespace SDL2 default: } - if (event.type == .Quit) - return; + HandleEvent(event); waitTime = 0; }