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.1.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.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file godot_event-0.1.1.tar.gz.

File metadata

  • Download URL: godot_event-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 376bc8e82f0779e091cab8c02c242e7f6b39403db7606672a077167d82a46948
MD5 00475210a6ada92f5a0de1931afd680a
BLAKE2b-256 852fb23fe488819060fc9c4cd7f8ae6b1e286f441d3e60072d6b786778315ed8

See more details on using hashes here.

File details

Details for the file godot_event-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: godot_event-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd08f9f564e80235a61294711f2cf29f0d3f66bdbb07769891f857b26848ae91
MD5 25fddd95ab8e235f6b995a1a4d3c49be
BLAKE2b-256 d4acfca6dc273251800d0e5d12e62fdab9744de2f9f5b034270de7c03f6bffbb

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