controller problem snes9x1.53

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
gahyoujerk
Snes9x White Belt
Posts: 2
Joined: Mon Jun 13, 2011 1:49 am

controller problem snes9x1.53

Post by gahyoujerk »

I found a controller bug today for snes9x1.53

This bug I noticed was caused when I was using my controller. I mapped all the inputs to my controller and the buttons were all working, but I noticed that every so often the character I was controlling would stop moving forward even though I was pressing forward, at these times my buttons all still worked and I could move backwards, but I'd stop going backwards eventually due to the same problem I had as going forwards. It was really quite an annoying thing to deal with.

Since I'm learning to become a programmer I've learned that an important step to solve any bug is to be able to replicate the bug. So I spent some time testing different things and I found out why the bug is caused. The bug is caused if two directional buttons are pressed at the same time when using the d-pad of a controller, for instance, right + up, or right + down, etc. The strange thing is this bug is not replicated when using a keyboard and holding the keys for right + up, right + down, left + up, etc...nor is the bug replicated when using the analog controls on a controller.
--------------
I can recreate this bug every time.
I tested this bug in these games:
Mega Man X 2
Mega Man X
Super Mario World
Donkey Kong Country

Also tried to replicate the problem in Zsnes1.51 and bsnes0.74 in order to rule out a controller problem. I was unable to replicate the problem, so controller problem is ruled out.

I hope someone will be able to work on this
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Post by OV2 »

Snes9x sees the diagonals of your controller's d-pad as extra buttons, not as a combination of the normal directions (i.e. "up-left" is not "up and left"). You'll have to map those to the corresponding buttons in the input config.
adventure_of_link
Hero of Hyrule | Official Port Recruiter
Posts: 2586
Joined: Mon May 24, 2004 5:06 pm
Location: 255.255.255.255

Post by adventure_of_link »

OV2 wrote:Snes9x sees the diagonals of your controller's d-pad as extra buttons, not as a combination of the normal directions (i.e. "up-left" is not "up and left"). You'll have to map those to the corresponding buttons in the input config.
the only exception to this is if the D-pad is mapped to the X/Y Axis instead of the POV hats.
Image

Unofficial Test Monkey For:
* Snes9X GX (Wii)
* Snes9X EX (Android)
* Snes9X 64-bits (PC/Mac)

ZSNES|Ben Heck|NSRT|Bob Smiley
Post Reply