diff options
Diffstat (limited to 'gui/src/ofApp.h')
| -rw-r--r-- | gui/src/ofApp.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gui/src/ofApp.h b/gui/src/ofApp.h index 29c6929..4d766e9 100644 --- a/gui/src/ofApp.h +++ b/gui/src/ofApp.h @@ -37,9 +37,9 @@ enum Source{ }; -class mouseSelectPanel : public ofxPanel { +class chaosPanel : public ofxPanel { public: - mouseSelectPanel(){ + chaosPanel(){ ofRegisterKeyEvents(this, defaultEventsPriority); } bool isSelected; @@ -67,11 +67,14 @@ class mouseSelectPanel : public ofxPanel { //ofLog()<<"KEY> "<<args.key; switch(args.key){ case 3812:{ - //previous + chaosloader.previous(); + update_sliders(); break; } case 3814:{ - //next + chaosloader.next(); + update_sliders(); + break; } } } @@ -79,7 +82,12 @@ class mouseSelectPanel : public ofxPanel { bool keyReleased(ofKeyEventArgs & args){ //required in order to call ofRegisterKeyEvents } - + void update_sliders(){ + //delete sliders + //get number of params + //create sliders with stored values, names + } + Chaos chaosloader; }; @@ -176,7 +184,7 @@ class ofApp: public ofBaseApp, public ofxMidiListener { //======== chaos gui - mouseSelectPanel chaosgui; + chaosPanel chaosgui; ofxLabel plugin_label; ofParameter<string> plugin_name; |
