* 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
* 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
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
* 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.