Okay, maybe it sounds confusing. I just want to understand how to implement functions that wait for events and execute code inside the function. Something like this:
void onKeyPressed(int key) { //the code to be executed if a key has been pressed }
dog2002 via Digitalmars-d-learn Thu, 28 Jan 2021 09:15:33 -0800
Okay, maybe it sounds confusing. I just want to understand how to implement functions that wait for events and execute code inside the function. Something like this:
void onKeyPressed(int key) { //the code to be executed if a key has been pressed }