Howto:Add new fgcommands to FlightGear: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 243: Line 243:
#include <simgear/structure/commands.hxx>
#include <simgear/structure/commands.hxx>
...
...
SGCommandMgr::instance()->addCommand("command-name", commandCallback);
SGCommandMgr::instance()->addCommand("command-name", &MySGSubsystem::commandCallback);
</syntaxhighlight>
</syntaxhighlight>


Navigation menu