Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Disable absolute mouse position clipping  (Read 533 times)

Thieum

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
    • View Profile
Disable absolute mouse position clipping
« on: October 29, 2009, 09:02:02 AM »

Hi!

I am using ois in non exclusive mode (DISCL_FOREGROUND & DISCL_NONEXCLUSIVE) with a non fullscreen window. I can drag an object when I press the left mouse button.
If I use the absolute position, I cannot continue to drag the object when the OS cursor leaves the window and if I use the relative movement, the draging movement is inconsistent with the OS cursor movement.
It seems that the absolute position takes into account window's mouse sensibility and acceleration but the relative movement does not.

I would like to be able drag an object even if the cursor goes outside the window (like in google map for example)
It could be possible to add a boolean to the mousestate just after the width and height of the window to disable the clipping
Another solution would be to add an option to sync the relative movement to the absolute position but I don't think it would be better

What do you think about it ?
thanks in advance
Logged