Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-06-02 Thread Fenixk19
I've tried XI2 Direct Input realisation with last xorg versions. It need some function name fixes to build. Here is a fixed file. As soon, as my wine will be build, i'll test the changes. /* * X11 DirectInput device support * * Copyright (C) 2009 Paul "TBBle" Hampson * * This library is free s

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-21 Thread Paul TBBle Hampson
On Tue, Apr 21, 2009 at 08:16:14AM -0600, Vitaliy Margolen wrote: > Paul TBBle Hampson wrote: >> On Sun, Apr 19, 2009 at 02:39:43PM -0600, Vitaliy Margolen wrote: >>> Paul TBBle Hampson wrote: >> I think I understand now. >> >> So we really don't want to touch dinput at all, but instead just use X

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-21 Thread Vitaliy Margolen
Paul TBBle Hampson wrote: > On Sun, Apr 19, 2009 at 02:39:43PM -0600, Vitaliy Margolen wrote: >> Paul TBBle Hampson wrote: >>> On Sun, Apr 19, 2009 at 10:48:11AM -0600, Vitaliy Margolen wrote: Paul TBBle Hampson wrote: > On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote:

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-20 Thread Paul TBBle Hampson
On Tue, Apr 21, 2009 at 01:09:47AM +1000, Paul TBBle Hampson wrote: > I think my solution to that while keeping the same structure is to add a > WH_WINEMOUSE_REL hook message that carries relative mouse movement data, > and let DirectInput and RawInput hook that. This also means that > applications

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-20 Thread Paul TBBle Hampson
I thought I saw a reply regarding these points on the mailing list archive, but I don't see it in my inbox. Conveniently, I got an email from whot (XI2 developer) addressing these points, but I haven't pulled from the updated XI2 repositories. On the plus side the patches to XI2 that I included in

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-20 Thread Paul TBBle Hampson
On Sun, Apr 19, 2009 at 02:39:43PM -0600, Vitaliy Margolen wrote: > Paul TBBle Hampson wrote: >> On Sun, Apr 19, 2009 at 10:48:11AM -0600, Vitaliy Margolen wrote: >>> Paul TBBle Hampson wrote: On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote: > Am Sonntag, 19. April 2009 10:

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Vitaliy Margolen
Paul TBBle Hampson wrote: > On Sun, Apr 19, 2009 at 10:48:11AM -0600, Vitaliy Margolen wrote: >> Paul TBBle Hampson wrote: >>> On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote: Am Sonntag, 19. April 2009 10:41:34 schrieb Paul TBBle Hampson: > I've thrown together a rather-ro

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Paul TBBle Hampson
On Sun, Apr 19, 2009 at 10:48:11AM -0600, Vitaliy Margolen wrote: > Paul TBBle Hampson wrote: >> On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote: >>> Am Sonntag, 19. April 2009 10:41:34 schrieb Paul TBBle Hampson: I've thrown together a rather-rough-but-working-in-a-limited-sen

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Vitaliy Margolen
Paul TBBle Hampson wrote: > Current limitations: > * Doesn't check for XInput2.h, so it won't build without it. (Laziness) > It will _run_ without XInput2, falling back to the current dinput > WndProc hooks even if compiled with XInput2 support. I don't think you need the entire separate list o

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Vitaliy Margolen
Paul TBBle Hampson wrote: > On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote: >> Am Sonntag, 19. April 2009 10:41:34 schrieb Paul TBBle Hampson: >>> I've thrown together a rather-rough-but-working-in-a-limited-sense >>> implementation of XInput2-based DirectInput. > >>> * Doesn't ch

XI2 DirectInput mouse implementation RFC

2009-04-19 Thread Paul TBBle Hampson
I've thrown together a rather-rough-but-working-in-a-limited-sense implementation of XInput2-based DirectInput. It's got a fair few problems, I'm mainly interested in feedback on the approach, although obviously any code or style criticisms are welcome. Current limitations: * Doesn't check for XI

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Paul TBBle Hampson
On Sun, Apr 19, 2009 at 09:46:17PM +1000, Paul TBBle Hampson wrote: > I'm attaching my DirectInput test program. It demonstrates both the > MSDN sample way of doing a background DI mouse reader, and also as it > happens a maybe-bug in Wine's DirectInput headers, in that you can't > use DIMOFS_X and

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Paul TBBle Hampson
On Sun, Apr 19, 2009 at 12:46:20PM +0200, Stefan Dösinger wrote: > Am Sonntag, 19. April 2009 10:41:34 schrieb Paul TBBle Hampson: >> I've thrown together a rather-rough-but-working-in-a-limited-sense >> implementation of XInput2-based DirectInput. >> * Doesn't check for XInput2.h, so it won't bui

Re: XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Stefan Dösinger
Am Sonntag, 19. April 2009 10:41:34 schrieb Paul TBBle Hampson: > (Resend, the first email never arrived. I didn't realise one of my > patches was 33k >_<) > > I've thrown together a rather-rough-but-working-in-a-limited-sense > implementation of XInput2-based DirectInput. > > It's got a fair few p

XI2 DirectInput mouse implementation RFC (Tarballed)

2009-04-19 Thread Paul TBBle Hampson
(Resend, the first email never arrived. I didn't realise one of my patches was 33k >_<) I've thrown together a rather-rough-but-working-in-a-limited-sense implementation of XInput2-based DirectInput. It's got a fair few problems, I'm mainly interested in feedback on the approach, although obvious