Page 1 of 1

My program have two cursors!

Posted: Wed Jul 21, 2010 11:17
by JJChicken
how to disable windows cursor?
when my game framerate slow down, CEGUI cursor moved slow down too.
how to solve this problem?

Re: My program have two cursors!

Posted: Wed Jul 21, 2010 14:22
by Jamarr
JJChicken wrote:how to disable windows cursor?


This is a windows API question. This is not a windows API forum.

when my game framerate slow down, CEGUI cursor moved slow down too. how to solve this problem?


The CEGUI mouse can only update as fast as your application tells it to; eg it is limited by how often your application calls CEGUI::System::injectMouseMove/injectMousePosition.

Re: My program have two cursors!

Posted: Thu Jul 22, 2010 08:54
by JJChicken
I know about it
My application called the CEGUI::System::injectMouseMove/injectMousePosition, but the cursor did
not rendered immediately!
because My application rendered the CEGUI per frame, but the framerate slowly. so cursor moved slowly too.
how to solve this problem?
did i use single thread rendered the cursor or CEGUI?

Re: My program have two cursors!

Posted: Thu Jul 22, 2010 13:28
by CrazyEddie
The CEGUI cursor is rendered as part of the CEGUI output. If you have low frame rates or are otherwise not calling the GUI rendering code frequently enough, then you will see slow cursor updates. The "solution" would be to render more frequently.

CE.

Re: My program have two cursors!

Posted: Fri Jul 23, 2010 05:20
by JJChicken
thank you!