I need to get the key state, but my program is always getting a line, so the getkeystate doesn't recognize the key getting clicked, anyways to fix that?
example of the sort of thing pseudo-code: if(getkey("x")){\\do stuff}getline(cin,str)
how do I get both the getkey to also activate when a specific key is pressed? instead of it just not working
What I have tried:
i've tried replacing getline with getkeystate, makes code way way too slow, so what should I do?