-
Notifications
You must be signed in to change notification settings - Fork 28
Fix windows build #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix windows build #130
Conversation
Toggle mouse passthrough now uses CursorOptions component instead of window.cursor.
fix: `get_single_mut()` to `single_mut()`
Changed test `UserSession` window_dims from float to u32
src/utils.rs
Outdated
| pub fn toggle_window_passthrough( | ||
| keyboard_input: Res<ButtonInput<KeyCode>>, | ||
| mut windows: Query<&mut Window>, | ||
| mut windows: Query<(&mut Window, &mut CursorOptions)>, // Query both! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant comment
src/utils.rs
Outdated
| cursor_options.hit_test = !cursor_options.hit_test; | ||
|
|
||
| info!( | ||
| "PASSTHROUGH TOGGLED → hit_test: {} | decorations: {:?}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
→ ? probs better to use : as it's more widely supported, these extended glyph/chars etc are not supported by all fonts.
alphastrata
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just the same comment and → ? that need removing
replace :? with :
This will now run.
The drag n drop fixes from my previous PR were unintentionally included and not tested.