MCPcopy Create free account
hub / github.com/braitsch/ofxDatGui / onTextInputEvent

Method onTextInputEvent

example-TextInputs/src/ofApp.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void 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
30void ofApp::update()
31{

Callers 1

setupMethod · 0.45

Calls 1

getTextMethod · 0.45

Tested by

no test coverage detected