Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking any key
#2
you need a keyboard listener.
You can build your own with ctypes, or use one of the available packages: https://pypi.org/search/?q=keyboard
If you choose keyboard package: https://pypi.org/project/keyboard/
see examples on README
pygame has built in event handler for this (I'm only slightly familiar with pygame as 99% of my code is not game related),
but see: https://code-knowledge.com/create-game-w...ard-input/
Reply


Messages In This Thread
Checking any key - by wallgraffiti - Jul-30-2020, 10:12 AM
RE: Checking any key - by Larz60+ - Jul-31-2020, 01:22 AM
RE: Checking any key - by michael1789 - Aug-01-2020, 09:14 AM
RE: Checking any key - by wallgraffiti - Aug-02-2020, 09:42 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020