kukugt / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

Joystick (Dualshock 3) buttons remap themselves when game selected #142

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running 64bit Gentoo on the 2.6.27-rc5 kernel, and using the 1.4 and
svn version. Because the Playstation controller has 4 buttons as opposed to
2+4 buttons on the right I map them to the extra joystick and the yellow
left and down to the triangle and circle. So depending on whether they are
used as buttons or directions I've got it covered...well except for
6-button fighting games. The strange thing is that my joystick regularly
for up and left changes polarity from + to -. I don't know whether its just
coincidence but Army Men - Air Combat (U)[!] seems particularly bad. I use
Robotron as a test, but its really weird. I use Rice mainly+jttl's SDL
Audio+Blight's SDL input plugin, when its stopped working it takes forever
to return to normal.I've attached my config file Its U Axis - and Z Axis -
that seem hardest to keep set

I use 

Describe your system:
- Linux distribution:
- Machine type: (32-bit or 64-bit)
- Mupen64Plus version:
- Plugins used:

For visual artifacts, give:
- game name and CRC/MD5 hash (printed on console)
- description of the artifact (missing polygons, flashing, wrong colors, etc)

Describe the problem:

Please provide any additional information below.

Original issue reported on code.google.com by lloydcon...@gmail.com on 7 Sep 2008 at 10:06

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry it actually changes polarity from + to -, and I can do it from every game 
the
second I press the buttons that are also mapped to the joystick

Original comment by lloydcon...@gmail.com on 7 Sep 2008 at 10:36

GoogleCodeExporter commented 8 years ago
Your config looks very strange, might I suggest deleting it and remaking it? 
Blight 
is known to cause config file corruption, see Issue 44. 

Original comment by sknau...@wesleyan.edu on 12 Oct 2008 at 9:33

GoogleCodeExporter commented 8 years ago
Proposed patch

Original comment by ling.weak@googlemail.com on 16 Oct 2008 at 8:19

Attachments:

GoogleCodeExporter commented 8 years ago
Could someone please try to confirm the bug and verify mx fix?

Instructions how to reproduce the bug:
(should work with any controller without even starting a game)
- remove blight_input.conf
- start mupen64plus
- go to input settings
- assign N64 button A to the negative x-axis (X Axis -) of your controller
- click ok
- go to input settings again
- click ok
- close mupen64plus
- start mupen64plus
- go to input settings
- N64 button A should now be mapped to positive x-axis (X Axis +) of your 
controller
--> bug

Now apply the patch posted above and rebuild.
Then repeat the instructions and check whether A is X+ or X-

Original comment by ling.weak@googlemail.com on 23 Nov 2008 at 9:03

GoogleCodeExporter commented 8 years ago
This was a very subtle bug.  Your patch did not fix the real problem, but it 
did fix
the symptom on little-endian (intel machines).  With your patch, the problem 
would
still remain on big-endian (ppc, mips, etc) computers.  I committed a fix in 
rev 1183
that solved the real problem.  This bug would have been much easier to see if 
the
original code had used the Hungarian notation.

Original comment by richard...@gmail.com on 29 Nov 2008 at 10:00