Crates.io | bevy_windows_param |
lib.rs | bevy_windows_param |
version | 0.1.1 |
source | src |
created_at | 2023-05-10 17:38:52.279952 |
updated_at | 2023-05-10 20:18:48.280291 |
description | Bevy `SystemParam` providing a more ergonomic interface for accessing window-specific information, like resolutions and cursor positions. |
homepage | |
repository | https://github.com/ickshonpe/bevy_windows_param |
max_upload_size | |
id | 861483 |
size | 97,925 |
bevy_windows_param::Windows
is a Bevy SystemParam
providing a more ergonomic interface for accessing window-specific information, like resolutions and cursor positions."
The implemented methods include:
get_window
: Retrieves a Window
resolution
: Returns the logical resolution of a windowphysical_resolution
: Returns the physical resolution of a windowscale_factor
: Returns the scale factor of a windowcursor_position
: Determines the window over which the cursor is positioned, as well as the cursor's location within that window.ui_cursor_position
: Similar to cursor_position
, but returns the cursor's position in UI coordinates.world_cursor_position
: Similar to cursor_position
, but returns the cursor's position in world coordinates.Supports Bevy version 0.10
cargo run --example cursor_position
cargo run --example multiple_windows