ReleaseMouse(0/1) what does it do?

Windows specific forum
aisman
New User
New User
Posts: 7
Joined: Thu Nov 13, 2003 7:48 am

ReleaseMouse(0/1) what does it do?

Post 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
syntax error
User
User
Posts: 93
Joined: Tue Jan 13, 2004 5:11 am
Location: Midlands , UK

Post 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.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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 :twisted:


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.
Post Reply