Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
-
Ananditha Roy
- Kobold
- Posts: 30
- Joined: Wed Mar 14, 2012 2:25 pm
Post
by Ananditha Roy »
Hi ,
I am working on the SDK Trays .I created the button
Code: Select all
OgreFramework::getSingletonPtr()->m_pTrayMgr->createButton(OgreBites::TL_CENTER, "sdk_button_down", "clickme");
OgreFramework::getSingletonPtr()-> m_pTrayMgr->setListener(mlistenser);
It is showing the button , but when i click on the button
Code: Select all
void DemoApp::buttonHit(OgreBites::Button *b){
if(b->getName()=="sdk_button_down")
{
OgreFramework::getSingletonPtr()->m_pLog->logMessage("Clicke ME pressed");
}
}
How to call this function ? how to call the button event ??
-
masterfalcon
- OGRE Retired Team Member

- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Post
by masterfalcon »
Is it ever getting in that function?
-
Ananditha Roy
- Kobold
- Posts: 30
- Joined: Wed Mar 14, 2012 2:25 pm
Post
by Ananditha Roy »
hi ,
No , i checked with by keeping the break point . It is not entering in to the function . Do i need to add anything before that .
Thanks
-
Ananditha Roy
- Kobold
- Posts: 30
- Joined: Wed Mar 14, 2012 2:25 pm
Post
by Ananditha Roy »
Hi ,
Please tell me the process for the click event of the button . I have been stucked with this for many days
-
masterfalcon
- OGRE Retired Team Member

- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Post
by masterfalcon »
How are you setting everything up? Some more code would help a bit.