punesemu / puNES

Qt-based Nintendo Entertaiment System emulator and NSF/NSF2/NSFe Music Player (Linux, FreeBSD, OpenBSD and Windows)
GNU General Public License v2.0
597 stars 40 forks source link

Using Meta button of keyboard for gamepad button works erroneously #359

Closed TCH68k closed 6 months ago

TCH68k commented 6 months ago

If you try to use the Meta key for any gamepad button, then the following happens. At detecting, it prints some garbage characters: http://oscomp.hu/depot/puNES_input_button_turbo_b_detected.png Though it works and you can use it without problems. When you quit, in ~/.config/puNES/input.cfg the variable P1K TurboB contains ៀ? (0xe19f803f in hexa).

After restart, the Meta button no longer works. If you now open the config panel again, then it shows an empty field there: http://oscomp.hu/depot/puNES_input_button_turbo_b_first_restart.png After quit, in input.cfg, P1K TurboB contains nothing.

After the second restart, it shows that the button is configured for the Q button: http://oscomp.hu/depot/puNES_input_button_turbo_b_second_restart.png And at quit, P1K TurboB is indeed set to Q in input.cfg.

If you try to edit input.cfg and set P1K TurboB to Meta, then it keeps the value correctly, but the button is not working in the emulator.

punesemu commented 6 months ago

I can't reproduce the problem on any Linux system I have available. What version of Qt does your distribution use? I remember that this problem was due to a QT bug which was later fixed although I don't remember in which version.

TCH68k commented 6 months ago

It is 5.15.2.

punesemu commented 6 months ago

Please, can you try with the last commit (56f4ddd)?

TCH68k commented 6 months ago

Yes, it works perfectly. Now it detects Meta as Meta and stores it as that and can reload it. (Although it makes no distinction between the left and right Meta, but i can live with that.) Thanks.

When will v0.111 be released?

punesemu commented 6 months ago

I need to complete some other tasks first. I can't tell you when I'll release a new version, I don't know yet.