I wish to count the total number of times a button is pressed.Actually was working on coin recognition system and when a button is pressed I want to calculate its key Press numbers, if button press >1 so that I may able to flush the screen (clear the screen) to load the image again for other operation . I tried to do so but counter is not updated . best regards.
MATLAB: Key press counter not updating
keypress_counter
Best Answer