Package: zsnes
Version: 1.420-2.1
Severity: normal

  zsnes seems to work fine on my system, except that after I change video
mode, the dialog asking me to press any key stays there no matter how many
keys I press.  I traced into the code, and it looks like the problem is the
loop in gui.asm line 2842.  The program thinks for some reason that I have
a joystick plugged in, and furthermore thinks that the joystick has a button
pressed.  Because of this, it just spins forever waiting for me to release
the button (I suppose so it can spin waiting for me to press it again).

  I'm not sure why it thinks I have a button pressed.  As far as I can
tell, it thinks my USB keyboard is some weird joystick:

Device 0 Microsft Microsoft Wireless Optical Desktop� 2.20
  37 axis, 12 buttons, 0 hats, 0 balls

  I can't imagine how a keyboard could have 37 axes, so my guess is that
it's reading data from the keyboard and trying to interpret it as joystick
data, resulting in bizarre effects.  Garbage in, garbage out.  Disabling
the joystick device (module joydev) makes this work for now, but obviously
won't if I connect a real joystick.

  It seems like the best thing for zsnes to do would be to just wait for
a BUTTON_DOWN, MOUSE_DOWN, or KEY_DOWN event, rather than manually checking
button states.  Failing that, I wonder if it would be reasonable to code the
program to ignore joysticks with more than (eg) 10 axes, on the grounds that
any such device is probably spurious.

  Daniel

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages zsnes depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libgcc1                      1:4.1.1-20  GCC support library
ii  libgl1-mesa-glx [libgl1]     6.5.1-0.4   A free implementation of the OpenG
ii  libpng12-0                   1.2.8rel-7  PNG library - runtime
ii  libsdl1.2debian              1.2.11-7    Simple DirectMedia Layer
ii  libstdc++6                   4.1.1-20    The GNU Standard C++ Library v3
ii  zlib1g                       1:1.2.3-13  compression library - runtime

zsnes recommends no packages.

-- no debconf information


Reply via email to