I just resumed my first attempt at modding from a while ago. I don't even think I can call it a mod since it's just a dozen extra lines of code.
Anyway, it:
- allows 12 joystick buttons instead of the previous hard coded limit of 10
- fixes a bug in the way speed and rotation from mouse input is calculated, so that the edges of the mouse box are the actual limits of your tank's movement. Without this adjustment, you don't reach full speed until you go *slightly* beyond the line.
- makes it so that when backing up with the mouse, you reach full reverse at the bottom line, instead of half way to the bottom like before. This may be hard for players to adjust to - I wouldn't know since I don't play with the mouse. It's rather easy to remove this part though.
- separates the movement code for the joystick and the mouse. When I looked at how BZ currently handles joystick input, I was pretty surprised. For some reason, joy input is roughly converted to mouse coordinates before being analyzed, which results in wasting about half of the analog stick's input range. Dividing it has given me a much greater degree of control. Also, the slow keyboard and binocular buttons (which you can map to joystick buttons of course) now affect joystick movement by reducing your speed and/or angular speed.