The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
OSX: Relative mousemode is accelerated, should be raw(?)
eric.w


Joined: 12 Feb 2014
Posts: 38
Just a small update - I thought I would resurrect that bug report and collect info there: https://bugzilla.libsdl.org/show_bug.cgi?id=445


My patch still applies and seems to work (yay!) but I didn't get a chance to look at the CPU usage yet.



On Wed, Mar 16, 2016 at 1:45 PM, Daniel Gibson wrote:
Quote:
Oh cool, totally missed that patch!

Do you think there is a way to get raw input without spending 15% of the CPU time in the raw mouse thread? It sounds a lot (even if it might be tolerable if there is no other way).

Cheers,
Daniel

On 03/14/2016 06:01 AM, Eric Wasylishen wrote:
Quote:
Hi,
I agree completely, OS X relative mode should match Linux and Windows
and give raw input.
A way to opt-in to acceleration would be nice as well, but I think that
would be a separate new feature.

I sent a patch to the list a while ago with a first stab at implementing
this:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-October/096672.html

Haven't looked at the patch since 2014. Maybe I should have filed it in
the bug tracker, oops.
Anyway, if there is interest I could try resurrecting and cleaning up
this patch.
Cheers,
Eric

On Sun, Mar 13, 2016 at 5:35 PM, Daniel Gibson
<mailto:> wrote:

    Hi,

    I recently tried playing a FPS game using SDL2 on OSX, using a
    normal mouse, and it was pretty bad: Aiming was almost impossible
    because the mouse input is accelerated. (The common workaround
    currently seems to be using thirdparty tools like to disable mouse
    acceleration system-wide.)
    On Windows and Linux you get raw mouse input in relative mode, which
    IMHO is the right thing to do - however "slime" of #SDL argued that
    when using a trackpad, accelerated mouse input is preferable even in
    relative mode.
    Note however that the current behavior is inconsistent with Windows
    and Linux and if raw mouse input on OSX were implemented, one could
    still use SDL_HINT_MOUSE_RELATIVE_MODE_WARP to get the old/current
    behavior.

    I found http://forums.libsdl.org/viewtopic.php?t=9969 which
    describes a way to get raw mouse input on OSX, does anyone know why
    SDL2 doesn't do that? Does the approach have any problems or was it
    just not implemented because no one got around to do it?

    There's also a really old bugreport:
    https://bugzilla.libsdl.org/show_bug.cgi?id=445

    Any thoughts on the topic? :-)

    Cheers,
    Daniel
    _______________________________________________
    SDL mailing list


    <mailto:
    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org