Hello, I have to include some of input system into sfml because It's not enough to catch them from main cycle but I need in callbacks for events. So I decided to use OIS in my app. Here is the code:
OIS::ParamList params;
std::string window = boost::lexical_cast<std::string>(mWindow->GetSystemHandle());
// Logging of window variable shows 6-digits number
params.insert(std::make_pair(std::string("WINDOW"), window));
mInputSystem = OIS::InputManager::createInputSystem(params);
mWindow is pointer to the sf::RenderWindow. When running app I get:
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 7
Current serial number in output stream: 9
What's wrong?