user1881371
user1881371

Reputation: 139

firebreath events window plugin mouse keyboard mac os

How do I connect to the ois library firebreath plugin in Mac OS? I have pluginwindowmac, want to track mouse, keyboard, joystick.

made as to windows:

FB::MessageWindow* messageWindow = new FB::MessageWindow();
mParamList.insert(std::make_pair(std::string("WINDOW"), messageWindow->getHWND()));
mInputManager = OIS::InputManager::createInputSystem(mParamList);

messageWindow->getHWND() - no in mac os

Upvotes: 0

Views: 333

Answers (1)

taxilian
taxilian

Reputation: 14324

I don't have any idea what the OIS library is expecting, but I can tell you that HWND is a windows type, so there will certainly never be a getHWND that works on mac os.

If what you need is a NSWindow then I'm afraid you're out of luck. The only way to get events in Mac OS in an NPAPI plugin is through the browser, which FireBreath exposes through its event system.

Upvotes: 1

Related Questions