OIS exception on createInputObject(OIS::OISKeyboard, true)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Just popping in
Just popping in
Posts: 6
Joined: Thu Jan 13, 2011 03:57
Location: Wuhan/China

OIS exception on createInputObject(OIS::OISKeyboard, true)

Postby ___MoonDance » Wed Jan 19, 2011 13:39

hello,everyone,I got an error on createInputObject(OIS::OISKeyboard, true).
OGRE 1.60,CEGUI 0.75
m_pKeyboard = static_cast<OIS::Keyboard*>(m_pInputeMgr->createInputObject(OIS::OISKeyboard, true));
I don't know why. :? Thanks for your help!
PS:I don't have the OIS src.

Code: Select all

void GuiContrl::_initOIS(unsigned long hFrameWnd)
   OIS::ParamList paramList;
   paramList.insert(std::make_pair(std::string("WINDOW"), Ogre::StringConverter::toString(hFrameWnd)));
   paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_FOREGROUND" )));
   paramList.insert(std::make_pair(std::string("w32_mouse"), std::string("DISCL_NONEXCLUSIVE")));
   paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_FOREGROUND")));
   paramList.insert(std::make_pair(std::string("w32_keyboard"), std::string("DISCL_NONEXCLUSIVE")));
   m_pInputeMgr = OIS::InputManager::createInputSystem(paramList);
   m_pKeyboard = static_cast<OIS::Keyboard*>(m_pInputeMgr->createInputObject(OIS::OISKeyboard, true));
   m_pMouse = static_cast<OIS::Mouse*>(m_pInputeMgr->createInputObject(OIS::OISMouse, true));



   Ogre::WindowEventUtilities::addWindowEventListener(m_pOgreRender->m_pRenderWindow, this);

User avatar
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic

Re: OIS exception on createInputObject(OIS::OISKeyboard, true)

Postby Kulik » Wed Jan 19, 2011 13:49

Please ask in the OIS forum. And catch and examine the exception before you post there!

Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests