Receive mouse input in the background

Hi all,

I am looking for a method to receive mouse input when the mouse is outside
all SDL windows, but I haven’t been able to find anything so far.

Does such a method exist?

Thanks

Hi all,

I am looking for a method to receive mouse input when the mouse is outside
all SDL windows, but I haven’t been able to find anything so far.

Does such a method exist?

Thanks


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

You could probably do something like reading from /dev/mice
Unless of course you are on Windows. I think there is probably another way
to do it in Windows, but I don’t know it. I don’t think you are going to do
it with pure SDL though.
–Philip RushikOn Fri, Jan 3, 2014 at 9:20 AM, Stefanos A. wrote:

This is certainly possible to implement outside SDL and, indeed, I’ve
already done so using raw input on Windows, xinput2 on Linux and raw HID
input on Mac OS X.

I wanted to know if this is possible using SDL so I can add it to my SDL2
backend. It’s not terribly important but it would be useful to have under
some circumstances.

2014/1/3 Philip Rushik >

On Fri, Jan 3, 2014 at 9:20 AM, Stefanos A. <@Stefanos_A> wrote:

Hi all,

I am looking for a method to receive mouse input when the mouse is
outside all SDL windows, but I haven’t been able to find anything so far.

Does such a method exist?

Thanks


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

You could probably do something like reading from /dev/mice
Unless of course you are on Windows. I think there is probably another way
to do it in Windows, but I don’t know it. I don’t think you are going to do
it with pure SDL though.
–Philip Rushik


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