Welcome to Cockpitbuilders.com. Please login or sign up.

March 28, 2024, 03:25:13 AM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
112 Guests, 0 Users
Members
Stats
  • Total Posts: 59,639
  • Total Topics: 7,853
  • Online today: 130
  • Online ever: 582
  • (January 22, 2020, 08:44:01 AM)
Users Online
Users: 0
Guests: 112
Total: 112

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Windows Game Controller Micro

Started by GyverX, September 30, 2019, 12:37:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GyverX

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

RayS

#1
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.

Ray Sotkiewicz

GyverX

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

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate