Hi everyone, I want to use SdkTrays in my Android Ogre app, but after a few days of trying and research, I still can't quite figure out how. The problem I'm having is it appears SdkTrays requires the use of OIS, but when I call "OIS::InputManager::createInputSystem", it throws an exception stating "No platform library.. check build platform defines!". Can anyone help me get past this?
Many thanks in advance,
Brian
Android and SdkTrays
-
- Halfling
- Posts: 40
- Joined: Wed Jun 12, 2013 5:38 pm
- Location: Finland
- x 2
Re: Android and SdkTrays
Hei!
If you look through the sample browser code in android build you'll see it doesn't use use the input manager to create the keyboard/multitouch. If I remember correctly android key/touch events are injected into sample browser using custom OIS derived input classes and an input injector class, see SampleBrowser_android.h file. I think you could just re-inject them into SdkTrays from your application code, as OIS events.
If you look through the sample browser code in android build you'll see it doesn't use use the input manager to create the keyboard/multitouch. If I remember correctly android key/touch events are injected into sample browser using custom OIS derived input classes and an input injector class, see SampleBrowser_android.h file. I think you could just re-inject them into SdkTrays from your application code, as OIS events.
-
- Gnoblar
- Posts: 6
- Joined: Sun Apr 06, 2014 8:26 am
Re: Android and SdkTrays
Super thank you for the response. I saw the custom OIS but I wasn't sure if I was interpreting the code right. I'll give it a shot.
Ogre Rocks!
Ogre Rocks!