|
@ -16,9 +16,12 @@ Application::Application(){ |
|
|
// TODO: Get rid of listeners, pipe application events from the example app
|
|
|
// TODO: Get rid of listeners, pipe application events from the example app
|
|
|
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(ofEvents().mouseReleased, this, &Application::onMouseReleased); |
|
|
ofAddListener(ofEvents().mouseReleased, this, &Application::onMouseReleased); |
|
|
ofAddListener(ofEvents().mouseDragged, this, &Application::onMouseDragged); |
|
|
ofAddListener(ofEvents().mouseDragged, this, &Application::onMouseDragged); |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
ofAddListener(Gui::instance()->jointPressedEvent, this, &Application::onJointPressed); |
|
|
ofAddListener(Gui::instance()->jointPressedEvent, this, &Application::onJointPressed); |
|
|
ofAddListener(Gui::instance()->surfacePressedEvent, this, &Application::onSurfacePressed); |
|
|
ofAddListener(Gui::instance()->surfacePressedEvent, this, &Application::onSurfacePressed); |
|
|