Use a variable of char type and each bit of it indicates if a button is
pressed or not. For example,
0010010
tells that 3rd and 7th buttons are pressed down.
How to set bit to to 1 or 0 in C++? How to check to see if the 6th bit is
set to 1 or 0?
Thanks!
pressed or not. For example,
0010010
tells that 3rd and 7th buttons are pressed down.
How to set bit to to 1 or 0 in C++? How to check to see if the 6th bit is
set to 1 or 0?
Thanks!
Comment