Mouse move out of the game window

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
abraham_aji
Newbie
Newbie
Posts: 3
Joined: Sat Jun 13, 2009 1:28 am

Mouse move out of the game window

Post by abraham_aji »

Hi

Am using ubuntu 9.04 with wine.
Right now am facing one issue while playing game (IGI) under wine.
(1) when i moved the mouse some times it move out of the game window , so all game flow will lost due to the issue.
i tried with wine cfg option to lock mouse on directx application But not worked :(
Change the wine resolution .. the issue remains same
pls help me to solve the issue
James Huk

Mouse move out of the game window

Post by James Huk »

2009/6/13 abraham_aji <[email protected]>
Hi

Am using ubuntu 9.04 with wine.
Right now am facing one issue while playing game (IGI) under wine.
(1) when i moved the mouse some times it move out of the game window , so
all game flow will lost due to the issue.
i tried with wine cfg option to lock mouse on directx application But not
worked :(
Change the wine resolution .. the issue remains same
pls help me to solve the issue





This is a known issue, for workaround look here:
http://wiki.winehq.org/UsefulRegistryKeys
at "MouseWarpOverride" - you will need to set it to "force", just save the
folowing to a file:
REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\DirectInput]
"MouseWarpOverride"="force"
and run this command:
regedit filename.reg
That should do the trick ;]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
abraham_aji
Newbie
Newbie
Posts: 3
Joined: Sat Jun 13, 2009 1:28 am

Post by abraham_aji »

Thanx now its working ..

Actually whats the wrong .. .. is this a Bug ?
if we put "MouseWarpOverride"="force" how its work ?
James Huk

Mouse move out of the game window

Post by James Huk »

2009/6/14 abraham_aji <[email protected]>
Thanx now its working ..

Actually whats the wrong .. .. is this a Bug ?
if we put "MouseWarpOverride"="force" how its work ?





This registry is a "brute force" method of fixing escaping mouse bug - it
works for some apps, for others it may produce problems (although I didn't
find any). There is a bug in bugzilla for this, and I think it will
“eventually” be fixed properly, for now - this is the fix. How it works?
Well I "THINK" when this is set to enable mouse pointer is being warped to
the center of the wine window whenever it reaches outer boundary of the
window – for some apps this is sufficient, in others cursor can “escape”
window, and since wine didn't reacted in time (when cursor reached window's
outer boundary) cursor won't be warped, when we set this to force, cursor is
locked in the center of window – so it will not escape. I think that is how
it works. Abybody can confirm my thinking?
P.S
Sorry for my English
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Basically this is bug 6971 (http://bugs.winehq.org/show_bug.cgi?id=6971). X doesn't offer relative mouse movements this means that we don't receive events when you reach the borders of a window and then the mouse can escape the screen (we fake the mouse cursor I believe). The hack lets us recenter the mouse cursor this fix some programs but it breaks lots of others. The issue can be fixed soon when Xorg will ship Xinput 1.2 which does offer us relative mouse movements.
abraham_aji
Newbie
Newbie
Posts: 3
Joined: Sat Jun 13, 2009 1:28 am

Post by abraham_aji »

OK i got the issue ... This is a bug .. But can be solved only with xorg support .

Mean while whats default value for the MouseWarpOverride . is there any another method to solve the issue , i mean without editing the wine registry ? So i can change this setting temporally for games which have the issue.
James Huk

Mouse move out of the game window

Post by James Huk »

2009/6/16 abraham_aji <[email protected]>
OK i got the issue ... This is a bug .. But can be solved only with xorg
support .

Mean while whats default value for the MouseWarpOverride . is there any
another method to solve the issue , i mean without editing the wine
registry ? So i can change this setting temporally for games which have
the issue.





Well... you can start independent X session for your game – in fact this is
the way OpenGL app should be run (it can “fix” some broken video drivers).
To start new X session simply type:

xinit /usr/bin/xterm : --1 -ac -depth 24

That should start new X session (usually accessible by pressing CTRL+ALT+F8)
without window manager, only with xterm – now from the xterm, simply start
your app – that should do the trick.

You can switch between X sessions by pressing CTRL+ALT+F(something).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
Locked