rendered paste body XGE::Overlord* o = XGE::Overlord::getSingletonPtr();
//Create function pointers
o->addValidCommand("move", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::moveControl, this, _1, _2)));
o->addValidCommand("vertmove", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::verticalControl, this, _1, _2)));
o->addValidCommand("strafe", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::strafeControl, this, _1, _2)));
o->addValidCommand("yaw", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::yawControl, this, _1, _2)));
o->addValidCommand("pitch", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::pitchControl, this, _1, _2)));
o->addValidCommand("toggle debug", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::toggleDebugView, this, _1, _2)));
o->addValidCommand("track joystick x axis", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::trackJoyAxisX, this, _1, _2)));
o->addValidCommand("track joystick y axis", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::trackJoyAxisY, this, _1, _2)));
o->addValidCommand("toggle rotation parent", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::rotationToggle, this, _1, _2)));
o->addValidCommand("spawn box", new XGE::CmdSubscriptor(boost::bind<void, States::PhysicsTest>(&States::PhysicsTest::spawnBox, this, _1, _2)));
XGE::InputCommand* cmd = 0;
cmd = inputMan->create("spawnbox", "inputcommand");
cmd->subscribe(o->getValidCommand("spawn box"));
cmd->setTriggerOnPress();
cmd = inputMan->create("move", "inputcommand");
cmd->subscribe(o->getValidCommand("move"));
cmd = inputMan->create("vertmove", "inputcommand");
cmd->subscribe(o->getValidCommand("vertmove"));
cmd = inputMan->create("strafe", "inputcommand");
cmd->subscribe(o->getValidCommand("strafe"));
cmd = inputMan->create("yaw", "inputcommand");
cmd->subscribe(o->getValidCommand("yaw"));
cmd = inputMan->create("pitch", "inputcommand");
cmd->subscribe(o->getValidCommand("pitch"));
cmd = inputMan->create("toggledebug", "inputcommand");
cmd->subscribe(o->getValidCommand("toggle debug"));
cmd->setTrigger(0.0f, 0.0f, 0.0f, true);
cmd = inputMan->create("trackjoyx", "inputcommand");
cmd->subscribe(o->getValidCommand("track joystick x axis"));
cmd = inputMan->create("trackjoyy", "inputcommand");
cmd->subscribe(o->getValidCommand("track joystick y axis"));
cmd = inputMan->create("togglerotparent", "inputcommand");
cmd->subscribe(o->getValidCommand("toggle rotation parent"));
cmd->setTriggerOnPress();
inputMan->loadConfig("input.cfg");