RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Input bug on Retroarch Flatpak

Open AraneTezza opened this issue 1 year ago • 8 comments

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

(First of all, I'm spanish and I'm not that fluent in english. I may have some grammar errors, I'm sorry if I'm not explaining myself as clear as I should) Retroarch Flatpak missdetects input in very bothering ways.

Expected behavior

Normally and with Appimage and DEB versions, I plug the controller in, and it works perfectly, no bugs at all.

Actual behavior

Whenever I plug my controller, the program does very weird things, like start scrolling up in the menu even if I'm not pressing anything, or gets stucked into the first direction I pull the joystick (for example, if it starts and I press down in the menu, then no other direction works). I am pretty sure it's not the controller because I have tested it with other controllers, I am also sure it is not my computer because Appimage works well and DEB is ok too.

Steps to reproduce the bug

  1. Start Retroarch
  2. Plug the controller
  3. Press any joystick
  4. It starts to do one of both things I told before

Bisect Results

It started at the last update, I think it was 1.16. I am not 100% sure, but I think I read this update comes with an input error correction. Maybe this correction caused it, I have no idea.

Version/Commit

(It happened also with Fedora 39) Operating System: Debian GNU/Linux 12 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.0-17-amd64 (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-3470 CPU @ 3.20GHz Memory: 7.6 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 2500 Manufacturer: Hewlett-Packard Product Name: HP Compaq Elite 8300 SFF

  • RetroArch: [version/commit]

Retroarch 1.16.0.3

  • OS: Linux Debian 12
  • Compiler: Flathub

AraneTezza avatar Feb 03 '24 20:02 AraneTezza

Please try to provide some log using

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=retroarch org.libretro.RetroArch -v --log-file /tmp/ra.log

The log file ra.log will be in your /tmp directory.

If the issue is related to Flatpak, you might open the issue to the dedicated repository.

Thank you.

gouchi avatar Feb 03 '24 21:02 gouchi

I've tried to get a log file, but it doesn't work. ¿Is it absolutely necessary?

imagen

AraneTezza avatar Feb 04 '24 07:02 AraneTezza

Did you try to open the file in /tmp/ra.log with your text editor ?

Also are you using the same joypad driver for Flatpak and Appimage and Deb packages (Settings tab > Driver > Controller) ?

Thank you.

gouchi avatar Feb 04 '24 12:02 gouchi

There is no such file in the directory, how can I generate it? This morning I've tried with different drivers and still the same: no response or menu gets crazy. I couldn't check appimage due to other issues, but DEB, that also works perfectly, uses udev driver, but even udev fails in Flatpak.

AraneTezza avatar Feb 04 '24 14:02 AraneTezza

Do you also experience other strange behavior, like the UI changing colors? This + the controller issue is happening to me on flatpak.

Could you try this?: Go to /home/<user>/.var/app/org.libretro.RetroArch/config/retroarch/ and remove retroarch.cfg (keep it somewhere safe, it's your config). Now restart Retroarch. Does input work correctly?

For me that makes it work. What I noticed is that my problem was the Core Overrides messing up retroarch.cfg. So, workaround for me is not using overrides.

another-sapiens avatar Feb 09 '24 16:02 another-sapiens

Specifically, the Overrides change input_axis_threshold inside retroarch.cfg from "0.500000" to "0.000000". Changing this back fixes my controller.

another-sapiens avatar Feb 09 '24 16:02 another-sapiens

I believe we're talking about different things, since your problem only affects the input. I'll open a separate issue.

another-sapiens avatar Feb 13 '24 20:02 another-sapiens

SDL2 touch input is also broken for me on flatpak Retroarch (tested on Steamdeck). The mouse pointer jumps to erratic position on touch input. It works fine using the Steam store version of Retroarch, but not via flatpak.

rsn8887 avatar Feb 24 '24 22:02 rsn8887