|
@ -14,7 +14,10 @@ Application::Application(){ |
|
|
ofAddListener(ofEvents().keyPressed, this, &Application::onKeyPressed); |
|
|
ofAddListener(ofEvents().keyPressed, this, &Application::onKeyPressed); |
|
|
ofAddListener(ofEvents().keyReleased, this, &Application::onKeyReleased); |
|
|
ofAddListener(ofEvents().keyReleased, this, &Application::onKeyReleased); |
|
|
ofAddListener(ofEvents().mousePressed, this, &Application::onMousePressed); |
|
|
ofAddListener(ofEvents().mousePressed, this, &Application::onMousePressed); |
|
|
|
|
|
|
|
|
ofAddListener(Gui::instance()->event, this, &Application::onGuiEvent); |
|
|
ofAddListener(Gui::instance()->event, this, &Application::onGuiEvent); |
|
|
|
|
|
ofAddListener(Gui::instance()->jointPressedEvent, this, &Application::onJointPressed); |
|
|
|
|
|
ofAddListener(Gui::instance()->surfacePressedEvent, this, &Application::onSurfacePressed); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Application::setup(){ |
|
|
void Application::setup(){ |
|
@ -120,6 +123,14 @@ void Application::onGuiEvent(GuiEvent & e){ |
|
|
cout << "GUI EVENT: " << e.args.x << ", " << e.args.y << ", " << e.type << endl; |
|
|
cout << "GUI EVENT: " << e.args.x << ", " << e.args.y << ", " << e.type << endl; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Application::onJointPressed(GuiJointEvent & e){ |
|
|
|
|
|
_state->onJointPressed(this, e); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Application::onSurfacePressed(GuiSurfaceEvent & e){ |
|
|
|
|
|
_state->onSurfacePressed(this, e); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void Application::addFboSource(FboSource & fboSource){ |
|
|
void Application::addFboSource(FboSource & fboSource){ |
|
|
_mediaServer.addFboSource(fboSource); |
|
|
_mediaServer.addFboSource(fboSource); |
|
|
} |
|
|
} |
|
|