Hello,
first of all, i apologize if my english is not accurate.
Now the question,
is the following possible in C/C++:
i write it in (beginners) pseudo-code.
// start
cout << "Enter: ";
m = getch(); // i need an input-function wich processed every keypress
// instantly
clock the time of how long the key is pressed
keypress = the time of how long the key was pressed
if (keypress < 0.5 sec)
cout << "a";
if (keypress > 0.5 sec)
cout << "b";
// end
And is it possible to give out a note for the whole time the key is pressed?
Thank you very much!
greetings,
newatC