Quantcast
Viewing all articles
Browse latest Browse all 40524

Using the space key

I would check first if the key pressed is that one you are looking for, and then apply any kind of logic

void ofApp::keyPressed(int key){
    if(key == OF_KEY_SPACE){
        if(choice == 1) choice = 0;
    }
}

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>