mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
render modes interface can be exited with ESC
This commit is contained in:
@@ -295,6 +295,11 @@ void RenderView::OnMouseDown(int x, int y, unsigned button)
|
|||||||
c->Exit();
|
c->Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RenderView::OnTryExit(ExitMethod method)
|
||||||
|
{
|
||||||
|
c->Exit();
|
||||||
|
}
|
||||||
|
|
||||||
void RenderView::NotifyRendererChanged(RenderModel * sender)
|
void RenderView::NotifyRendererChanged(RenderModel * sender)
|
||||||
{
|
{
|
||||||
ren = sender->GetRenderer();
|
ren = sender->GetRenderer();
|
||||||
|
@@ -34,6 +34,7 @@ public:
|
|||||||
void NotifyColourChanged(RenderModel * sender);
|
void NotifyColourChanged(RenderModel * sender);
|
||||||
void AttachController(RenderController * c_) { c = c_; }
|
void AttachController(RenderController * c_) { c = c_; }
|
||||||
void OnMouseDown(int x, int y, unsigned button);
|
void OnMouseDown(int x, int y, unsigned button);
|
||||||
|
void OnTryExit(ExitMethod method);
|
||||||
virtual void OnDraw();
|
virtual void OnDraw();
|
||||||
virtual void OnTick(float dt);
|
virtual void OnTick(float dt);
|
||||||
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
|
||||||
|
Reference in New Issue
Block a user