Wrongly recognized generic gamepad buttons

Hi!
This is a bugreport for version 017b.
I have the gamepad "Firestorm Dual Analog 3" from ThrustMaster, Inc. It is an USB gamepad, it has 12 buttons, one D-Pad and two analog sticks.
The buttons aren't labeled, but with the tool jstest (found in the rather old inpututils package) I were able to get the button numbers. They range from 0 to 11. Also, Bitfighter shows button numbers. The problem is, Bitfighter shows incorrect button numbers some buttons when I try to configure them. Of course, I used "generic joystick" for the button configuration.
jstest → Bitfighter
0 → 0
1 → 1
2 → 2
3 → 3
4 → 4
5 → 5
6 → does not change display
7 → 10
8 → 6
9 → blank
10 → blank
11 → 7
I also have a Microsoft SideWinder GamePad Pro. It has 9 buttons (but strangely jstest reports a 10th button. Whatever). Here is the button list:
jstest → Bitfighter
0 → 0
1 → 1
2 → 2
3 → 3
4 → 4
5 → 5
6 → does not change display
7 → 10
8 → 6
So, from 0 to 5, everything is correct, but from 6 to 11 everything is wrong. If I press button 6, the button/key shown is always the button/key which was there previously. Even if there was a [L] (or any other key or button) and you press button 6, in the GUI it still remembers the [L]. If you press button 9 or 10, the GUI shows just an empty circle.
The behaviour for buttons 0-8 is exactly the same for both gamepads.
Also note that this bug only affects the display of the buttons. The actual button mapping itself is correct. If I press any button, Bitfighter remembers it correctly. But Bitfighter fails to show the correct button number.
This is a bugreport for version 017b.
I have the gamepad "Firestorm Dual Analog 3" from ThrustMaster, Inc. It is an USB gamepad, it has 12 buttons, one D-Pad and two analog sticks.
The buttons aren't labeled, but with the tool jstest (found in the rather old inpututils package) I were able to get the button numbers. They range from 0 to 11. Also, Bitfighter shows button numbers. The problem is, Bitfighter shows incorrect button numbers some buttons when I try to configure them. Of course, I used "generic joystick" for the button configuration.
jstest → Bitfighter
0 → 0
1 → 1
2 → 2
3 → 3
4 → 4
5 → 5
6 → does not change display
7 → 10
8 → 6
9 → blank
10 → blank
11 → 7
I also have a Microsoft SideWinder GamePad Pro. It has 9 buttons (but strangely jstest reports a 10th button. Whatever). Here is the button list:
jstest → Bitfighter
0 → 0
1 → 1
2 → 2
3 → 3
4 → 4
5 → 5
6 → does not change display
7 → 10
8 → 6
So, from 0 to 5, everything is correct, but from 6 to 11 everything is wrong. If I press button 6, the button/key shown is always the button/key which was there previously. Even if there was a [L] (or any other key or button) and you press button 6, in the GUI it still remembers the [L]. If you press button 9 or 10, the GUI shows just an empty circle.
The behaviour for buttons 0-8 is exactly the same for both gamepads.
Also note that this bug only affects the display of the buttons. The actual button mapping itself is correct. If I press any button, Bitfighter remembers it correctly. But Bitfighter fails to show the correct button number.