Skip to content

Commit

Permalink
render modes interface can be exited with ESC
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 1, 2015
1 parent b0ce2ee commit cd9d135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/render/RenderView.cpp
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/gui/render/RenderView.h
Expand Up @@ -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);
Expand Down

0 comments on commit cd9d135

Please sign in to comment.