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. Regards, On Sun, Dec 17, 2017 at 12:35:10PM +0000, Antoni Villalonga wrote: > Hi, > > Same problem reproduced with powermanga=0.90-dfsg-2 (oldoldstable). > > Regards, > > On Sun, Dec 17, 2017 at 01:25:09PM +0100, Antoni Villalonga wrote: > > Package: powermanga > > Version: 0.93.1-2 > > Severity: important > > > > Dear Maintainer, > > > > The game didn't work at all. > > > > After loading the game the selected option is 'Quit'. 'Up arrow' key didn't > > work on main menu, so I only can change menu option by pressing 'down > > arrow'. > > > > Once 'Play' option is selected the game starts and the ship goes to up-left > > corner and I can't move it from there. > > > > Regards, > > > > > > -- System Information: > > Debian Release: buster/sid > > APT prefers unstable > > APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') > > Architecture: amd64 (x86_64) > > Foreign Architectures: i386 > > > > Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores) > > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), > > LANGUAGE=en_US.UTF-8 (charmap=UTF-8) > > Shell: /bin/sh linked to /bin/dash > > Init: systemd (via /run/systemd/system) > > > > Versions of packages powermanga depends on: > > ii libc6 2.25-4 > > ii libpng16-16 1.6.34-1 > > ii libsdl-mixer1.2 1.2.12-14 > > ii libsdl1.2debian 1.2.15+dfsg2-0.1 > > ii powermanga-data 0.93.1-2 > > > > powermanga recommends no packages. > > > > powermanga suggests no packages. > > > > -- no debconf information > > -- > Antoni Villalonga > http://friki.cat/ -- Antoni Villalonga http://friki.cat/