Re: Why do I get so few points(SDL_MOUSEMOTION) when I move fast

Eric Wasylishen <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAG=nYAaK2M0ub5eieL7QRM_i2M7cQnf=BKH8n=EXaSEZ_0iCFQ@mail.gmail.com>
Hi,
Try using relative mouse mode (SDL_SetRelativeMouseMode(SDL_True); ) -
this requests raw mouse events, with no acceleration and at the full
rate your mouse can send them. This is implemented on Windows, and I
think, Linux.

What OS / SDL version / mouse model was this on? The maximum event
rate depends on the mouse.
Eric

On Tue, Sep 13, 2016 at 9:20 AM, Alex Barry <[email protected]> wrote:
> I think most apps interpolate with curves, which isn't too bad if you have
> at least 3 points.  I've seen this behaviour for years, and I don't think
> it's an issue with SDL.
>
> On Tue, Sep 13, 2016 at 11:11 AM, sgrsgsrg <[email protected]> wrote:
>>
>> I think it's limited by what windows sends with its API, maybe it's locked
>> on the main display frequency? If you want more points you'll need to
>> interpolate between them. Like when you draw with a painting program, they
>> all use some sort of bezier interpolation to make nice curves, otherwise it
>> would looks like multiple segments linked to each other.
>>
>> _______________________________________________
>> SDL mailing list
>> [email protected]
>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>>
>
>
> _______________________________________________
> SDL mailing list
> [email protected]
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.