@ultifinitus
Thanks for the tip. Can you help me with the syntax and tell me what polling is? I'm taking C++ 1 step at a time.
@rude/critical/opinionated people
For those of you who are critisizing my methods, forgive me, for I know not what the hell i'm doing because i'm ONLY a beginner and im not getting into graphics JUST yet. I'd like to learn the fundamentals first. Thank you for your patience.
@Duoas- "Libraries like NCurses help a lot"
Can you explain how these libs work? I dont want to download somthing without knowing what's in it. (I like to keep my computer as safe as humanly possible, and that's a hard thing to do, lol)
@whitenite1 and possibly everyone else
So, i understand how to get the key, but to the C++ language, what defines a "key"? I have a list of the virtual key codes but i'm not sure how C++ libs would take them... I've been searching online for keylogging examples (because as you might know, key logging gets keys of every kind) and I played with one of the harmless open source codes and experimented with it. I still dont quite understand what each key is to C++.
ex: VKC for "x" is 0x58. Would this:
1 2 3 4
|
if (AsyncKeyState(chara) == 0x58)
{
cout<< "x"<< endl;
}
|
display the letter x when x is pressed? Or is it some number?
I appreciate your time and effort.