void ofApp::keyPressed(int key) { // if (key == '.') { // isRecording = !isRecording; // cout << "recording: " << isRecording << endl; // } // // if (key == '=') // isDrawing = !isDrawing; console->keyPressed(key); keyboard.keycode=mapStringToKeyCode(key); }
void Key::setString(string s_) { s = s_; keycode = mapStringToKeyCode(s); updateBounds(); }