mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Merge pull request #258 from qzole/sdl_handle_events
Added virtual HandleEvent to SDLApp
This commit is contained in:
commit
e18b35df7a
1 changed files with 6 additions and 2 deletions
|
@ -166,6 +166,11 @@ namespace SDL2
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void HandleEvent(SDL.Event evt)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void Draw(Image image, float x, float y)
|
public void Draw(Image image, float x, float y)
|
||||||
{
|
{
|
||||||
SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h);
|
SDL.Rect srcRect = .(0, 0, image.mSurface.w, image.mSurface.h);
|
||||||
|
@ -226,8 +231,7 @@ namespace SDL2
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.type == .Quit)
|
HandleEvent(event);
|
||||||
return;
|
|
||||||
|
|
||||||
waitTime = 0;
|
waitTime = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue