//-------------------------------------------------------------- void testApp::keyPressed(int key){ if (key == OF_KEY_LEFT) moveFrame(-1); if (key == OF_KEY_RIGHT) moveFrame(+1); if (key == OF_KEY_UP) moveThreshold(+2); if (key == OF_KEY_DOWN) moveThreshold(-2); if (key=='l') decoder.loadDataSet(); if (key=='s') decoder.saveDataSet(); if (key=='v') video.videoSettings(); }
void SpritePlus::moveFrame(sf::Vector2f move) { moveFrame(move.x, move.y); }