Skip to content

Instantly share code, notes, and snippets.

@faaip
Created January 19, 2017 14:59
Show Gist options
  • Save faaip/d89f9ffa5c1419b84544cd1baa64ab8f to your computer and use it in GitHub Desktop.
Save faaip/d89f9ffa5c1419b84544cd1baa64ab8f to your computer and use it in GitHub Desktop.
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofLogToFile("log.txt", true);
}
//--------------------------------------------------------------
void ofApp::update(){
}
//--------------------------------------------------------------
void ofApp::draw(){
}
//--------------------------------------------------------------
void ofApp::keyPressed(int key){
}
//--------------------------------------------------------------
void ofApp::keyReleased(int key){
ofLog() << "key pressed" << key << " " <<ofGetTimestampString();
}
//--------------------------------------------------------------
void ofApp::mouseMoved(int x, int y ){
ofLog() << "mouse position" << x << " " << y;
}
//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){
}
//--------------------------------------------------------------
void ofApp::mouseEntered(int x, int y){
}
//--------------------------------------------------------------
void ofApp::mouseExited(int x, int y){
}
//--------------------------------------------------------------
void ofApp::windowResized(int w, int h){
}
//--------------------------------------------------------------
void ofApp::gotMessage(ofMessage msg){
}
//--------------------------------------------------------------
void ofApp::dragEvent(ofDragInfo dragInfo){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment