Project

General

Profile

Actions

Emulator Issues #12913

closed

Mouse clicks not recognized on Linux + Qt6

Added by flacs about 2 years ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Linux
Issue type:
Bug
Milestone:
Current
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
5.0-16393
Fixed in:
5.0-18295

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


Related issues 1 (0 open1 closed)

Has duplicate Emulator - Emulator Issues #13066: mouse/trackpad buttons don't work for emulated Wii RemoteDuplicate

Actions
Actions #1

Updated by SuperSamus about 2 years ago

Can reproduce on 5.0-16793 (NixOS).

Actions #2

Updated by JosJuice about 2 years ago

  • Milestone set to Current
Actions #3

Updated by SuperSamus almost 2 years ago

Still an issue on 5.0-17269.

Actions #4

Updated by Cobalt almost 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

Actions #5

Updated by JosJuice almost 2 years ago

Actions #6

Updated by flacs over 1 year 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.

Actions #7

Updated by Minty_Meeo over 1 year 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

Actions #8

Updated by Cobalt over 1 year 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.

Actions #9

Updated by FuZzle over 1 year 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?

Actions #10

Updated by Cobalt over 1 year 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

Actions #11

Updated by Anonymous over 1 year ago

Can someone report the bug on Qt's bug tracker and link to it here? https://bugreports.qt.io/secure/Dashboard.jspa

Actions #12

Updated by JosJuice over 1 year ago

  • Status changed from New to Fixed
  • Fixed in set to 5.0-18295
Actions #13

Updated by Anonymous over 1 year ago

please...report to Qt so it actually gets fixed (or dolphin can correct what it's doing wrong)

Actions

Also available in: Atom PDF