Results 1 to 2 of 2

Thread: about CL_Mouse

  1. #1
    Lesser Knight
    Join Date
    Oct 2007
    Posts
    57

    Default about CL_Mouse

    I use an old version clanlib1.0.

    I get a problem, about set a custom cursor. When custom from custom cursor to system cursor.I use the code like this:

    while(true)
    {
    if( useCustomCursor )
    {
    CL_Mouse::hide();
    }
    else
    {
    CL_Mouse::show();
    }
    ....
    }
    but this is not work,while change the "useCustomCursor", "CL_Mouse::show()" is not work,why???
    somebody can help me? Thanks in advance.

  2. #2
    Lesser Knight
    Join Date
    Oct 2007
    Posts
    57

    Default

    I solve this problem. But use a odd way. Like this:

    changeCursor:

    if( useCustomCursor )
    {
    CL_Mouse::hide();
    }
    else
    {
    CL_Mouse::show();
    }

    boolCursorChange = 0;

    while( global_alive )
    {
    if( boolCursorChange )
    {
    goto changeCursor;
    }
    .......
    }

    use a goto,maybe I'm fool,but....So somebody maybe give a polish way.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •