First post, by djrobx
I apologize if this has been covered elsewhere but I think I read through most of the joystick related threads. Most are suggesting the use of Joy2Key to assign buttons to emulated keys, which I want to avoid.
The DosBox UI already allows you to assign joystick buttons to keypresses! It just doesn't work. It's missing a few lines of code that would otherwise enable it. Someone else posted an extensive update that involves a lot of joystick emulation and axis assignment options. It sounds like it hasn't made it into the core because people are having problems with certain aspects of it breaking functionality that's already present with the current version.
I have simply added a couple lines of code to enable the keyboard mapping already present, and nothing more. It's very "light" and shouldn't affect anything unless you've mapped some keys.
I've attached the .DIFF to enable this functionality incase it's useful to someone.