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:
parent
b0ce2ee615
commit
cd9d13503a
src/gui/render
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user