Hi guys finally me and a my friend we was able to manage joytokey to mapping the switch for flaps.
In the first attempt I wrong the contacts of the side 2 (L2). Then, with my friend, I corrected the contacts sequence (see the images below).
Now the flaps switch works fine! :good:
I post the correct images, the correct thruth table and the joytokey's .cfg I use now for the flaps. There are the buttons for landing gear also (buttons #18 and #19).
[General]
FileVersion=57
NumberOfJoysticks=3
NumberOfButtons=32
DisplayMode=2
UseDiagonalInput=0
UsePOV8Way=0
Threshold=20
Threshold2=20
KeySendMode=0
SoundFile=
ImageFile=
[Joystick 3]
Button20=7, 6, 0, 56:0:0:0, 0:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 20
Button21=7, 8, 0, 56:0:0:0, 0:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 20
Button22=7, 6, 0, 0:0:0:0, 56:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 20
Button23=7, 8, 0, 46:0:0:0, 0:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 200
Button24=7, 6, 0, 46:0:0:0, 0:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 20
Button25=7, 6, 0, 46:0:0:0, 0:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 200
Button18=7, 6, 0, 47:0:0:0, 47:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 200
Button19=7, 6, 0, 47:0:0:0, 47:0:0:0, 0:0:0:0, 0:0:0:0, 95, 100, 0.000, 0, 0, 200
Hope this helps who wish to build a switch flaps like this.
Ciao!
Marco