Game Development Community

Duplicate cursor

by Jeff LaFlam · in Torque Game Engine · 04/06/2007 (11:52 am) · 2 replies

Hi All,

When I run the torque demo and move the mouse to the title bar of the window there is an image of the mouse still at the top of the client window. Is there any easy way to fix this?

I was thinking of using Canvas.cursorOff(); in scripting but I don't know what event/function to call that in. I thought there might be a Canvas::onMouseLeave event but I don't think so.

Also I've figured out what functions are exposed to the scripts but I can't get a handle on the events...is there a good doc or example out there?

thanks!

About the author

Recent Threads

  • Noob script question

  • #1
    04/06/2007 (11:58 am)
    You might want to take a look at this thread
    #2
    04/06/2007 (4:41 pm)
    Thanks Orion!

    I looked at what they did and I might end up using that.

    So I did a little more poking around and I outputed the x and y coords that GuiCanvas is passing to GuiCursor.render() to the console. The x and y are in the bounded region so it thinks the mouse is still in the window and draws it. I'm thinking there should be a way to tell GuiCanvas that the mouse is outside of it's region?? I guess I'll keep poking around...if anyone has further suggestions please let me know.

    Btw I figured out which events I can subscribe to in the scripts. I'm sure everyone is relieved...haha.