void InputManager::init(const std::string& filename) { std::auto_ptr<lisp::Lisp> root (lisp::Parser::parse(filename)); lisp::Properties rootp(root.get()); std::cout << "InputManager: " << filename << std::endl; const lisp::Lisp* controller = 0; if(rootp.get("windstille-controller", controller) == false) { std::ostringstream msg; msg << "'" << filename << "' is not a windstille-controller file"; throw std::runtime_error(msg.str()); } impl = new InputManagerSDL(controller); }
void V3Global::checkTree() { rootp()->checkTree(); }