Mouse
by Richard Bottoms · in General Discussion · 09/23/2004 (3:26 pm) · 2 replies
Anyone with a snippet that allows the mosue to move smoothly outside the game window in windowed mode?
I want the game cursor to disappear and the mosue input deactivated when the mouse goes outside the bounds of the window and the reverse when the mouse is inside the game area once more.
Thanks,
r.b.
I want the game cursor to disappear and the mosue input deactivated when the mouse goes outside the bounds of the window and the reverse when the mouse is inside the game area once more.
Thanks,
r.b.
#2
Like this pseudocode:
if (mouse is inside game window)
{
canvas.cursoron();
canvas.showcursor().
}
else
{
canvas.cursoroff ();
canvas.hidecursor();
}
How do I determine if the mouse is inside the game window?
09/24/2004 (9:00 am)
Understood, but it seems it should be part of an if/then. The part I need is what looks for the status of whether the mouse is inside the game window.Like this pseudocode:
if (mouse is inside game window)
{
canvas.cursoron();
canvas.showcursor().
}
else
{
canvas.cursoroff ();
canvas.hidecursor();
}
How do I determine if the mouse is inside the game window?
Torque Owner David Tan