Commit graph

15 commits

Author SHA1 Message Date
Mads Marquart
4c5bf0ee08 winit/event_loop: Add register_app and run_app_never_return
To allow users to explicitly choose the run semantics that they want.
2025-11-16 17:23:28 +09:00
Kirill Chibisov
0a59e4b905
chore: fix clippy on X11 2025-11-16 13:07:23 +09:00
Diggory Hardy
9d9d21cfdb winit-core: revise MouseButton type
Unify the values of `MouseButton` and thus remove `Other` variant in
limit possible buttons to 32, which was picked based on platform
capabilities, where 32 is the highest.

For the reference, SDL has identical limit.
2025-11-01 21:00:39 +09:00
Pavel Strakhov
03dad26c43
x11: ignore mouse scroll button release events 2025-10-24 20:07:10 +09:00
Kirill Chibisov
c333003514 Bump MSRV to 1.85 and edition to 2024 2025-10-20 00:01:36 +09:00
Arthur Cosentino
10f21090ce
x11: fix deadlock in request_ime_update 2025-10-09 16:57:20 +09:00
Kirill Chibisov
f046e778aa
winit-core:winit: add tablet input support
The API is integrated into the `WindowEvent::Pointer*` API and is
present in form of `TabletTool` variant on corresponding data entries.

For now implemented for Web, Windows, and with limitations for Wayland.

Fixes #99.

Co-authored-by: daxpedda <daxpedda@gmail.com>
2025-10-07 21:42:36 +09:00
sachharine
ffcdf80192
chore: fix typos causing dead links 2025-10-07 19:25:41 +09:00
Kirill Chibisov
bd98561b38
chore: fix typos from recent typos-cli (#4329) 2025-08-12 16:30:34 +09:00
DorotaC
abed32eb80
winit-core/window: wrap ImeCapabilities in struct
To prevent user from using `::all()` and thus writing not forward
compatible code wrap the bitflags struct and provide simpler interface
to it.
2025-06-29 13:53:47 +09:00
DorotaC
08907148ec
winit-core/window: add Window::request_ime_update
Allow updating IME state atomically to make it easier for platforms
where it's atomic by its nature, like Wayland. The old API is marked
as deprecated and is routed to the new atomic API.

Co-authored-by: dcz <gilapfco.dcz@porcupinefactory.org>
2025-06-28 13:14:20 +09:00
Mads Marquart
e1bccb68d8
chore: use a shared version number for all winit-* crates 2025-06-08 09:22:58 +09:00
Kirill Chibisov
3a84da6951
Move winit itself to crate
That way we use top-level Cargo.toml only for the workspace management
purposes.
2025-06-07 13:07:12 +09:00
Mads Marquart
8ad016362a
chore: move event loop recreation check into backends themselves 2025-05-26 13:48:52 +09:00
Mads Marquart
256bbe949e
Move X11 backend to winit-x11 (#4253) 2025-05-25 17:24:00 +02:00