http://rpg.hamsterrepublic.com/bugzilla/show_bug.cgi?id=798

--- Comment #1 from Bob the Hamster <[email protected]> 2009-12-14 
09:55:49 PST ---
Another option is ScrollLock. It is currently used for screen-page debugging in
allmodex, an old feature which I think has long outlived its usefulness.

Also, I wonder if it is worth it to store some state about whether or not a
restricted mouse has been requested?

For example, a call to mouserect with any arguments other than -1, -1, -1, -1
should remember the arguments and set a flag like restricted_mouse_requested

If the user manually overrides the mouse grab, it would call mouserect -1, -1,
-1, -1 and would set a flag like restricted_mouse_overridden

When a mouse click is received inside the window, it will check IF
restricted_mouse_requested = YES AND restricted_mouse_overridden = YES THEN it
will clear the overridden flag, and call mouserect again with the old
arguments.

This way the user can manually free their mouse, but when the start playing
again, the mouse will grab again.

This is consistent with the behavior of other (well-behaved) mouse-grabbing
applications that I have used.

-- 
Configure bugmail: 
http://rpg.hamsterrepublic.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to