Releases: endoli/ui-events
Releases · endoli/ui-events
v0.2.0
| Crate | Crates.io | Docs |
|---|---|---|
ui-events |
Crates.io | Docs |
ui-events-winit |
Crates.io | Docs |
ui-input-state |
Crates.io | Docs |
This release has an MSRV of 1.82.
Overview
ui-events v0.2.0 is a major overhaul to the ergonomics of event handling (particularly handling scale).
It also debuts the new ui-input-state crate, providing reusable keyboard and pointer state tracking.
This release includes contributions from five developers, with three newcomers @nicoburns, @arthur-fontaine, and @jrmoulton.
Thank you for your help!
Highlights
- New crate:
ui-input-state— initial release, providingKeyboardState,PrimaryPointerState, which provide useful stateful information about inputs. - Pointer gestures: Added pinch and rotate gesture support via
PointerGestureandPointerGestureEvent. - Scale factor support:
PointerStatenow carries the scale factor, for easy translation. - Performance improvements: Reduced allocations and simplified event data structures.
- Better consistency and ergonomics: Pointer event variants refactored for clarity and flexibility.
- Platform improvements:
ui-events-winitnow does scale-aware tap/click counting.
Crate-by-Crate Details
ui-events 0.2.0
Added
is_primary_pointermethod toPointerId,PointerInfo,PointerUpdate, andPointerEvent. (#54)PointerGestureandPointerGestureEventtypes, with newGestureevent variant. (#80)scale_factorfield toEventStatefor logical/device pixel conversion. (#82)- Optional
kurbointegration via Cargo feature forkurbo::Pointconversion helpers.
- Optional
Changed
- Refactored
PointerEventstruct variants (Down,Up,Scroll) into distinct structs for clarity. (#63)
ui-events-winit 0.2.0
Added
PointerGestureandPointerGestureEventintegration for winit-based platforms. (#80)scale_factorparameter inWindowEventReducer::reduce, improving tap/click counting across display scales. (#78)
Changed
- Converted
PointerEventstruct variants into separate structs. (#63) - Reduced allocations in
TapCounterfor better performance. (#61)
ui-input-state 0.2.0
Initial release
KeyboardStatefor key tracking.key_str_downvariants forKey::Charactermatching without allocation. (#84)
PrimaryPointerStatefor tracking button state, and positions/motion (#83).
Contributors
- @waywardmonkeys
- @xorgy
- @nicoburns (first contribution)
- @arthur-fontaine (first contribution)
- @jrmoulton (first contribution)
Links
Full Changelog: v0.1.0 → v0.2.0