I've sifted through a lot of topics on the internet (including looking at the code for this article, which looked useful but didn't explain much to me as a beginner) and I need a lightweight, simple method for handling real time input in the command prompt window. I was using the kbhit()/getch() combination for awhile, but I don't think I can make that work for say, if I'm holding a key down that alters the actions of pressing a different key, like if I hold the B button on a controller to run. I'm also using a game state driven structure and so I would think I'd need to make some kind of object to handle this stuff to make things cleaner.
The problem when I look at these is that I'm just not experienced in these methods or the lingo involved. They almost never explain things. I tend to learn pretty well through explicit definitions, rigorously varied examples, perhaps some underlying mechanics, and pro/con analyses. But most people just say "do this followed by this" and it discourages me because I like to micromanage when possible, and I can never get to a point where I know everything someone is saying unless I spend hours in Google. In this case I specifically do not want to put bulky libraries in my code because I have to keep the filesize ridiculously small, and I thought it might be easier if I coded my own method for my specific purposes so I don't have extraneous bits lying around. It'd be awesome if I could figure out controller input as well.
If someone could explain a good way to do this I'd be really grateful. Thanks!