Open batbsv opened 3 years ago
Another way- chande library https://github.com/batbsv/Arduino_Joystick_Keyboard_UARTengine
Is this related to Issue #44 ?
yes. additional, device visible in usb game control
Maybe try using MMJOY2?
this issue fixed.work properly mmjoy2 not have source code, and project freezed.
Thank you for this.
I can confirm this modification works, and makes the Rudder and Throttle present as two throttle inputs in windows Game Controllers panel:
I'm using this code to create the joystick with 8 analog inputs:
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,
JOYSTICK_TYPE_JOYSTICK, 24, 0, // 24 buttons, no hat switch
true, true, true, true, true, true, // X, Y, Z, Xr, Yr, Zr
true, true, false, false, false); // Rud, Thr, Acc, Brake, Steer
This is providing a custom controller into Microsoft Flight Simulator 2020 (MSFS 2020). The two Throttles appear as 'slider' inputs Slider X and Slider Y.
Thank you @MHeironimus for the excellent library.
No idea how or why this works but I can confirm that this fix works in DCS as well, thanks a lot!
(Inverted slider2 is intentional as I was troubleshooting)
仅在win 10 pro上测试
操纵杆_操纵杆(操纵杆_默认_报告_ID,操纵杆类型操纵杆,128,2,真,//x真,//y真,//z真,//rx真,//ry真,//rztrue,//rudder (Slider2)true,//throttle (Slider1)false,//accel假,//刹车假//转向 );
文件操纵杆. cpp-旧的if (includeRudder == true) {//用法(方向舵)tempHidReportDescriptor[hidreportdescriptorsize++]= 0x 09;tempHidReportDescriptor[hidreportdescriptorsize++]= 0x ba; }
if (includeRudder == true) { // USAGE (Rudder) tempHidReportDescriptor[hidReportDescriptorSize++] = 0x09; tempHidReportDescriptor[hidReportDescriptorSize++] = 0xBB; change BA to BB }
幻灯片2现已推出
After I changed the contents of the Jostick.cpp file, both throttles can be displayed in the game controller, but slider2 is not recognized in the DCS
tested on win 10 pro only
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, JOYSTICK_TYPE_JOYSTICK, 128, 2, true,//x true, //y true,//z true,//rx true,//ry true,//rz true, //rudder (Slider2) true, //throttle (Slider1) false, //accel false, //brake false //steering );
file Joystick.cpp ---------------old if (includeRudder == true) { // USAGE (Rudder) tempHidReportDescriptor[hidReportDescriptorSize++] = 0x09; tempHidReportDescriptor[hidReportDescriptorSize++] = 0xBA; }
Slider2 available now