As the title suggests, I want to get input in python. Now, wait. You could say that I made the topic for it a bit ago. You're right, I did. I could have revived it but decided against it do to some bad blood with necromancy. So, Here's my issue:
I want to get input with python.
The thing you're thinking about must be about using the raw_input or just input. However, there's a problem: Windows.
When I use pygame and input(), the function works... in a strange way. It asks me for input, but it does so in a different window. Let's say I have a game.py file and I run it through the command line. My game window will be generated, but when I ask for input, my input will be expected in the command line itself rather than inside the game.
One suggestion I got in my last topic about this issue is using unicode. That works great... for all lowercase letters. I can't enter capitals no matter how hard I try, and that is do to me using for event in pygame.event.get() as my loop. As far as I understood, there is no such thing as capital unicode, so there won't be any point in re-coding the function to look like this:
def input():
keylist=pygame.key.get_pressed()
If I do re-code the function to look like that, how would I move forward? How can I test if a key has been pressed, if it's in the unicode table, and if it has shift pressed with it, all of that without having to write dozens of if statements for every single button on the keyboard?
I do hope there is an easier solution to this. I know that you can combine WX with pygame, but WX is complicated from what I've seen.