pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

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

Open bruwyvn opened this issue 2 years ago • 5 comments

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 avatar Jan 14 '23 20:01 bruwyvn

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.

refractionpcsx2 avatar Jan 14 '23 20:01 refractionpcsx2

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

bruwyvn avatar Jan 14 '23 20:01 bruwyvn

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

refractionpcsx2 avatar Jan 14 '23 20:01 refractionpcsx2

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

bruwyvn avatar Jan 24 '23 22:01 bruwyvn

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

xDShot avatar Mar 06 '23 20:03 xDShot

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

stenzek avatar Oct 25 '23 07:10 stenzek