Game Development Community

Question About cursors

by Ehab Yosry Amer · in General Discussion · 01/27/2010 (7:15 pm) · 1 replies

there is something that I'm having a hard time to understand, I know that to change the shape of the mouse cursor "Canvas.setCursor(THECUSOR)" does the trick, but for some reason its not working, nothing happens

& there is something else, some game-samples dont allow the mouse to escape from the window boundaries, I dont know how to do that, what I'm guessing is that my game is not rendering a mouse & is taking the mouse events from the windows mouse ..... or something like that.

I hope some1 out there would help me understand the how the mouse cursors work on torque.

I tried typing canvas.cursoron/off show/hide cursor in the console, but I'm still missing something.

basically I need to prevent the mouse from escaping the boundaries of the window, how can i do that?

thanks in advance