As you can understand from the title, I want to get input from the user without pressing the ENTER key.
If I need to talk about the program I want to do:
I'm writing a keyboard speed test program. And as you can guess I want to get the input with the SPACE key, not the ENTER key.
The program I designed was like this:
Example text = "... an apple ..." I will take every key the user presses and check if that key is an SPACE key .If this key is the SPACE key, I'll change to the new word.
I've reviewed other similar topics on this site. If what I wanted to tell was complicated or I couldn't explain it, let me say it. In games, it is enough to press the SPACE key to jump. There is no need to press the ENTER key.
I want something like this. And I want to do this using the standard library of c if possible. I don't want to use any 3rd party libraries.
One more addition: The function I want is a function similar to the getchar() function. The only difference; I want to get input without pressing the ENTER key.