Browse Source

Use `SelNext...` and `SelPrevVertex` commands on `>` and `<` keypress

master
Krisjanis Rijnieks 9 years ago
parent
commit
051e2a4450
  1. 8
      src/Application/ProjectionMappingState.cpp
  2. 2
      src/Application/ProjectionMappingState.h

8
src/Application/ProjectionMappingState.cpp

@ -129,6 +129,14 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar
app->getCmdManager()->exec(new SelPrevSurfaceCmd(app->getSurfaceManager()));
break;
case '>':
app->getCmdManager()->exec(new SelNextVertexCmd(app->getSurfaceManager()));
break;
case '<':
app->getCmdManager()->exec(new SelPrevVertexCmd(app->getSurfaceManager()));
break;
default:
break;
}

2
src/Application/ProjectionMappingState.h

@ -12,6 +12,8 @@
#include "RmGridColCmd.h"
#include "SelNextSurfaceCmd.h"
#include "SelPrevSurfaceCmd.h"
#include "SelNextVertexCmd.h"
#include "SelPrevVertexCmd.h"
#include "TogglePerspectiveCmd.h"
#include "SurfaceType.h"

Loading…
Cancel
Save