Crate ui_events

Crate ui_events 

Source
Expand description

A cross-platform input event abstraction modeled after W3C UI Events specifications.

Provides common vocabulary types for working with pointer events (mouse, touch, pen) and keyboard events in a platform-agnostic way. The crate aims to closely follow W3C standards while remaining practical for native application development.

Includes support for:

  • Pointer events (down/move/up, pressure, tilt, etc.)
  • Keyboard events (key codes, modifiers, location)

For integration with winit, use the companion ui-events-winit adapter crate.

§Features

  • std (enabled by default): Use the Rust standard library.
  • kurbo: Add convenience methods for easily converting dpi positions to kurbo Points.

Modules§

keyboard
Keyboard Types
pointer
Pointer Event Types

Enums§

ScrollDelta
Scroll delta.