Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Best way to do something only once, in the same way as ofKeyPressed etc

$
0
0

@dannyZyg wrote:

Hi all,

What would be the best way to recreate something like ofGetKeyPressed within my code, where a unique event happens only once and doesn’t get caught in the program loop?

Do I need to look into ofEvent?

In the past I’ve concocted a series of conditions for this sort of thing, which can get messy and confusing.

Just seeing if there is a simple way?

Thanks

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles