https://bugs.winehq.org/show_bug.cgi?id=18424
--- Comment #86 from Ken Thomases ken@codeweavers.com --- Created attachment 51058 --> https://bugs.winehq.org/attachment.cgi?id=51058 Fix for off-by-one error in Mac joystick code
(In reply to Josh Pettus from comment #84)
Thank-you so much for looking into this.
You're welcome. Thank you for testing.
I compiled the master branch on 10.10 an compiled it with clang. I then tried wine with GoG's X-Wing Alliance. The good news is that it looks like the joystick is detected. The bad news is everything crashes. I attached the WineLog I got.
OK, I think I see the problem. I had an off-by-one error in my code. I'm attaching a patch that should fix it. Please retest. Also, if it's still broken, please collect logs with the +joystick debug logging channel. Thanks!