| 20 | } |
| 21 | |
| 22 | void ofApp::onTextInputEvent(ofxDatGuiTextInputEvent e) |
| 23 | { |
| 24 | // text input events carry the text of the input field // |
| 25 | cout << "From Event Object: " << e.text << endl; |
| 26 | // although you can also retrieve it from the event target // |
| 27 | cout << "From Event Target: " << e.target->getText() << endl; |
| 28 | } |
| 29 | |
| 30 | void ofApp::update() |
| 31 | { |