8000 Standardize Keyboard and Pointer Event Handling · Issue #729 · RibirX/Ribir · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Standardize Keyboard and Pointer Event Handling #729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
M-Adoo opened this issue Apr 6, 2025 · 1 comment
Open

Standardize Keyboard and Pointer Event Handling #729

M-Adoo opened this issue Apr 6, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@M-Adoo
Copy link
Collaborator
M-Adoo commented Apr 6, 2025

Objective

Align event handling implementation with web standards to enhance developer experience and leverage established specifications.

Current Implementation Status

  • Preliminary event system implementation with inconsistencies
  • There are direct dependencies on winit-specific event types.
  • Pointer events currently only handle mouse input (no touch event support)

Proposed Implementation Strategy

Keyboard Events

  • Adopt madsmtm/keyboard-types crate (tracking winit adoption progress in rust-windowing/winit#4026)
  • Implementation benefits:
    • Web-standard compliant keyboard event handling
    • Simplified conversion from winit events to internal abstraction

Pointer Events

  • Current implementation: Basic mouse event handling via winit
  • Proposed upgrade: Adopt winit's unified pointer event API (rust-windowing/winit#3876) post-release
    • Enable comprehensive touch event support
    • Simplify pointer event abstraction layer

Dependency Management

  • Target winit 0.31.0 for implementation
  • Key advantages:
    • Reduced implementation complexity
    • Improved long-term maintainability
    • Better alignment with upstream improvements

This phased approach enables standards-compliant implementation while minimizing redundant work through strategic dependency management.

@M-Adoo M-Adoo added the enhancement New feature or request label Apr 6, 2025
@M-Adoo M-Adoo changed the title # Standardize Keyboard and Pointer Event Handling Standardize Keyboard and Pointer Event Handling Apr 6, 2025
@nicoburns
Copy link

There is a (currently early-stage) proposal for a standalone pointer events crate similar to keyboard-types endoli/ui-events#2 (the idea would be for winit to adopt this too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
0