Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created September 7, 2010 20:55
Show Gist options
  • Save jasonroelofs/569079 to your computer and use it in GitHub Desktop.
Save jasonroelofs/569079 to your computer and use it in GitHub Desktop.
OIS::ParamList pl;
size_t windowHnd = 0;
std::ostringstream windowHndStr;
mWindow->getCustomAttribute("WINDOW", &windowHnd);
windowHndStr << windowHnd;
pl.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str()));
mInputManager = OIS::InputManager::createInputSystem( pl );
mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject( OIS::OISKeyboard, true ));
mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject( OIS::OISMouse, true ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment