I have written the following simple program which should print out all events detected by pygame.event.get()
.
import pygame, sys
from pygame.loc
For anyone still struggling with this, the issue is documented here on git and is fixed. https://github.com/pygame/pygame/issues/203
Just uninstall pygame from your venv, then install below version.
pip install -U https://github.com/pygame/pygame/archive/master.zip
Just tried this and can finally use key events in pygame.