Godot风格的事件系统工具库 - 支持Windows键盘所有按键、组合键和特殊键
Project description
godot-event
GodotEvent utilities - Enhanced Godot-style input event system for Python.
中文文档 | English
🚀 Features
- Multi-key binding: Support binding multiple keys to the same event
- Combo key support: Full combo key support (Ctrl+S, Shift+F12, etc.)
- Windows keyboard support: All Windows keyboard keys supported
- Performance optimized: Memory and performance optimizations
- Robust error handling: Comprehensive error handling system
- Pygame integration: Seamless integration with Pygame
📦 Installation
# Basic installation
pip install godot-event
# With Pygame support
pip install godot-event[pygame]
🚀 Quick Start
from godot_event import CreateInputSystem
# Create input system
input_system = CreateInputSystem()
# Create event and bind keys
input_system.EventCreate("jump")
input_system.EventBindKey("jump", "Space")
input_system.EventBindKey("jump", "W")
# Event listening
@input_system.on("jump")
def on_jump(event):
print("Jump event triggered!")
# Check event state
if input_system.IsEventPressed("jump"):
print("Jumping...")
📚 Documentation
For complete documentation with detailed examples and API reference, see:
- 中文文档 - Complete Chinese documentation
examples/directory - Practical usage examples
🧪 Examples
Check the examples/ directory for complete working examples.
🔧 Advanced Features
- Performance monitoring and optimization
- Comprehensive error handling
- Memory optimization
- Type hints and modular design
📄 License
MIT License - See LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file godot_event-0.1.0.tar.gz.
File metadata
- Download URL: godot_event-0.1.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b288a9266ec56d696b1d051c3130b189aa470eb0829c088a06e16c7535b8a691
|
|
| MD5 |
9157d0dbc3ad7031ef3c00c7ca0c3c0d
|
|
| BLAKE2b-256 |
1ba339a188e125ef66221ca289da7c78ba44d8471b9acecc7612791559519429
|
File details
Details for the file godot_event-0.1.0-py3-none-any.whl.
File metadata
- Download URL: godot_event-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff2df150de5be057637045038efa6e0ac59ac5b38d7ed9d7ca9a1ba39629fe01
|
|
| MD5 |
8f2d8dccfe2ab0b7f99a1a18a6217931
|
|
| BLAKE2b-256 |
999b3f43188279b86c0981668290f48985a0cf36605a1f23c39224cbd260a8ab
|