20,741
edits
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> | ||