Mads Marquart
117ec364f9
examples: Always use tracing helper module
2026-03-18 22:55:47 +01:00
Mads Marquart
9f789e56ee
examples: Use tracing macros instead of println!
...
This allows the examples to work a bit better in WASM and on iOS.
2026-03-18 22:55:47 +01:00
Mads Marquart
91558169d2
example: Fix tracing registration in pump_events
...
Tracing subscribers must be set up before `EventLoop::new()`.
2026-03-18 22:55:47 +01:00
Mads Marquart
7864d02077
Remove indentation in fill.rs helper
2026-03-17 04:34:15 +01:00
Mads Marquart
0f2d59cbba
Allow building examples using softbuffer on Android
...
These probably aren't runnable in the current state, but it should at
least allow us to get rid of a bunch of cfgs.
2026-03-17 04:34:15 +01:00
Tarek Abdel Sater
983e50971d
macOS: fix borderless game resetting after switching spaces ( #4482 )
2026-02-11 22:14:10 +01:00
Mads Marquart
cc23fbf3be
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 16:25:44 +09:00
Diggory Hardy
a9c189a423
winit-win32: prevent inner size reported as (0,0) when minimized
2025-11-01 23:39:57 +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
DorotaC
f41897cfa4
examples/ime: fix crash on wayland
...
When pressing Ctrl+Space, KeyEvent::text_with_all_modifiers would return
\0. That would get included in the text-input text. When an input method
gets activated, the invalid string returning \0 would get sent as
surrounding text, resulting in a Wayland protocol error and crashing the
application.
2025-10-29 13:40:30 +09:00
Kirill Chibisov
c333003514
Bump MSRV to 1.85 and edition to 2024
2025-10-20 00:01:36 +09:00
DorotaC
6de5041a94
winit-core/ime: add more purposes and content hints
...
Also move IME example into `ime.rs` thus making IME integrations more
easily comprehendible.
Co-authored-by: Kirill Chibisov <contact@kchibisov.com >
2025-09-06 13:27:55 +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