XInput2

(redirected from IRC)

Hi, I’ve been following developments with the input subsystems in both
Xorg and SDL, and wondered what the plans were for XInput2 integration?
Is anybody working on this? IMHO it would probably be as well to make
SDL-1.3/2.0 XInput2 only and drop the “core” input support entirely, and
I was very tempted the other day to code it up myself, but I thought I’d
better check to see what the plans are, and what work is ongoing first,
especially since I’m going to be away for a few weeks from this
Thursday.

There needs to be a way for SDL to figure out if XInput2 is available.
If you can’t, there’ll be problems.------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/

I’d welcome a patch, but as Nate said, you need to support the older
XInput path for older servers.

I haven’t been following it closely, what are the advantages of XInput2?On Mon, Dec 20, 2010 at 6:22 AM, Steven Newbury wrote:

(redirected from IRC)

Hi, I’ve been following developments with the input subsystems in both
Xorg and SDL, and wondered what the plans were for XInput2 integration?
Is anybody working on this? ?IMHO it would probably be as well to make
SDL-1.3/2.0 XInput2 only and drop the “core” input support entirely, and
I was very tempted the other day to code it up myself, but I thought I’d
better check to see what the plans are, and what work is ongoing first,
especially since I’m going to be away for a few weeks from this
Thursday.


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


? ? -Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Multi-touch support for instance.

  • JiangOn Thu, Dec 30, 2010 at 8:28 AM, Sam Lantinga wrote:

I’d welcome a patch, but as Nate said, you need to support the older
XInput path for older servers.

I haven’t been following it closely, what are the advantages of XInput2?

Looking through the 1.3 sources I found SDL_TouchFingerEvent and
SDL_TouchButtonEvent. Now I’m asking myself: XInput2 actually
categorized input devices into “groups”. Eg. you can have 2 mice control
cursor 1, and 2 other mice control cursor 2. Naturally one would think
about implementing XInput2 for mice, by having it create
SDL_MouseButton/MotionEvents. But then, how would SDL_Touch* ever come
to play on Linux?

I think this needs some more planning, if it hasn’t been done already.
It would be quite contra-productive, if on one OS you get mouse events
from multiple “touch-fingers”, while on the other OS you get TouchEvents.

What comes to mind would be to send every mouse event that is not from
the “input device id 0” as Touch events, but then again, how to handle
wheel-events in this situation?On 12/30/2010 09:57 AM, Jjgod Jiang wrote:

On Thu, Dec 30, 2010 at 8:28 AM, Sam Lantinga wrote:

I’d welcome a patch, but as Nate said, you need to support the older
XInput path for older servers.

I haven’t been following it closely, what are the advantages of XInput2?

Multi-touch support for instance.

Nevermind, I just had not yet seen XInput 2.1 and the multitouch event
protocol in Linux when I wrote that mail…On 02/02/2011 11:08 AM, Blub wrote:

On 12/30/2010 09:57 AM, Jjgod Jiang wrote:

On Thu, Dec 30, 2010 at 8:28 AM, Sam Lantinga wrote:

I’d welcome a patch, but as Nate said, you need to support the older
XInput path for older servers.

I haven’t been following it closely, what are the advantages of XInput2?

Multi-touch support for instance.

Looking through the 1.3 sources I found SDL_TouchFingerEvent and
SDL_TouchButtonEvent. Now I’m asking myself: XInput2 actually
categorized input devices into “groups”. Eg. you can have 2 mice control
cursor 1, and 2 other mice control cursor 2. Naturally one would think
about implementing XInput2 for mice, by having it create
SDL_MouseButton/MotionEvents. But then, how would SDL_Touch* ever come
to play on Linux?
(…)

Hi guys.

Xinput 2 support has been landed in SDL.To begin with, we have support
for relative mouse motion events inside X11 environment (Linux).Feel
free to test it and report bugs.
I will continue with implementing touch support

Best Regards
Dimitris Zenios

11.7 +X11_CheckXInput2(_THIS)
this function does not always return a valueAm 30.05.2012 um 18:06 schrieb Dimitris Zenios <dimitris.zenios at gmail.com>:

Hi guys.

Xinput 2 support has been landed in SDL.To begin with, we have support
for relative mouse motion events inside X11 environment (Linux).Feel
free to test it and report bugs.
I will continue with implementing touch support

Best Regards
Dimitris Zenios


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

Saw it and fixed it.The good think is that the return value is not
checked for now :)On Wed, May 30, 2012 at 7:21 PM, Martin Gerhardy <martin.gerhardy at gmail.com> wrote:

11.7 +X11_CheckXInput2(_THIS)

this function does not always return a value

Am 30.05.2012 um 18:06 schrieb Dimitris Zenios <@Dimitris_Zenios>:

Hi guys.

Xinput 2 support has been landed in SDL.To begin with, we have support
for relative mouse motion events inside X11 environment (Linux).Feel
free to test it and report bugs.
I will continue with implementing touch support

Best Regards
Dimitris Zenios


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


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

Continue on the work with Xinput2, multitouch support has
landed.Please test it and report bugs.

Dimitris ZeniosOn Wed, May 30, 2012 at 7:29 PM, Dimitris Zenios <@Dimitris_Zenios> wrote:

Saw it and fixed it.The good think is that the return value is not
checked for now :slight_smile:

On Wed, May 30, 2012 at 7:21 PM, Martin Gerhardy <martin.gerhardy at gmail.com> wrote:

? ? 11.7 +X11_CheckXInput2(_THIS)

this function does not always return a value

Am 30.05.2012 um 18:06 schrieb Dimitris Zenios <@Dimitris_Zenios>:

Hi guys.

Xinput 2 support has been landed in SDL.To begin with, we have support
for relative mouse motion events inside X11 environment (Linux).Feel
free to test it and report bugs.
I will continue with implementing touch support

Best Regards
Dimitris Zenios


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


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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On 31/05/12 14:29, Dimitris Zenios wrote:

Continue on the work with Xinput2, multitouch support has
landed.Please test it and report bugs.

Dimitris Zenios On Wed, May 30, 2012 at 7:29 PM, Dimitris Zenios
<dimitris.zenios at gmail.com> wrote:

Saw it and fixed it.The good think is that the return value is
not checked for now :slight_smile:

On Wed, May 30, 2012 at 7:21 PM, Martin Gerhardy <martin.gerhardy at gmail.com> wrote:

11.7 +X11_CheckXInput2(_THIS)

this function does not always return a value

Am 30.05.2012 um 18:06 schrieb Dimitris Zenios
<dimitris.zenios at gmail.com>:

Hi guys.

Xinput 2 support has been landed in SDL.To begin with, we have
support for relative mouse motion events inside X11 environment
(Linux).Feel free to test it and report bugs. I will continue
with implementing touch support

I’m really glad you’re working on this! I meant to get back to it,
after bringing it up some time ago, but I’ve just had too many things
on the go. Are you also implementing multiple keyboard support?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/Qe6AACgkQGcb56gMuC63g8wCguWGXGE9cgwAT/rKuMvGhSKvQ
1U0AnRapd3vVbej3C0P5Coi8+q6Utkb1
=yBQw
-----END PGP SIGNATURE-----