bevy/crates/bevy_window/src
Jer b3e45b75d6 Expose set_cursor_hittest() from winit (#6664)
# Objective

- Bevy should be usable to create 'overlay' type apps, where the input is not captured by Bevy, but passed down/into a target app, or to allow passive displays/widgets etc.
 
## Solution

- the `winit:🪟:Window` already has a `set_cursor_hittest()` which basically does this for mouse input events, so I've exposed it (trying to copy the style laid out in the existing wrappings, and added a simple demo.

---

## Changelog

- Added `hittest` to `WindowAttributes`
- Added the `hittest`'s setters/getters
- Modified the `WindowBuilder`
- Modifed the `WindowDescriptor`'s `Default` impl.
- Added an example `cargo run --example fallthrough`
2022-11-21 12:59:10 +00:00
..
cursor.rs Derived Copy trait for bevy_input events, Serialize/Deserialize for events in bevy_input and bevy_windows, PartialEq for events in both, and Eq where possible in both. (#6023) 2022-09-20 18:24:00 +00:00
event.rs Make bevy_window and bevy_input events serializable (#6180) 2022-10-06 13:14:23 +00:00
lib.rs Add send_event and friends to WorldCell (#6515) 2022-11-07 21:25:31 +00:00
raw_handle.rs Update wgpu to 0.14.0, naga to 0.10.0, winit to 0.27.4, raw-window-handle to 0.5.0, ndk to 0.7 (#6218) 2022-10-19 17:40:23 +00:00
system.rs Add Windows::get_focused(_mut) (#6571) 2022-11-14 21:59:18 +00:00
window.rs Expose set_cursor_hittest() from winit (#6664) 2022-11-21 12:59:10 +00:00
windows.rs Add Windows::get_focused(_mut) (#6571) 2022-11-14 21:59:18 +00:00