Bug#884595: powermanga: Controls didn't work

Markus Koschany apo at debian.org
Sun Dec 17 18:17:38 UTC 2017


Am 17.12.2017 um 18:49 schrieb Antoni Villalonga:
> Hi,
> 
> After some tests I've found that SDL detects a joystick (I don't have
> any "special" device attached).
> 
> This patch is a workarround for my problem:
> 
> diff a/display_sdl.c b/display_sdl.c
> index c4fe282..e8b74db 100644
> --- a/display_sdl.c
> +++ b/display_sdl.c
> @@ -1945,7 +1945,7 @@ display_open_joysticks (void)
>  {
>    Uint32 i;
>    display_close_joysticks ();
> -  numof_joysticks = SDL_NumJoysticks();
> +  numof_joysticks = 0;
>    LOG_INF ("number of joysticks available: %i", numof_joysticks);
>    if (numof_joysticks < 1)
>      {
> 
> 
> I've also found this question at stackoverflow. It seems to be very close to
> this problem.
> https://stackoverflow.com/questions/21224023/why-does-sdl-numjoysticks-never-update
> 
> I have the same problem using this 50 lines long code (inexistent joystick
> detected). Maybe you can move the bug to SDL libs.

I believe a similar issue was reported a while ago and I also had some
troubles with alienblaster a while back because my keyboard was detected
as a joystick. Eventually we reassigned the bug report to udev.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711350

If you tell me what type of keyboard you use I could reassign this issue
to udev as well. I don't believe that SDL or powermanga are at fault here.

P.S.: Please fix your e-mail server because it rejects my emails.

Regards,

Markus




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20171217/d96ddfa4/attachment.sig>


More information about the Pkg-games-devel mailing list