1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Merge pull request #258 from qzole/sdl_handle_events

Added virtual HandleEvent to SDLApp
This commit is contained in:
Brian Fiete 2020-05-14 15:17:06 -07:00 committed by GitHub
commit e18b35df7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}