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

[BUG]: Game cursor stuck on the edges of the screen on games with mouse support #7887

Closed
bruwyvn opened this issue Jan 14, 2023 · 6 comments
Closed

Comments

@bruwyvn
Copy link

bruwyvn commented Jan 14, 2023

Describe the Bug

I've mapped my mouse and keyboard on the Controller Settings to both of the USB ports for playing FFVII - Dirge of Cerberus. At first I only could map one axis to the pointer, but managed to do both editing the INI file. But when playing the cursor keeps moving on the screens' edges. The same error is reproducible on AOE II too.

Reproduction Steps

  • Enable Mouse Mapping in Global Settings;
  • Change the USB Ports' device types to HID Mouse and HID Keyboard (the port order doesn't matter);
  • Map the mouse buttons accordingly (L/R/Middle-Click);
  • Verify the pointers axes names by my mapping and unmapping the mouse movement (should be Pointer-0 and Pointer-1);
  • Edit PCSX2.ini so both axes are mapped:
# PCSX2.ini
[USB1] # or [USB2] based on the order
Type = hidmouse
hidmouse_LeftButton = Pointer-0/LeftButton
hidmouse_RightButton = Pointer-0/RightButton
hidmouse_MiddleButton = Pointer-0/MiddleButton
hidmouse_Pointer = Pointer-0 
hidmouse_Pointer = Pointer-1

Expected Behavior

No response

PCSX2 Revision

v1.7.3892 (flatpak) v1.7.3902 (appImage)

Operating System

Linux (64bit) - Specify distro below

If Linux - Specify Distro

Fedora 37 Workstation (64-bit)

@bruwyvn bruwyvn added the Bug label Jan 14, 2023
@refractionpcsx2
Copy link
Member

why are you enabling mouse mapping AND USB mouse? That shouldn't be possible, since you can't control the right analog with a mouse and a USB mouse at the same time.

@bruwyvn
Copy link
Author

bruwyvn commented Jan 14, 2023

@refractionpcsx2 that was the only way to get the cursor to at least move.

@refractionpcsx2
Copy link
Member

Apparently I've been told they are linked and you need that option for USB mouse, so my bad.

@bruwyvn
Copy link
Author

bruwyvn commented Jan 24, 2023

Did some testing and the bug only occurs on Wayland, on X.Org is working fine. Editing the configuration file is not necessary but you have map the pointer with the primary mouse button instead of sliding the mouse

@xDShot
Copy link

xDShot commented Mar 6, 2023

add QT_QPA_PLATFORM=xcb env var to make it work in Wayland

@stenzek
Copy link
Contributor

stenzek commented Oct 25, 2023

No longer an issue since #10179, since Wayland is disabled by default.

@stenzek stenzek closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants