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