Re: How to distinguish the input from two identical joysticks

Jose Regalado <[email protected]> Mon, 28 Oct 2013 14:42:28 -0430
Newsgroups gmane.games.flightgear.general
Message-ID <CAG7DY1hd_kw-N-idM1nJ7QPPUx6yPa=ho6id59ru8gvpYnOmWA@mail.gmail.com>
--===============2336755527215169594==
Content-Type: multipart/alternative; boundary=20cf3079b5f290b70e04e9d1e18b

--20cf3079b5f290b70e04e9d1e18b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

run js_demo and view what happens.

js0 and js1 you can set each one separately


2013/10/28 Nicola Quargentan <[email protected]>

> Hi,
>
> I had two identical bodnar joystick bu0836: one for the encoders of nav1
> and nav2 and the other for the radio stack.
> Here is the xml file for the first joystick
>
>
> <PropertyList>
>
>   <name>Leo Bodnar BU0836X Interface</name>
>
>   <!--Encoder1A -->
>   <button>
>    <name>Encoder1A</name>
>    <number>
>     <unix>0</unix>
>     <mac>0</mac>
>     <windows>0</windows>
>    </number>
>    <desc>Encoder1 fase A</desc>
>    <repeatable>true</repeatable>
>    <binding>
>     <command>property-adjust</command>
>     <property>/instrumentation/nav/radials/selected-deg</property>
>     <step type=3D"double">-1.0</step>
>    </binding>
>   </button>
>
>   <button>
>    <name>Encoder1B</name>
>    <number>
>     <unix>1</unix>
>     <mac>1</mac>
>     <windows>1</windows>
>    </number>
>    <desc>Encoder1 fase B</desc>
>    <repeatable>true</repeatable>
>    <binding>
>     <command>property-adjust</command>
>     <property>/instrumentation/nav/radials/selected-deg</property>
>     <step type=3D"double">+1.0</step>
>    </binding>
>   </button>
>
>   </PropertyList>
>
> But how do I distinguish the second joystick? Is there any option to
> enter for example the serial number of the joystick?
> Any ideas?
>
> Thanks.
>
> --
> Nicola Quargentan
>
>
> -------------------------------------------------------------------------=
-----
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register =
>
> http://pubads.g.doubleclick.net/gampad/clk?id=3D60135991&iu=3D/4140/ostg.=
clktrk
> _______________________________________________
> Flightgear-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/flightgear-users
>



--=20
Jos=E9 Luis Regalado
bashman
Linux User n=BA 280381

--20cf3079b5f290b70e04e9d1e18b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">run js_demo and view=A0what happens.=A0<br><div><br></div>=
<div>js0 and js1 you can set each one separately<br></div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2013/10/28 Nicola Quarg=
entan <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<br>
I had two identical bodnar joystick bu0836: one for the encoders of nav1<br=
>
and nav2 and the other for the radio stack.<br>
Here is the xml file for the first joystick<br>
<br>
<br>
&lt;PropertyList&gt;<br>
<br>
=A0 &lt;name&gt;Leo Bodnar BU0836X Interface&lt;/name&gt;<br>
<br>
=A0 &lt;!--Encoder1A --&gt;<br>
=A0 &lt;button&gt;<br>
=A0 =A0&lt;name&gt;Encoder1A&lt;/name&gt;<br>
=A0 =A0&lt;number&gt;<br>
=A0 =A0 &lt;unix&gt;0&lt;/unix&gt;<br>
=A0 =A0 &lt;mac&gt;0&lt;/mac&gt;<br>
=A0 =A0 &lt;windows&gt;0&lt;/windows&gt;<br>
=A0 =A0&lt;/number&gt;<br>
=A0 =A0&lt;desc&gt;Encoder1 fase A&lt;/desc&gt;<br>
=A0 =A0&lt;repeatable&gt;true&lt;/repeatable&gt;<br>
=A0 =A0&lt;binding&gt;<br>
=A0 =A0 &lt;command&gt;property-adjust&lt;/command&gt;<br>
=A0 =A0 &lt;property&gt;/instrumentation/nav/radials/selected-deg&lt;/prope=
rty&gt;<br>
=A0 =A0 &lt;step type=3D&quot;double&quot;&gt;-1.0&lt;/step&gt;<br>
=A0 =A0&lt;/binding&gt;<br>
=A0 &lt;/button&gt;<br>
<br>
=A0 &lt;button&gt;<br>
=A0 =A0&lt;name&gt;Encoder1B&lt;/name&gt;<br>
=A0 =A0&lt;number&gt;<br>
=A0 =A0 &lt;unix&gt;1&lt;/unix&gt;<br>
=A0 =A0 &lt;mac&gt;1&lt;/mac&gt;<br>
=A0 =A0 &lt;windows&gt;1&lt;/windows&gt;<br>
=A0 =A0&lt;/number&gt;<br>
=A0 =A0&lt;desc&gt;Encoder1 fase B&lt;/desc&gt;<br>
=A0 =A0&lt;repeatable&gt;true&lt;/repeatable&gt;<br>
=A0 =A0&lt;binding&gt;<br>
=A0 =A0 &lt;command&gt;property-adjust&lt;/command&gt;<br>
=A0 =A0 &lt;property&gt;/instrumentation/nav/radials/selected-deg&lt;/prope=
rty&gt;<br>
=A0 =A0 &lt;step type=3D&quot;double&quot;&gt;+1.0&lt;/step&gt;<br>
=A0 =A0&lt;/binding&gt;<br>
=A0 &lt;/button&gt;<br>
<br>
=A0 &lt;/PropertyList&gt;<br>
<br>
But how do I distinguish the second joystick? Is there any option to<br>
enter for example the serial number of the joystick?<br>
Any ideas?<br>
<br>
Thanks.<br>
<br>
--<br>
Nicola Quargentan<br>
<br>
---------------------------------------------------------------------------=
---<br>
October Webinars: Code for Performance<br>
Free Intel webinars can help you accelerate application performance.<br>
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most fr=
om<br>
the latest Intel processors and coprocessors. See abstracts and register &g=
t;<br>
<a href=3D"http://pubads.g.doubleclick.net/gampad/clk?id=3D60135991&amp;iu=
=3D/4140/ostg.clktrk" target=3D"_blank">http://pubads.g.doubleclick.net/gam=
pad/clk?id=3D60135991&amp;iu=3D/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Flightgear-users mailing list<br>
<a href=3D"mailto:[email protected]">Flightgear-users@=
lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/flightgear-users" t=
arget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/flightgear-us=
ers</a><br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Jos=E9 Luis =
Regalado<br>bashman<br>Linux User n=BA 280381<br><br>
</div>

--20cf3079b5f290b70e04e9d1e18b--


--===============2336755527215169594==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
--===============2336755527215169594==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

--===============2336755527215169594==--