Hello.
I tryed to add banner to my ogre project.
I get UIView with this function
Ogre::Root::getSingleton().getAutoCreatedWindow()->getCustomAttribute("VIEW", &v);
than create ADBannerView and add it to this view
adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
[ogreView addSubview:adView];
I see this banner, it displays ADs, but it doesn't respond to touches... It "transparent" for them. I still receive all touches to OgreFramework::touchMoved callback in OgreFramework.cpp. when I touch banner.
The same thing happens with all UIView, that I tried to add...
Any ideas?
ADBannerView touch events
-
- Gnoblar
- Posts: 8
- Joined: Sat Apr 28, 2012 1:06 pm
- x 4
Re: ADBannerView touch events
Found solution.
I removed OIS::Input manager from my project (OgreFramework.cpp: m_pInputMgr), because it used "setexclusivetouch: true" for Multi Touch and it's not possible to change it outside.
So I wrote my own implementation for touches and ADBannerView works just fine now. This is also true for any UIView, you want to add to your program.
I removed OIS::Input manager from my project (OgreFramework.cpp: m_pInputMgr), because it used "setexclusivetouch: true" for Multi Touch and it's not possible to change it outside.
So I wrote my own implementation for touches and ADBannerView works just fine now. This is also true for any UIView, you want to add to your program.
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: ADBannerView touch events
Yeah, for anything other than the SampleBrowser I'd recommend handling input yourself. The current OIS multitouch(that I wrote) is 100% not a very good solution for iOS, probably not for Android either. But it works, sort of, for the SampleBrowser. That's all I really meant it for. I was kind of hoping that someone else would pick up where I left off but that hasn't happened yet.