Skip to main content

A small package that helps handling events in pygame-ce.

Project description

Pygame Event Handler

A simple python package that helps with handling events in pygame-ce.

Features

  • Provides easy-to-use interface for checking if a key is pressed,held, or released (keyboard and mouse buttons)
  • Provides easy-to-use interface to find the location of the mouse cursor
  • Calculates delta time and real time FPS
  • Checks window focus

Example

import pygame_ce
from pygame_event_handler.event_handler import EventHandler

pg.init()
screen = pg.display.set_mode([800,600])

event_handler = EventHandler()

while not event_handler.should_quit:
    event_handler.get_events()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygame_event_handler-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygame_event_handler-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pygame_event_handler-0.0.1.tar.gz.

File metadata

  • Download URL: pygame_event_handler-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pygame_event_handler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d1319ebf121e9c57a43d930d4cffed17d92b6dfdb1b0794dcd8d54b250361985
MD5 64fb8e1bd35ba30a777fe8c75625eff4
BLAKE2b-256 c47bf2ea329e581970ab0f1f3d884d0886d62fb61d797a0563611947d44ff131

See more details on using hashes here.

File details

Details for the file pygame_event_handler-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pygame_event_handler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c205338132ca35f15fbcf7ed42923deb17e393b0a2e5e35234ab18f549bd3a9
MD5 df23faba496d8ba01cddccc546d7027d
BLAKE2b-256 d466701326dc1b6385bc745ae7a764bc313d27a4df9540b1bd5bfb4e5f1801f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page