andrew@0: #include "testApp.h" andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::setup(){ andrew@0: drumTimer.initialise(); andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::update(){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::draw(){ andrew@0: drumTimer.draw(); andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::keyPressed(int key){ andrew@0: andrew@0: andrew@0: if (key == OF_KEY_UP){ andrew@0: drumTimer.recordedTracks.zoomOut(); andrew@0: andrew@0: } andrew@0: andrew@0: if (key == OF_KEY_DOWN){ andrew@0: drumTimer.recordedTracks.zoomIn(); andrew@0: } andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::keyReleased(int key){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::mouseMoved(int x, int y ){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::mouseDragged(int x, int y, int button){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::mousePressed(int x, int y, int button){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::mouseReleased(int x, int y, int button){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::windowResized(int w, int h){ andrew@0: drumTimer.windowResized(w, h); andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::gotMessage(ofMessage msg){ andrew@0: andrew@0: } andrew@0: andrew@0: //-------------------------------------------------------------- andrew@0: void testApp::dragEvent(ofDragInfo dragInfo){ andrew@0: andrew@0: }