mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added virtual HandleEvent to SDLApp for ease in case it's needed (imgui binding for example handles all events like this.
Removed duplicated Quit event type handling.
This commit is contained in:
parent
71aea8107f
commit
cae19b3363
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue