No subject


Tue Mar 17 14:04:44 CDT 2009


ion=0D
on the mouse, but for the Game interface we need vector oriented presentati=
on.=0D
Right? So I started to look for a way to get Vectored Events from X.=0D
I stumbled across XTrap. They talk of Vectorevents ...=0D
Cant we make use of that?=0D
Sorry if I get the issue wrong. I am quite unskilled in C/C++ and have no I=
dea=0D
of X. I just researched a bit and read stuff that could help. (I did not ev=
en=0D
ask anyone :P ) So for me this is a shot into the Blue.=0D
=0D
Excerpt from perso.tls.cena.fr/jestin/Video/Docs/XTrap_Arch.ps.gz=0D
=0D
Event Vectoring=0D
In recording X protocol either for performance measurements or record/playb=
ack=0D
functionality, it often=0D
becomes necessary to capture more than just the core input events (Keyboard=
 &=0D
Pointer). Further, it=E2=80=99s=0D
often critical to capture events before the determination is made by the se=
rver=0D
to not deliver the event.=0D
Of course, this could be done by a client by configuring "interest" for all=
=0D
events in all windows (includ-=0D
ing the root); however, the overhead associated with keeping track of the=
=0D
entire server=E2=80=99s volatile win-=0D
dow hierarchy is typically too expensive (especially for performance monito=
ring=0D
clients).=0D
As discussed earlier in this document, a ProcVector approach was implemente=
d in=0D
X11 for all requests=0D
and byte-swapped events. One can only deduce that normal events weren=E2=80=
=99t=0D
vectored for performance=0D
reasons. With this in mind and the requirement to capture all events before=
 the=0D
server drops any on the=0D
floor, the following are excerpts of experimental changes to events.c and=
=0D
devices.c to facilitate event=0D
vectoring=0D
=0D
Hope it helps!=0D
Peter=0D
=0D
--- Comment #238 from Paul "TBBle" Hampson <Paul.Hampson at Pobox.com>  2009-0=
3-27 08:21:32 ---=0D
I don't think XTrap is compiled into Xservers normally... In fact, a quick=
=0D
browse through the X.org git repo suggests it might not actually be impleme=
nted=0D
in Xorg, though the headers, library and protocol repositories are there.=
=0D
=0D
So I might be looking in the wrong place for the actual extension implement=
ed.=0D
But certainly the xserver-xorg-core package on Debian/unstable doesn't list=
=0D
XTrap in xdpyinfo by default.=0D
=0D
--- Comment #239 from Paul "TBBle" Hampson <Paul.Hampson at Pobox.com>  2009-0=
3-27 08:23:19 ---=0D
Ignore that, I confused XTrap and XTest. It's compiled, but not enabled by=
=0D
default.=0D
=0D
--- Comment #240 from Paul "TBBle" Hampson <Paul.Hampson at Pobox.com>  2009-0=
3-29 03:49:18 ---=0D
http://wiki.winehq.org/DInput has some XInput2 information.=0D
=0D
--- Comment #241 from Paul "TBBle" Hampson <Paul.Hampson at Pobox.com>  2009-0=
3-31 07:00:57 ---=0D
Xorg has dropped XTrap as of Xserver 1.6.=0D
=0D
http://www.x.org/wiki/Server16Branch#head-b1f125722e5fa755198eaff3e42c1cfff=
c861f90=0D
=0D
--- Comment #242 from Joey Forgues Forget <Jey123456 at gmail.com>  2009-04-06=
 12:38:57 ---=0D
Created an attachment (id=3D20315)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D20315)=0D
add a toggle with the middle mouse button for the mouse wrapping.=0D
=0D
Here a small patch i did based on those with mouse wrapping , but instead o=
f=0D
requiring you to hold the key. its a toggle. =0D
=0D
work perfectly fine with most games since you can toggle it off with the mi=
ddle=0D
mouse button (its used in some games, but rarely an important action). =0D
=0D
Obviously, this is only meant as a temporary solution, but its enough for m=
e.=0D
=0D
--- Comment #243 from dlzerocool <dl.zerocool at gmail.com>  2009-04-26 06:02:=
12 ---=0D
Created an attachment (id=3D20721)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D20721)=0D
mouse patch modified only recenter mouse when right,left or middle click is=
=0D
down.=0D
=0D
This patch is a version modified on one that is actually present here.=0D
=0D
The only change is that when right/left/middle click is not pressed, center=
 the=0D
mouse on the screen is not applied.=0D
=0D
Like warhammer online other games only have problems with mouse when right =
or=0D
left clic is used.=0D
Some games use this function with middle click so I added middle click too.=
=0D
=0D
This is a sort of hack, so it's not a really usable patch...=0D
But it can help for some games at moment, so I post my changes added to thi=
s=0D
patch here.=0D
=0D
--- Comment #244 from dlzerocool <dl.zerocool at gmail.com>  2009-04-26 06:30:=
55 ---=0D
(In reply to comment #243)=0D
> Created an attachment (id=3D20721)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D20721) [details]=0D
> mouse patch modified only recenter mouse when right,left or middle click =
is=0D
> down.=0D
> =0D
> This patch is a version modified on one that is actually present here.=0D
> =0D
> The only change is that when right/left/middle click is not pressed, cent=
er the=0D
> mouse on the screen is not applied.=0D
> =0D
> Like warhammer online other games only have problems with mouse when righ=
t or=0D
> left clic is used.=0D
> Some games use this function with middle click so I added middle click to=
o.=0D
> =0D
> This is a sort of hack, so it's not a really usable patch...=0D
> But it can help for some games at moment, so I post my changes added to t=
his=0D
> patch here.=0D
> =0D
=0D
For information I use Playonlinux to install all my software even not=0D
supported.=0D
It's a great tool because each install have is own directory with his own=
=0D
register, it's own setup to explain everything, and you can set up a differ=
ent=0D
wine version for each software.=0D
=0D
So with this patch, all my games who I don't set in registery  force_edge  =
even=0D
if I use the same wine version (system), I don't have any problems, even fo=
r=0D
FPS likes etc...=0D
=0D
enjoy.=0D
=0D
--- Comment #245 from James Stone <stonej4 at mcmaster.ca>  2009-05-04 11:26:2=
5 ---=0D
Given the wide range of apps that are affected by this bug, it's severity=
=0D
should probably be upped from Normal to Major.=0D
=0D
--- Comment #246 from Lars Blomqvist <knaprigt at gmail.com>  2009-05-11 14:00=
:52 ---=0D
Created an attachment (id=3D21031)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D21031)=0D
Output during lag/freeze when using patch id=3D18681=0D
=0D
(In reply to comment #206)=0D
> Created an attachment (id=3D18681)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D18681) [details]=0D
> Hack to read raw mouse movement from /dev/input/mice=0D
> =0D
> ...=0D
> =0D
=0D
I thought I'd give this patch a try since it seems to be the only one that=
=0D
doesn't wrap the mouse, however I experienced the same lag/freeze as others=
=0D
here.=0D
=0D
I'm no expert when it comes to the dinput code in Wine but I thought maybe=
=0D
someone else might have use for output when running a game like Mount & Bla=
de=0D
with WINEDEBUG=3D+dinput and this patch.=0D
=0D
The output is what's dumped to my terminal every time (and only when) the=
=0D
application freezes.=0D
=0D
Any thoughts?=0D
=0D
--- Comment #247 from giovanni.nicola at ticino.com  2009-06-04 12:05:53 ---=
=0D
Created an attachment (id=3D21554)=0D
 --> (http://bugs.winehq.org/attachment.cgi?id=3D21554)=0D
Patch for mouse for bug 6971=0D
=0D
--- Comment #248 from giovanni.nicola at ticino.com  2009-06-04 12:38:28 ---=
=0D
(From update of attachment 21554)=0D
to activate=0D
WINEFORCEMOUSEWARP=3Dyes wine proggy.exe=0D
=0D
--- Comment #249 from giovanni.nicola at ticino.com  2009-06-04 12:44:10 ---=
=0D
The Patch that i have proposed works for all Ut3 engine games, Crysis and=
=0D
Crysis Warhead and all those ut2004 engine games, this i my firts try at wi=
nes=0D
mouse but i hope this patch can be useful to all the community=0D
=0D
--- Comment #250 from Vitaliy Margolen <vitaliy at kievinfo.com>  2009-06-04 1=
9:38:45 ---=0D
*** Bug 18774 has been marked as a duplicate of this bug. ***=0D
=0D
--- Comment #251 from Alessandro Pedarra <alessandro.pedarra at inbox.com>  20=
09-06-19 12:17:41 ---=0D
Please how can I implement this patch? I'm not a programmer so if you can=
=0D
explain it to me... many thanks.=0D
=0D
--- Comment #252 from sheen <toxmerguez at yahoo.fr>  2009-06-19 12:45:56 ---=
=0D
(In reply to comment #251)=0D
> Please how can I implement this patch? I'm not a programmer so if you can=
=0D
> explain it to me... many thanks.=0D
=0D
take the patch, get the source via git, apply the patch, compile, install.=
=0D
it should be approximatively this :=0D
=0D
create a file patch.diff and copy the patch inside =0D
install git-core=0D
git clone git://source.winehq.org/git/wine.git ~/user/wine-git=0D
cd ~/user/wine-git=0D
patch -p1 < /locationofthepatch/patch.diif=0D
make depend=0D
make=0D
make install=0D
=0D
(Don't forget to install all the needed library, you should find them on th=
e=0D
wiki)=0D
=0D
--- Comment #253 from Alessandro Pedarra <alessandro.pedarra at inbox.com>  20=
09-06-19 13:24:17 ---=0D
(In reply to comment #252)=0D
> (In reply to comment #251)=0D
> > Please how can I implement this patch? I'm not a programmer so if you c=
an=0D
> > explain it to me... many thanks.=0D
> =0D
> take the patch, get the source via git, apply the patch, compile, install=
.=0D
> it should be approximatively this :=0D
> =0D
> create a file patch.diff and copy the patch inside =0D
> install git-core=0D
> git clone git://source.winehq.org/git/wine.git ~/user/wine-git=0D
> cd ~/user/wine-git=0D
> patch -p1 < /locationofthepatch/patch.diif=0D
> make depend=0D
> make=0D
> make install=0D
> =0D
> (Don't forget to install all the needed library, you should find them on =
the=0D
> wiki)=0D
=0D
I got stopped here: alessandro at alessandro-desktop:~/user/wine-git$ make dep=
end=0D
make: *** Nessuna regola per creare l'obiettivo =C2=ABdepend=C2=BB.  Arrest=
o.=0D
alessandro at alessandro-desktop:~/user/wine-git$ =0D
=0D
(?)=0D
=0D
--- Comment #254 from sheen <toxmerguez at yahoo.fr>  2009-06-19 14:31:22 ---=
=0D
(In reply to comment #253)=0D
> I got stopped here: alessandro at alessandro-desktop:~/user/wine-git$ make d=
epend=0D
> make: *** Nessuna regola per creare l'obiettivo =C2=ABdepend=C2=BB.  Arre=
sto.=0D
> alessandro at alessandro-desktop:~/user/wine-git$ =0D
> =0D
> (?)=0D
=0D
Sorry I've forgotten the ./configure line (before make depend), but you'll =
need=0D
all the library=0D
The best way for you is here : http://wiki.winehq.org/WineOn64bit=0D
All is explained, for all environment.=0D
=0D
--- Comment #255 from Alessandro Pedarra <alessandro.pedarra at inbox.com>  20=
09-06-19 16:29:18 ---=0D
(In reply to comment #254)=0D
> (In reply to comment #253)=0D
> > I got stopped here: alessandro at alessandro-desktop:~/user/wine-git$ make=
 depend=0D
> > make: *** Nessuna regola per creare l'obiettivo =C2=ABdepend=C2=BB.  Ar=
resto.=0D
> > alessandro at alessandro-desktop:~/user/wine-git$ =0D
> > =0D
> > (?)=0D
> =0D
> Sorry I've forgotten the ./configure line (before make depend), but you'l=
l need=0D
> all the library=0D
> The best way for you is here : http://wiki.winehq.org/WineOn64bit=0D
> All is explained, for all environment.=0D
=0D
Tried to do it but with no success.. maybe because I made everything (even=
=0D
WineOn64bit) in ~/user/wine-git ? =0D
=0D
Anyway for me it's too much, I do not really understand the process. I thin=
k I=0D
have to wait for the next official build, hoping that the patch will be=0D
integrated.=0D
=0D
Thanks anyway for your support sheen. ;)=0D
=0D
-- =0D
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=3Demail=0D
Do not reply to this email, post in Bugzilla using the=0D
above URL to reply.=0D
------- You are receiving this mail because: -------=0D
You are watching all bug changes.=



More information about the wine-bugs mailing list