From: Stuart Buchanan
Sent: Saturday, December 08, 2012 7:38 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] Joystick Dialog - Windows
On Sat, Dec 8, 2012 at 11:29 AM, Alan Teeder wrote:
I see this when I open the Joystick dialogue.:-
Nasal runtime error: non-objects have no members
at C:/FlightGear/fgdata/Nasal/joystick.nas, line 532
called from: __dlg:joystick-config, line 9
<snip>
In the property tree I have the ‘Lifeteck Skymaster joystick’ in
/input/joysticks/js
There is no property “id” in the joystick property tree, but all the axes and
buttons properties are shown and active.
fgdata/joysticks.xml is as follows:-
<?xml version="1.0" ?>
<PropertyList><!--
<js-named include="Input/Joysticks/Local/X45-modified.xml"/>
<js n="0" include="Input/Joysticks/Local/joystick_0.xml"/>
-->
<js n="0" include="Input/Joysticks/Lifetech/Lifetech Skymaster joystick.xml"
/>
</PropertyList>
Is this a windows problem, or something else?
Hi Alan,
It's a combination of a bug in the Joystick Configuration dialog and a
functional limitation.
You're using a hardcoded a joystick configuration file rather than having FG
pick one up based on the name that your OS assigns to the joystick. The bug is
that the Joystick Configuration dialog doesn't handle this gracefully.
However, even with the bug fixed, you won't be able to use the Joystick
Configuration dialog as it relies on FG dynamically picking joystick
configuration, so can't work with hardcoded joystick configuration files.
So the "fix" will be to disable the Joystick Configuration dialog in this
instance. I'll make that fix when I get the chance.
If you want to use the Joystick Configuration dialog you'll need to disable
that config file by commenting it out. Then FG will try to pick a
configuration file based on the joystick name, and you'll be able to change the
bindings through the dialog.
If you do go down this route, please do send me any feedback. I'm not sure
very many people have used the dialog yet.
--Stuart
--------------------------------------------------------------------------------------------------------------------------------------
Stuart
That is it.
When I remove the last line
<js n="0" include="Input/Joysticks/Lifetech/Lifetech Skymaster joystick.xml" />
from my fgdata/joysticks.xml file, the dialogue box pops up and allows me to
set all axes and buttons.
Thanks
Alan
--------------------------------------------------------------------------------
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
--------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel