Il 29/10/2013 06:17, Melchior FRANZ ha scritto: > On 10/28/2013 07:03 PM, Nicola Quargentan wrote: >> I had two identical bodnar joystick bu0836: one for the encoders of nav1 >> and nav2 and the other for the radio stack. > [...]> But how do I distinguish the second joystick? Is there any option to >> enter for example the serial number of the joystick? > > If it's under Linux, then you find solutions here (search for LD_PRELOAD): > > http://members.aon.at/mfranz/bu0836a.html > > Haven't tested it in a while, though, but it should still work.
Thanks for your answer and thanks for having written this code for bodnar devices :) The js_serial_preload.so library compiles out of the box, but it seems that does not work, or at least the ioctl is not intercepted: LD_PRELOAD=/usr/local/lib/js_serial_preload.so ./lsjs /dev/input/js0: "Saitek Saitek Pro Flight Yoke" (7 axes, 23 buttons) /dev/input/js1: "Leo Bodnar BU0836X Interface" (2 axes, 32 buttons) /dev/input/js2: "Leo Bodnar BU0836X Interface" (2 axes, 32 buttons) No change in names. -- Nicola Quargentan ------------------------------------------------------------------------------ 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 _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users