ArduinoJoystickLibrary icon indicating copy to clipboard operation
ArduinoJoystickLibrary copied to clipboard

Button issue

Open BB6560 opened this issue 4 years ago • 3 comments

Description of Issue

I'm trying to build a controller for Microsoft Flight Simulator X. I have buttons and potentiometers. My issue is that if I press and hold a button down the simulator just gets a short pulse signal instead of a long one. For example if I bind braking to a button and hold it down, it will just brake for a moment. But the USB Game Controller panel in Windows can see that the button is still pressed down. (So it gets the whole pulse.) Maybe the problem is with my simulator, but if I plug in a PS3 controller it works properly, with the whole signal length. Have you got any idea how could I fix it?

Technical Details

  • Arduino Leonardo
  • Windows 10
  • Microsoft Flight Simulator X (FSX)

Wiring Details

Arduino's internal pullup resistors used at the buttons. The button pulls the digital pin down to GND.

##Code FSXController.zip

BB6560 avatar Oct 03 '20 20:10 BB6560

Try using MMJOY2, it is much easier to use with many more buttons because it can read rotary encoders differently. However, you are limited to 6 encoders and 8 axes...

PS: Don't forget the diodes!!

theblackhawk76 avatar Jan 26 '21 07:01 theblackhawk76

you could use x360ce

VkTheProgrammer17 avatar Feb 07 '21 18:02 VkTheProgrammer17

it would recognize the xbox controller allowing you for better detection btw, are you using breadboard? if yes then it might just be fumbling a little

VkTheProgrammer17 avatar Feb 07 '21 18:02 VkTheProgrammer17