Skip to content

[Merged by Bors] - Fix scale factor for cursor position#2932

Closed
mockersf wants to merge 3 commits intobevyengine:mainfrom
mockersf:scale-factor-for-cursor-position
Closed

[Merged by Bors] - Fix scale factor for cursor position#2932
mockersf wants to merge 3 commits intobevyengine:mainfrom
mockersf:scale-factor-for-cursor-position

Conversation

@mockersf
Copy link
Member

@mockersf mockersf commented Oct 7, 2021

Objective

Solution

  • keep the physical cursor position in Window, and expose it.
  • still convert to logical position in event, and when getting cursor_position

ahmedcharles and others added 2 commits October 8, 2021 00:43
Sometimes the wrong scale factor was used (not accounting for
overrides).

Fixes bevyengine#2501
@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Oct 7, 2021
@mockersf mockersf added A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior and removed S-Needs-Triage This issue needs to be labelled labels Oct 7, 2021
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
@mockersf mockersf added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Oct 14, 2021
@mockersf
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Oct 15, 2021
# Objective

- Fixes #2501 
- Builds up on #2639 taking #2639 (comment) into account

## Solution

- keep the physical cursor position in `Window`, and expose it.
- still convert to logical position in event, and when getting `cursor_position`


Co-authored-by: Ahmed Charles <acharles@outlook.com>
@bors bors bot changed the title Fix scale factor for cursor position [Merged by Bors] - Fix scale factor for cursor position Oct 16, 2021
@bors bors bot closed this Oct 16, 2021
sharkdp pushed a commit to sharkdp/bevy that referenced this pull request Nov 8, 2021
# Objective

- Fixes bevyengine#2501 
- Builds up on bevyengine#2639 taking bevyengine#2639 (comment) into account

## Solution

- keep the physical cursor position in `Window`, and expose it.
- still convert to logical position in event, and when getting `cursor_position`


Co-authored-by: Ahmed Charles <acharles@outlook.com>
sharkdp pushed a commit to sharkdp/bevy that referenced this pull request Dec 12, 2021
# Objective

- Fixes bevyengine#2501 
- Builds up on bevyengine#2639 taking bevyengine#2639 (comment) into account

## Solution

- keep the physical cursor position in `Window`, and expose it.
- still convert to logical position in event, and when getting `cursor_position`


Co-authored-by: Ahmed Charles <acharles@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Windowing Platform-agnostic interface layer to run your app in C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window scale_factor_override() doesn't affect cursor position

5 participants