Win32 Relative Mouse Movement patch

Here are the patches for relative mouse movement on win32---------- Forwarded message ----------
From: @Patrick_Baggett (Patrick Baggett)
Date: Wed, Jun 6, 2012 at 8:03 PM
Subject: Re: [SDL] win32 Relative Mouse Movement (attn Forest Hale!)
To: SDL Development List

Here is my first rough attempt. “testrelative” feels right to me, but I’d
like it someone else tested this, especially compared to Linux/OSX. The
"Ctrl+r" to switch between relative and normal mouse movements seems to
work flawlessly. With relative mouse movement, the only way to change focus
is via keyboard. I’m not sure if that is the correct approach, but that
would seem to be the most useful mode for games. Still, if my assumption is
wrong, I can fix that no problem.

I generated these using “hg diff”, so if there are any issues with them,
let me know.

patch01.diff – Windows SDK version header changes. Raw Input requires
Window XP or later. I didn’t try dynamically loading symbols (so you really
do need Windows XP to run it), but it could be changed if necessary. The
structure definitions (which this patch) enables are for Windows XP or
later, but as far as I know, this wouldn’t kill Win2K compatibility off the
bat.

patch02.diff – The actual changes for raw input.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: patch02.diff
Type: application/octet-stream
Size: 3020 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120703/3e057ce0/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed…
Name: patch01.diff
Type: application/octet-stream
Size: 500 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120703/3e057ce0/attachment-0001.obj

Thanks Patrick, your changes are in!

Folks, please send feedback, as this is a big milestone for the SDL 2.0
code! :slight_smile:

Cheers!On Tue, Jul 3, 2012 at 11:03 AM, Patrick Baggett <baggett.patrick at gmail.com>wrote:

Here are the patches for relative mouse movement on win32

---------- Forwarded message ----------
From: Patrick Baggett <baggett.patrick at gmail.com>
Date: Wed, Jun 6, 2012 at 8:03 PM
Subject: Re: [SDL] win32 Relative Mouse Movement (attn Forest Hale!)
To: SDL Development List

Here is my first rough attempt. “testrelative” feels right to me, but I’d
like it someone else tested this, especially compared to Linux/OSX. The
"Ctrl+r" to switch between relative and normal mouse movements seems to
work flawlessly. With relative mouse movement, the only way to change focus
is via keyboard. I’m not sure if that is the correct approach, but that
would seem to be the most useful mode for games. Still, if my assumption is
wrong, I can fix that no problem.

I generated these using “hg diff”, so if there are any issues with them,
let me know.

patch01.diff – Windows SDK version header changes. Raw Input requires
Window XP or later. I didn’t try dynamically loading symbols (so you really
do need Windows XP to run it), but it could be changed if necessary. The
structure definitions (which this patch) enables are for Windows XP or
later, but as far as I know, this wouldn’t kill Win2K compatibility off the
bat.

patch02.diff – The actual changes for raw input.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

This whole discussion got started based on a “backlog” of tasks for SDL 2.0
release – where is that list of must-haves?

PatrickOn Tue, Jul 3, 2012 at 10:52 PM, Sam Lantinga wrote:

Thanks Patrick, your changes are in!

Folks, please send feedback, as this is a big milestone for the SDL 2.0
code! :slight_smile:

Cheers!

I’ve updated the roadmap:
http://wiki.libsdl.org/moin.cgi/Roadmap

As you can see, we’re really freaking close. :)On Thu, Jul 5, 2012 at 4:15 PM, Patrick Baggett <baggett.patrick at gmail.com>wrote:

This whole discussion got started based on a “backlog” of tasks for SDL
2.0 release – where is that list of must-haves?

Patrick

On Tue, Jul 3, 2012 at 10:52 PM, Sam Lantinga <@slouken> wrote:

Thanks Patrick, your changes are in!

Folks, please send feedback, as this is a big milestone for the SDL 2.0
code! :slight_smile:

Cheers!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org