1
0
Fork 0

Fix bug where last axis of the joystick was written out with the original bindings of all buttons.

This commit is contained in:
Stuart Buchanan 2012-09-29 21:24:12 +01:00
parent e510c8917f
commit 3656ff92c6

View file

@ -611,7 +611,7 @@ var readConfig = func(dialog_root="/sim/gui/dialogs/joystick-config") {
if (a != nil) {
# Read properties from bindings
props.copy(a, p.getNode("original_binding", 1));
props.copy(a, btn.getNode("original_binding", 1));
var binding = nil;
foreach (var b; joystick.buttonBindings) {
if ((binding == nil) and (a != nil) and b.match(a)) {