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
ReleaseMouse(0/1) what does it do?
-
syntax error
- User

- Posts: 93
- Joined: Tue Jan 13, 2004 5:11 am
- Location: Midlands , UK
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.
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.
or maybe they shouldnt give the o/s the mouse control back, and then begin to do bad things because the user left the gamesyntax 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.
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.

