7 years, 9 months ago.

Button control

Hello Any one to know how I can controll with the help of the 2, 3 buttons different voids. For example I want when I press first button to execute one void , and when press second button to execute the second void and so on . Thank you

1 Answer

7 years, 9 months ago.

Any reason why this isn't as simple as:

if (button1) function1();
if (button2) function2();
if (button3) function3();

Yes thank you , but did I need to put this "if" in some functions or directly in "int main". And how I can make for example if I press the both buttons together to execute different functions.

posted by Viktoria Vladimirova 10 Mar 2017