Skip to main content

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


Download files

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

Source Distribution

godot_event-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

godot_event-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

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

Hashes for godot_event-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b288a9266ec56d696b1d051c3130b189aa470eb0829c088a06e16c7535b8a691
MD5 9157d0dbc3ad7031ef3c00c7ca0c3c0d
BLAKE2b-256 1ba339a188e125ef66221ca289da7c78ba44d8471b9acecc7612791559519429

See more details on using hashes here.

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

Hashes for godot_event-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff2df150de5be057637045038efa6e0ac59ac5b38d7ed9d7ca9a1ba39629fe01
MD5 8f2d8dccfe2ab0b7f99a1a18a6217931
BLAKE2b-256 999b3f43188279b86c0981668290f48985a0cf36605a1f23c39224cbd260a8ab

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