Skip to content
Advertisement

Tag: keyevent

Key compination at pygame

I’m using this python code https://gist.github.com/seankmartin/f660eff4787b586f94d5f678932bcd27#file-keyboardpress-py to get time for keyboard events. It’s working well, but I need to get KEYDOWN and KEYUP also for capital letters and exclamation point. So I modified it by adding to this part So now it looks like this But I still can’t get no capitals letter, no exclamation point. What i’m doing wrong?

Advertisement