This repository has been archived by the owner. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Fixes for Wayland (HiDPI and mouse lock) support, FreeBSD #723
Fixes for Wayland (HiDPI and mouse lock) support, FreeBSD #723
Changes from all commits
5654347b95accb02059607d31b707d03a6fFile filter
Conversations
Jump to
There are no files selected for viewing
erorcunOct 18, 2020
Collaborator
This CB only used for Frontend(menus) as stated above the function. Mouse capturing while playing is done in CPad::UpdateMouse with glfwGetCursorPos, did you miss it or does glfwGetCursorPos work correct for HiDPI?
unrelentingtechOct 18, 2020
Author
Contributor
While playing, we don't have a cursor, it's all relative movement of the camera — so the only thing that could be incorrect is the camera movement speed (~mouse sensitivity). I guess it might be a bit high, but it was playable.
erorcunOct 18, 2020
Collaborator
- why set input mode on every frame?
- I agree with you on using GLFW_CURSOR_DISABLED, but you should wrap our mouse centering with
there is a few problems in here:
#ifndef RW_GL3in that case. it's inmain.cpp, should show up when you search for// This is from SA, but it's nice for windowed mode.fullScreenisn't updated after screen mode change, you'll have to update it if you want to use that variable.unrelentingtechOct 18, 2020
Author
Contributor
I could not find the places where this condition would change :(
erorcunOct 18, 2020
Collaborator
at the end of
CMenuManager::SwitchMenuOnAndOff()you will seeif (m_bMenuActive != menuWasActive), you can add your code under it. you can use!m_nPrefsWindowedfor checking if it's fullscreen. also don't forget to wrap it with#ifdef RW_GL3if it's certain that you want to add it there.