Page 1 of 1
ReleaseMouse(0/1) what does it do?
Posted: Fri May 07, 2004 10:35 am
by aisman
Hi,
What's doing: ReleaseMouse(0/1)
If I use it than MouseX(), MouseY() no longer returning a value...
Have anyone a code example for (correct) using?
Thx
Posted: Sun May 09, 2004 4:22 pm
by syntax error
See IsScreenActive() for more information.
PureBasic can tell the O/S two things:
ReleaseMouse(1)
I don't want to play with the mouse anymore. You can have it back.
ReleaseMouse(0)
Give me the mouse. It's mine and nobody else is going to play with it!
An example ..
Somebody is playing a full-screen PB game and alt-tabs to the desktop. Therefore, you should release the mouse so the O/S has control over it.
Posted: Sun May 09, 2004 4:30 pm
by thefool
syntax error wrote:
Somebody is playing a full-screen PB game and alt-tabs to the desktop. Therefore, you should release the mouse so the O/S has control over it.
or maybe they shouldnt give the o/s the mouse control back, and then begin to do bad things because the user left the game
nah, just kiddin.
Whatever, does this release mouse only work on fulscreen/windowed screens, and not on windows? Why i want to know: Because maybe you need to do some demonstration or something else very important, where the user should not do anything while it happens.