#1055147 seahorse-adventures: No keypress recognised

#1055147#5
Date:
2023-11-01 08:25:19 UTC
From:
To:
Dear Maintainer,

    to replicate:

1. Launch `seahorse-adventures`
2. Now you are in the menu.
3. Press any direction key
3. The grey indicator in the menu does not move. It seems that keypresses
   are not recognised. The game is thus unplayable.

#1055147#10
Date:
2023-12-03 14:31:46 UTC
From:
To:
Control: severity -1 normal


I could not reproduce your problem. The keys work as expected and I can
navigate the menu and the game without any problems.

#1055147#17
Date:
2023-12-03 16:14:43 UTC
From:
To:
I spoke too soon. Tested the wrong Debian release. So it appears the underlying
problem is in python3-pygame which changed significantly between Bullseye and
Bookworm but I'm not sure how I can fix this in seahorse-adventures right now.

#1055147#24
Date:
2023-12-03 16:42:53 UTC
From:
To:
Il 03 dicembre 2023 alle 17:14 Markus Koschany ha scritto:
- in /usr/share/games/seahorse-adventures/lib/menu.py
- go to line 119
- substitute
    if e.type is USEREVENT and e.action == 'down':
  with
    if e.type == USEREVENT and e.action == 'down':
- keydown will work again

#1055147#29
Date:
2023-12-03 16:07:40 UTC
From:
To:
Dear Markus,

Il 03 dicembre 2023 alle 15:31 Markus Koschany ha scritto:

Before submitting the bug report I was also able to reproduce the bug
with another person in libera.chat/#debian (alas I forgot the handle
and the channel is not logged).
See also [1].

[1] https://bugs.launchpad.net/ubuntu/+source/seahorse-adventures/+bug/2038853

I don’t know what to do to help debug, but this fork [2] works on my machine
with `python3 run_game.py -full -scale2x`.

[2] https://github.com/dulsi/seahorse-adventures

#1055147#34
Date:
2023-12-03 17:40:13 UTC
From:
To:
Hi Francesco,

Am Sonntag, dem 03.12.2023 um 17:42 +0100 schrieb Francesco Ariis:

Thanks a lot for the report and your proposed patch. As soon as I'm back home
tomorrow, I'll give it a try. Thanks for mentioning the other seahorse-
adventures fork. Maybe there are even more improvements. I'll check that too.

Best,

Markus