Cockpitbuilders.com
Arduino Projects => Sketches - => Topic started by: GyverX on September 30, 2019, 12:37:34 PM
Well Im back into Arduino again. but this time I am looking for a sample script.
What I am needing to do it take a Micro and load the Lib for a windows controller.
I did this a few years ago but this time I am needing the sample scrip for potentiometers. (2 pot)
What I am wanting to do is re wire my Siatek yoke Pots to an Arduino Micro. I have everything I need Hardware wise I just dont have the code. I have looked all over the place but nothing really gives a sample code to go off of. I did this once with a shifter for American Truck Simulator but it was just switches, or buttons on how the code saw it.
This is for X-Plane so, Yes I need to keep this in windows under a windows controller. That way I have access to the internal responsive curve.
I have already been to this site
https://www.instructables.com/id/Arduino-LeonardoMicro-as-Game-ControllerJoystick/
from MatthewH on instructables but gives no sample script to work from just API names.
Can anyone help out?
Thanks
GyverX
Is this so Windows sees the controller as a true HID device?
If so, you might be able to reverse-engineer the libraries for the TeensyDuino Flight Sim Controls.
Quote from: RayS on September 30, 2019, 01:20:28 PMIs this so Windows sees the controller as a true HID device?
If so, you might be able to reverse-engineer the libraries for the TeensyDuino Flight Sim Controls.
Yes, I have the Libs for the board I just dont have the script to tell the pins and what not, Plus I have never done one with pots just buttons and I hacked my way around that, Seeing how this is a Yoke I want to be able to get the most out of the script as I can