Tiny fix in SDL event handler

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
bssteph

Tiny fix in SDL event handler

Post by bssteph »

This fix is for the Linux (SDL) code.

I was configuring zSNES for four joysticks through USB adapters (each adapter takes two DualShock 2 controllers and thus has 12 axes and 32 buttons) and pressing buttons for controllers 3 and 4 would cause zSNES to spin unresponsively. After some digging I found the culprit, and the linked patch makes configuration and playing work with all my controllers.

http://downloads.incorporeal.org/code/z ... -fix.patch

This mistake in the condition would cause events to go unprocessed and zSNES would become nonresponsive. Everything works as it should with this patch.

Thanks.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Thank you.

(tested 5th controller at all?)
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
bssteph

Post by bssteph »

Oh, yes. I found another adapter which takes one DualShock 2 (so another 16 buttons) and that also configures properly.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Okay, great. Thanks.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
pagefault
ZSNES Developer
ZSNES Developer
Posts: 812
Joined: Tue Aug 17, 2004 5:24 am
Location: In your garden

Post by pagefault »

Was this put in CVS?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Yes, of course.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply