<div dir="ltr"><div>> The advantage of using SDL is that we don't have to worry about how to</div><div>> map any joystick to the required xinput layout, because SDL does that</div><div>> for us. That advantage only applies to xinput.</div>
<div><br></div><div>Not really true, you can do it other way as well</div><div><a href="https://wiki.libsdl.org/MigrationGuide?action=fullsearch&context=180&value=gamecontroller&titlesearch=Titles">https://wiki.libsdl.org/MigrationGuide?action=fullsearch&context=180&value=gamecontroller&titlesearch=Titles</a><br>
</div><div>this is off course if controller is mapped in SDL (which is happening a lot lately since configurations made in steam bpm are reported directly to SDL2 AFAIK) . </div><div>- you can always request axis/button id by name. </div>
<div>- you can always load custom simple SDL string mapping for your controller</div><div><br></div><div>That is one great thing of SDL, it always works both ways. It provides low (device) and high level (just works) access to everything</div>
<div><br></div><div>with regards,</div><div>wh1sper_123</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 July 2014 22:58, Vincent Povirk <span dir="ltr"><<a href="mailto:madewokherd@gmail.com" target="_blank">madewokherd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Jul 28, 2014 at 12:50 PM, Stefan Dösinger<br>
<<a href="mailto:stefandoesinger@gmail.com">stefandoesinger@gmail.com</a>> wrote:<br>
> Using SDL is probably<br>
> fine if there are good arguments that support its use and the<br>
> Wine-internal layering makes sure that xinput_*.dll, dinput<br>
> and winmm see the same joystick configuration. You could think about<br>
> calling SDL from winex11.drv or dinput.<br>
<br>
</div>SDL has two different api's, a joystick api and a game controller api.<br>
They roughly correspond to dinput (generic joystick support) and<br>
xinput (support for gamepads with a specific button layout)<br>
respectively.<br>
<br>
The advantage of using SDL is that we don't have to worry about how to<br>
map any joystick to the required xinput layout, because SDL does that<br>
for us. That advantage only applies to xinput.<br>
</blockquote></div><br></div>