Search found 20 matches

by LearnerPlates
Sun Nov 08, 2009 14:18
Forum: Help
Topic: Deleting the CEGUI::System causes an access violation
Replies: 5
Views: 785

Re: Deleting the CEGUI::System causes an access violation

Hmm, I'm linking to version 0.6.2 of CEGUI, but I guess a lot of the source is whatever is included with Ogre (v1.6.4) - could that really be making a difference? Unfortunately, I wouldn't have a clue about how to debug the source of CEGUI, but I did try manually calling unloadAllSchemes() and the p...
by LearnerPlates
Sat Nov 07, 2009 04:58
Forum: Help
Topic: Deleting the CEGUI::System causes an access violation
Replies: 5
Views: 785

Re: Deleting the CEGUI::System causes an access violation

Sorry Jamarr! :lol: CEGUI.log is below... no errors, though, and using CEGUI::System::getSingletonPtr() reveals that the address is indeed the same as that stored in pCeguiSystem . I assume the log should say something like "CEGUI System successfully deleted" after those last two lines? 07...
by LearnerPlates
Fri Nov 06, 2009 12:09
Forum: Help
Topic: Deleting the CEGUI::System causes an access violation
Replies: 5
Views: 785

Deleting the CEGUI::System causes an access violation

I'm sure I must be missing something simple - I get an access violation whenever I try to delete the CEGUI::System object. (Should I not be attempting to do this?) Here is how I create the object in my class initialisation function: pCeguiRenderer = new CEGUI::OgreCEGUIRenderer( this->pRenderWin, Og...
by LearnerPlates
Fri Oct 16, 2009 06:15
Forum: Help
Topic: setAutoRepeatRate - not working for me!
Replies: 5
Views: 617

Re: setAutoRepeatRate - not working for me!

Thanks for confirming, CE - I'll see what I can do to get that fixed!
by LearnerPlates
Wed Oct 14, 2009 11:03
Forum: Help
Topic: setAutoRepeatRate - not working for me!
Replies: 5
Views: 617

Re: setAutoRepeatRate - not working for me!

No, I'm not. :( Could it be something to do with how I'm injecting mouse input into CEGUI? This is handled by another section of the program (not under my control - it's a team project), and I think CEGUI::System::getSingleton().injectMouseButtonDown( CEGUI::LeftButton ) is called every frame that t...
by LearnerPlates
Wed Oct 14, 2009 06:32
Forum: Help
Topic: setAutoRepeatRate - not working for me!
Replies: 5
Views: 617

Re: setAutoRepeatRate - not working for me!

Hmm, something odd - if I take out the injectTimePulse() line, the autorepeat still works! Is there something else that could be interfering here?
by LearnerPlates
Wed Oct 14, 2009 04:51
Forum: Help
Topic: setAutoRepeatRate - not working for me!
Replies: 5
Views: 617

setAutoRepeatRate - not working for me!

Me again - thanks for helping me out with all my little queries. :) I'm having trouble setting the autorepeat rate for a button - no matter what value I give to setAutoRepeatRate(), it doesn't seem to be having any effect. I'm injecting a time pulse into CEGUI with each frame update as follows: CEGU...
by LearnerPlates
Tue Sep 29, 2009 15:46
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

Hi CE - thanks again for your thoughtful response. :) I really appreciate the help.
by LearnerPlates
Tue Sep 15, 2009 13:32
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

I'm using version 0.6.2 of the code, and at the moment I'm only using StaticText, StaticImage, Button and ImageButton. I feel sure the mess-up must be on my end, though... Wow, now I'm really confused. I tried pressing a key at various points in the code with a breakpoint on my keyboardEvent functio...
by LearnerPlates
Tue Sep 15, 2009 12:27
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

Thanks very much for the explanation - that makes sense now. :)

And yes, debugging spew (and a break point!) confirm the inject code is definitely called...
by LearnerPlates
Tue Sep 15, 2009 10:23
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

Yes, it was added so a person could get event notifications without needing to individually subscribe handlers to every window - or other object - they create. Do you mean so that every instance of a particular type of window/widget is subscribed to one function? Thus what I'm trying to achieve is ...
by LearnerPlates
Tue Sep 15, 2009 07:54
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

I'm trying to pass a keyboard event from my OIS key listener to my CEGUI-based interface class. I inject the event into CEGUI like so: bool keyPressed(const OIS::KeyEvent &arg) { CEGUI::System *sys = CEGUI::System::getSingletonPtr(); sys->injectKeyDown(arg.key); } Then try to subscribe within th...
by LearnerPlates
Wed Sep 09, 2009 03:50
Forum: Help
Topic: Z-order of windows
Replies: 3
Views: 606

Re: Z-order of windows

Hi Jamarr Thanks - disabling them worked fine for what I needed. :) The problem was because I had a button on top of a StaticImage, so if you accidentally clicked on the image, it would move to the top layer and obscure the button! Is there any way to disable windows through the .layout file, or is ...
by LearnerPlates
Tue Sep 08, 2009 15:10
Forum: Help
Topic: Z-order of windows
Replies: 3
Views: 606

Z-order of windows

Hopefully this is a very simple question, though I can't find the answer yet -

How do I stop my windows moving into the foreground / uppermost layer when I click on them? I assume this happens because that window is then in focus. Do I have to set them to disabled to prevent this?
by LearnerPlates
Tue Sep 08, 2009 11:24
Forum: Help
Topic: Subscribing to global keyboard events?
Replies: 15
Views: 1820

Re: Subscribing to global keyboard events?

Argh, have I done something really stupid? I've browsed all the threads I can find on global events and I'm not sure why this CEGUI::GlobalEventSet::getSingleton().subscribeEvent( CEGUI::Window::EventNamespace + "/" + CEGUI::Window::EventKeyDown, CEGUI::Event::Subscriber(&UserInterface...

Go to advanced search