mouse cursor disappearing [SOLVED]

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

duindain
Just popping in
Just popping in
Posts: 19
Joined: Sat Jun 09, 2007 08:51

mouse cursor disappearing [SOLVED]

Postby duindain » Tue Mar 25, 2008 13:33

Hey im working on a ogre / cegui application

when i load it up everythings fine the mouse cursor is in the center of the screen
as soon as i move the mouse it disappears and never comes back

if i move the mouse over a editbox or text area it reappears and becomes a proper cursor for text input but once i move the mouse anywhere else it disappears again even though the cursor is not visible it is still there i can see the mouseover code being activated on buttons and other windows but unless its a text one the cursor is invisible

Code: Select all

bool mouseMoved(const OIS::MouseEvent &arg)
    {
      // Update CEGUI with the mouse motion
      float sensativity = 2;
      CEGUI::System::getSingleton().injectMouseMove(arg.state.X.rel*sensativity, arg.state.Y.rel*sensativity);
      CEGUI::System::getSingleton().injectMouseWheelChange(arg.state.Z.abs);
   
   

this is my mousemove code i dont think the problem is there. there must be something ive forgotton to do which is prompting the cursor to disappear
does anyone have any suggestions what to look for and what functions could cause it because ive checked everything i can think of so far and no luck
thankyou
Last edited by duindain on Wed Mar 26, 2008 13:15, edited 1 time in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Mar 26, 2008 09:05

Hi,

you need to set a default mouse cursor - this will then be used for instances where a cursor is not explicitly specified by a window.

Code: Select all

...
try
{
    CEGUI::System::getSingleton().setDefaultMouseCursor( "TaharezLook", "MouseArrow" );
}
catch (CEGUI::Exception& e)
{
    // something went wrong - probably did not load the imageset first!
    //TODO: Handle error,
}
...


HTH

CE

duindain
Just popping in
Just popping in
Posts: 19
Joined: Sat Jun 09, 2007 08:51

Postby duindain » Wed Mar 26, 2008 13:09

Thankyou that fixed it


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests