Skip to content
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

3D game mode doesn't allow application to force the cursor to a specific position on screen (at least in Roblox) #722

Open
Lopolin-LP opened this issue Sep 23, 2023 · 4 comments
Labels
area: compatibility bug Something isn't working

Comments

@Lopolin-LP
Copy link

Lopolin-LP commented Sep 23, 2023

Magpie version 程序版本

0.10.3

Windows version 系统版本

win10 22H2

Related screenshot (optional) 相关截图(可选)

As it is kind of difficult to showcase using screenshots, here a short video instead: https://youtu.be/qI_9ll4baAM

Some things to note:

  • to the right of what you're seeing is a second screen
  • I have changed the scale activation shortcut to not include shift, as roblox uses it for "shift-lock"

part 1: the main problem - 3d game mode on vs off

  • neither can i right-click-hold to turn around, nor use shift-lock for it either, without the cursor moving around as well.

part 2: 3d game mode off, yet sometimes the issue presists, if:

  • the cursor is not within the window of the application (eg. on the second screen)
  • the window changes from non-scaled to scaled. this doesn't occur on non-scaled to fullscreen or vice-versa.

Reproduction steps 复现步骤

  1. Launch anything that...
    • enforces a locked cursor position at times
    • doesn't hide the cursor (such as roblox, they change the cursor, but don't hide it (unlike valorant for example))
  2. Activate scaling and 3d game mode
  3. the program cannot under any circumstance enforce a cursor lock anymore while scaled.

my guess as to why that's happening is due to game mode stopping the cursor from escaping the window, because of that it also doesn't allow the application to have any control over the cursor.

Log files 日志文件

magpie.1.log
magpie.2.log
magpie.log
those are all logs in my logs folder.

@Lopolin-LP Lopolin-LP added the bug Something isn't working label Sep 23, 2023
@YingDoge
Copy link

i hvae no i idea man.
try thigsn other than anime 4k
try different capture mode
try turn on vsync
those alwasy worked for me

@Lopolin-LP
Copy link
Author

i hvae no i idea man.
try thigsn other than anime 4k
try different capture mode
try turn on vsync
those alwasy worked for me

none of those worked. issues presist.

@Lopolin-LP
Copy link
Author

Lopolin-LP commented Sep 25, 2023

addition to part 2: having the mouse in the bottom or right or both edge triggers it as well, you can imagine it like this:
image

Alternative names:

  • Application not scaled: Source Window
  • Application scaled: Output Window (Displayed to the User)
  • Main Display / Fullscreen: the window the output gets displayed on

NOTE: I DEEM THIS IMAGE A BIT INACCURATE, SEE MY EDIT BELOW

@Lopolin-LP
Copy link
Author

Lopolin-LP commented Oct 4, 2023

I got the chance to try out Lossless Scaling (abbreviated with "LS") and maybe found the problem or another part related to it?
I can duplicate the exact same issue that I have in Magpie with 3D Game Mode in LS if I enable "Clip Cursor". If I disable that the issues are gone in LS, but another one arises: I can access the applications BEHIND my windowed game (in my case: roblox). See the image I posted above? anything in that green area is accessible if I go outside the visible borders of roblox.

If you don't understand what I mean I'll explain in more detail:

  • The Green area in the image above shouldn't be accessible and are not visible
  • In Magpie you cannot access it and cannot see it
    • moving the cursor between two screens will show that the cursor never dissappears visually
  • In LS without Clip Cursor you cannot see the green area, but you can access it
    • if you move your cursor away from the upscaled window your cursor goes off-screen
    • if you have a second monitor and you move your cursor towards it, the cursor at some point appears on the second monitor
    • this means the cursor can land in a kind of "limbo"

Concluding from this my guess is that due to magpie making sure you cannot end in such "limbo" it causes the cursor to not stay in place if the cursor is in that area (as demonstrated in my video in part 2).

This will definitely not solve the 3D Game Mode issue as a whole with Roblox, but at least it can prevent a very annoying inconsistency when 3D Game Mode is off in Roblox.

If you have any questions feel free to ask me, because I know that I'm bad at explaining stuff properly the first time lol

EDIT: Forgot to say it, but the Image with the green area is a bit inaccurate for magpie and I myself don't know where exactly it occurs and where that area is and stuff, I just know that it probably depends on where you place the source window BEFORE you scale it. so if it's centered the green area is everywhere around it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: compatibility bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants