Metadata-Version: 2.4
Name: pygame_event_handler
Version: 0.0.2
Summary: A small package that helps handling events in pygame-ce.
Project-URL: Homepage, https://github.com/awesome-open-source-projects/pygame-event-handler
Project-URL: Issues, https://github.com/awesome-open-source-projects/pygame-event-handler/issues
Author-email: yolowex <yolowex@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

## 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 and mouse focus

### Usage
```python
import pygame as pg
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()
```

### [Example](example/main.py)
#### In this Video, you can see the features in action, especially window and mouse focus, and held keys.
https://github.com/user-attachments/assets/b8e183ae-26c6-4057-a869-ecc986e25688


