[Flightgear-devel] Re: [RFC] nasal initialization group in joystick xml files

2005-06-10 Thread Melchior FRANZ
* Andy Ross -- Monday 06 June 2005 18:10: Alternatively, the whole subsystem API could get a post_init() method, which is called on all subsystems after the system initialization phase but before update() is called on any of them. Maybe this is an even cleaner solution... That's now

[Flightgear-devel] Re: [RFC] nasal initialization group in joystick xml files

2005-06-06 Thread Melchior FRANZ
* Andy Ross -- Monday 06 June 2005 16:41: Melchior FRANZ wrote: I'd like to suggest to add the possibility to add a nasal init block to joystick *.xml files: This sounds fine to me. Ok ... I think it might be cleaner, though, for the Nasal subsystem to provide for a callback or init

Re: [Flightgear-devel] Re: [RFC] nasal initialization group in joystick xml files

2005-06-06 Thread Andy Ross
Melchior FRANZ wrote: Andy Ross wrote: I think it might be cleaner, though, for the Nasal subsystem to provide for a callback or init script that can be set by a caller. I'm not sure I understand. To request a callback I have to have Nasal working already. Yeah, that wasn't clear. I mean

[Flightgear-devel] Re: [RFC] nasal initialization group in joystick xml files

2005-06-05 Thread Melchior FRANZ
* Melchior FRANZ -- Sunday 05 June 2005 15:44: +globals-add_subsystem(input, new FGInput); +SGSubsystem *input = globals-get_subsystem(input); Of course, you'd make that SGSubsystem *input = new FGInput; globals-add_subsystem(input, input); ... to save a few cycles. :-) m.