1
0
mirror of https://github.com/The-Powder-Toy/The-Powder-Toy.git synced 2025-04-08 00:14:00 +02:00

render modes interface can be exited with ESC

This commit is contained in:
jacob1 2015-09-01 13:31:28 -04:00
parent b0ce2ee615
commit cd9d13503a
2 changed files with 6 additions and 0 deletions

@ -295,6 +295,11 @@ void RenderView::OnMouseDown(int x, int y, unsigned button)
c->Exit();
}
void RenderView::OnTryExit(ExitMethod method)
{
c->Exit();
}
void RenderView::NotifyRendererChanged(RenderModel * sender)
{
ren = sender->GetRenderer();

@ -34,6 +34,7 @@ public:
void NotifyColourChanged(RenderModel * sender);
void AttachController(RenderController * c_) { c = c_; }
void OnMouseDown(int x, int y, unsigned button);
void OnTryExit(ExitMethod method);
virtual void OnDraw();
virtual void OnTick(float dt);
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);