GentenStudios / Phoenix-OLD

Phoenix is an open world sandbox style voxel game designed to make all content optional.
BSD 3-Clause "New" or "Revised" License
30 stars 10 forks source link

Phoenix cursor lock pos is not at center of window. #319

Open tobyplowy opened 3 years ago

tobyplowy commented 3 years ago

Describe the bug

(Check bottom for demo video) When you re scale the Phoenix window it won't adjust the cursor position. Thus showing odd behavior and if scaled right can even lock the cursor outside of the window.

To Reproduce

Steps to reproduce the behavior:

  1. Re scale window
  2. press ESC
  3. observe cursor pos
  4. repeat

Expected behavior

The cursor should always snap to the center of the window no mater what aspect it has.

Additional context

https://youtu.be/djXSjxqNFGM?t=47 (Note the mouse position when I open the Esc menu)