Mouse problem

Hi,

Under win32 SDL mouse button down lead to window capture. It’s really good
behavior. Unfortunately, SDL cut cursor coordinates to window border
coordinates.This lead to blocking of one dimension of mouse movement.

Does it possible to remove coordinates cutting and provide possibility to
have negative coordinates when cursor moved beyond left or top edge of
window?

Best wishes,

Alexei Nikitin

I had the same problem, and just bypassed SDL and asked Windows for the
current position in the one case that needed it. (grabbing our title bar
and moving the window)

–Manny

At 01:35 PM 11/1/2000 -0800, you wrote:>Hi,

Under win32 SDL mouse button down lead to window capture. It’s really good
behavior. Unfortunately, SDL cut cursor coordinates to window border
coordinates.This lead to blocking of one dimension of mouse movement.

Does it possible to remove coordinates cutting and provide possibility to
have negative coordinates when cursor moved beyond left or top edge of
window?

Best wishes,

Alexei Nikitin

I had the same problem, and just bypassed SDL and asked Windows for the
current position in the one case that needed it. (grabbing our title bar
and moving the window)

Any reason you need to handle this yourself instead of letting Windows do it?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hi,

Under win32 SDL mouse button down lead to window capture. It’s really good
behavior. Unfortunately, SDL cut cursor coordinates to window border
coordinates.This lead to blocking of one dimension of mouse movement.

Does it possible to remove coordinates cutting and provide possibility to
have negative coordinates when cursor moved beyond left or top edge of
window?

Not really. There are programs which rely on this, so it’s not likely
to change as the default behavior. Is there a particular reason you need
this information?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Go to sleep already, Sam!

At 09:52 PM 07/11/2000 -0800, you wrote:> > I had the same problem, and just bypassed SDL and asked Windows for the

current position in the one case that needed it. (grabbing our title bar
and moving the window)

Any reason you need to handle this yourself instead of letting Windows do it?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Immersion / consistent theme. We fully replaced the windows controls with
a set in theme with the game, so we make a plain window (just the resize
border), with our own title bar at the top. Since the Windows title bar
is gone, letting Windows do it isn’t an option, otherwise I would.

For Hardwood Solitaire, Dan took the approach of using the Windows
controls, and overriding them, which was very troublesome, not to mention
non-portable, so for Hearts, we did everything in-game.

–Manny

At 09:52 PM 11/7/2000 -0800, you wrote:> > I had the same problem, and just bypassed SDL and asked Windows for the

current position in the one case that needed it. (grabbing our title bar
and moving the window)

Any reason you need to handle this yourself instead of letting Windows do it?

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hello ,

Under win32 SDL mouse button down lead to window capture. It’s really good
behavior. Unfortunately, SDL cut cursor coordinates to window border
coordinates.This lead to blocking of one dimension of mouse movement.

Does it possible to remove coordinates cutting and provide possibility to
have negative coordinates when cursor moved beyond left or top edge of
window?

Not really. There are programs which rely on this, so it’s not likely
to change as the default behavior. Is there a particular reason you need
this information?

Yes, I have such reason.
I work with moving and rotating objects on the small SDL screen.
I want, for example, to choose and rotate object. I can not do it
if object lied near the border. Moreover, object will be rotate in
wrong direction due to stopping rotation around one axe.

But, I think that, this is not particular, but very common reason.

  1. If user capture the window by mouse button pressing,
    usually, program do not stop to work with occasional
    cursor movement out of the window. At least under MS Windows, this
    is general behavior.

  2. Full information is better then partial information.
    If somebody want to rely on cutting behavior he
    can easy do it in the way he want.

  3. Suppose, I want cutting, but why on the window border?
    I like on the particular rectangle.

Please, provide possibility to obtain cursor coordinates on the full
computer screen. It’s not matter absolute or relative to SDL window.

Best wishes,
Alexei