beginner question : Problem with using subscribeEvent

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: beginner question : Problem with using subscribeEvent

Postby Ident » Sun Aug 09, 2015 15:43

Window names must not contain slashes. It works without it. It is used everywhere without it and it works. If it otherwise does not work for you then you must have made a mistake somewhere. in 0.8.X window names should definitely not contain slashes.

See also: viewtopic.php?t=7054

Also you did not reply to my other questions. Can't help like this.
CrazyEddie: "I don't like GUIs"

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: beginner question : Problem with using subscribeEvent

Postby lucebac » Sun Aug 09, 2015 20:51

I fiddled around with my template code and used your code for initialization etc and found no obvious bug. The problem must definitely be somewhere in your "quit" function as I was able to call my ButtonClick handler without further problems.

loklak
Just popping in
Just popping in
Posts: 11
Joined: Sat Aug 08, 2015 20:27

Re: beginner question : Problem with using subscribeEvent

Postby loklak » Sun Aug 09, 2015 21:37

[SOLVED]
ok. i solved it. the error was from this part (injectMouseButtonDown :hammer: ):

Code: Select all

bool TutorialApplication::mouseReleased(const OIS::MouseEvent& me, OIS::MouseButtonID id)
{
.....
      if(CEGUI::System::getSingleton().getDefaultGUIContext().injectMouseButtonDown(convertButton(id))) return true;
      mCameraMan->injectMouseUp(me, id);
   return true;
}



i changed it to this:

Code: Select all

bool TutorialApplication::mouseReleased(const OIS::MouseEvent& me, OIS::MouseButtonID id)
{
.....
      if(CEGUI::System::getSingleton().getDefaultGUIContext().injectMouseButtonUp(convertButton(id))) return true;
      mCameraMan->injectMouseUp(me, id);
   return true;
}


Return to “Help”

Who is online

Users browsing this forum: No registered users and 25 guests