Permalink
Browse files

render modes interface can be exited with ESC

  • Loading branch information...
jacob1 committed Sep 1, 2015
1 parent b0ce2ee commit cd9d13503abdf3c5703c2d80449703daee17c807
Showing with 6 additions and 0 deletions.
  1. +5 −0 src/gui/render/RenderView.cpp
  2. +1 −0 src/gui/render/RenderView.h
@@ -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 @@ class RenderView: public ui::Window {
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);

0 comments on commit cd9d135

Please sign in to comment.