Pygame only detects mouse events, does not detect KEYDOWN events

后端 未结 3 2006
清酒与你
清酒与你 2021-01-20 15:16

I have written the following simple program which should print out all events detected by pygame.event.get().

import pygame, sys
from pygame.loc         


        
3条回答
  •  情深已故
    2021-01-20 15:58

    If you're working in a virtualenv, don't use the virtualenv command.

    Use python3 -m venv.

    Then install pygame (e.g. pip3 install hg+http://bitbucket.org/pygame/pygame).

    See this thread for more details on this issue.

提交回复
热议问题