Earlier today I got a warning from Pip saying that ability to uninstall
programs that were installed using the Distutils module is going to be
depricated. So I decided to update everything over to Setuptools, which
is the new Python standard. While doing so, I ran the script through
flake8 and pylint a bit and took care of warnings not dealing with line
length or the lack of docstrings. I also took a bit of creative license
when I felt comfortable doing so to make the script more readable.
After assigning values with a joystick in the input plugin configuration window,
none of the joystick values were written to the config file because the code
assumed the value to be a key and wrote the parameter only if the key value was
successfully decoded. This sets the button parameters from the widget text if
the value could not be decoded as an sdl key and fixes the problem mentioned
in issue #2 regarding joysticks:
"I just installed and tried the latest release and I can confirm that it still
occurs, but only for USB controller inputs. That is: It will save my settings
if I assign keyboard keys to the N64 controller buttons, but not if I assign
USB controller buttons to N64 controller buttons. Those will revert to their
previous values as soon as I close the input configuration window."
The pkg-games team in debian prepared a package under
https://anonscm.debian.org/cgit/pkg-games/mupen64plus-ui-python.git/ - this
one can be also be used to build the m64py*.deb from the upstream
repository. The Debian specific patches were dropped and the code to create
a version number based on the version number in the code was readded.
I've got an UnicodeDecode error for the ascii codec while logging a message while running m64py on Ubuntu versions 14.04+. Adding two lines corrected the problem