Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Arjan B

Pages: [1]
1
Window / Detect the mouse leaving the window
« on: June 12, 2010, 11:48:41 am »
I am making a puzzle game in which you drag stones with your mouse.
After letting several users test-play the game, I've noticed they all have this urge to click a stone, just sweep the mouse in the direction they want it to move and then release the button.
While doing this, very often the mouse moves outside of the window and the button is released there. This gets to the point where it ruins the gameplay and players get agitated.

When I googled on this problem I came upon this thread:
http://www.sfml-dev.org/forum/viewtopic.php?t=2597&sid=4b204b044470280bf28e8856ae1b34e5

Is there really no way I could check for the mouse to leave the window? Or does anyone have a different solution to my problem?

Thank you in advance,
Arjan

Pages: [1]
anything