Emulator Issues #12913
closedMouse clicks not recognized on Linux + Qt6
0%
Description
Game Name?
all games
What's the problem? Describe what went wrong.
Since the switch to Qt6, mouse clicks on Linux are no longer recognized in games or when configuring controllers. Our XInput2 code receives XI_KeyPress events but not any XI_ButtonPress events. It's possible that this issue is related to this change: https://github.com/qt/qtbase/commit/4f99f87578a36d59448e4332a06cdb0c8556a37a (just a guess).
What steps will reproduce the problem?
- Install Linux and start Dolphin 5.0-16393 or newer.
- Try to configure a controller input to
Click 1
by left-clicking the mapping button so it shows "..." and then clicking any mouse button. - Notice that the button continues showing "..." until it times out.
Is the issue present in the latest development version?
Yes.
Is the issue present in the latest stable version?
No.
If the issue isn't present in the latest stable version, which is the first broken version?
5.0-16393
What are your PC specifications?
latest Arch Linux with Qt packages 6.3.0-3 but without the qt6-wayland package
Updated by Cobalt about 2 years ago
I'm not getting this issue, for some reason.
System specs are as follows:
///////////// cobalt@ideapad-flex-5
///////////////////// ---------------------
////////767//////////////// OS: Pop!_OS 22.04 LTS x86_64
//////7676767676/////////////// Host: 82HS IdeaPad Flex 5 14ITL05
/////76767//7676767////////////// Kernel: 5.19.0-76051900-generic
/////767676///*76767/////////////// Uptime: 29 mins
///////767676///76767.///7676//////// Packages: 4676 (dpkg), 41 (flatpak)
/////////767676//76767///767676//////// Shell: bash 5.1.16
//////////76767676767////76767///////// Resolution: 1920x1080
///////////76767676//////7676////////// DE: GNOME 42.3.1
////////////,7676,///////767/////////// WM: Mutter
//////////////7676///////76//////////// WM Theme: Flat-Remix-Blue-Dark
///////////////7676//////////////////// Theme: Flat-Remix-GTK-Blue-Dark [GTK2/3]
///////////////7676///767//////////// Icons: Flat-Remix-Blue-Dark [GTK2/3]
/////////////////////////////////// Terminal: gnome-terminal
//////.7676767676767676767,////// CPU: 11th Gen Intel i5-1135G7 (8) @ 4.200GHz
/////767676767676767676767///// GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
/////////////////////////// Memory: 3115MiB / 11518MiB
/////////////////////
/////////////
I manually compiled Dolphin, fwiw
Updated by JosJuice about 2 years ago
- Has duplicate Emulator Issues #13066: mouse/trackpad buttons don't work for emulated Wii Remote added
Updated by flacs about 2 years ago
With the qt6-wayland package installed I'm seeing "This plugin supports grabbing the mouse only for popup windows" messages in the console. There's also no mouse or virtual mouse+keyboard device in the device list, only my specific model of USB keyboard.
Updated by Minty_Meeo about 2 years ago
I also have this issue, although I have found that clicks are registered when clicking on the title bar.
https://www.youtube.com/watch?v=P2JdVq4j-78
Updated by Cobalt about 2 years ago
It's definitely an issue introduced in QT6.3, since my distro still has 6.2.4 and I've got no problems using the mouse to play.
Updated by FuZzle almost 2 years ago
Cobalt wrote in #note-8:
It's definitely an issue introduced in QT6.3, since my distro still has 6.2.4 and I've got no problems using the mouse to play.
To workaround it, setting the env variable QT_XCB_NO_XI2=1
seems to work for me. I'm not sure what else it affects though, but it might be fine to set this in the application normally?
Updated by Cobalt almost 2 years ago
setting the env variable QT_XCB_NO_XI2=1 seems to work for me
I can confirm this workaround was successful for an Arch Linux user on the Discord server - I had them run QT_XCB_NO_XI2=1 dolphin-emu
and it worked perfectly
Updated by Anonymous almost 2 years ago
Can someone report the bug on Qt's bug tracker and link to it here? https://bugreports.qt.io/secure/Dashboard.jspa
Updated by JosJuice almost 2 years ago
- Status changed from New to Fixed
- Fixed in set to 5.0-18295
A workaround was added in https://dolphin-emu.org/download/dev/7002831c55122b2afe8fac362d0b413e60f61f5b/.
Updated by Anonymous almost 2 years ago
please...report to Qt so it actually gets fixed (or dolphin can correct what it's doing wrong)