Cockpitbuilders.com

sign up .

December 08, 2019, 12:28:40 am

Login with username, password and session length
31 Guests, 1 User
Members
  • Total Members: 3885
  • Latest: wmens
Stats
  • Total Posts: 53581
  • Total Topics: 7171
  • Online Today: 131
  • Online Ever: 427
  • (December 01, 2019, 09:15:11 am)
Users Online
Users: 1
Guests: 31
Total: 32

COUNTDOWN TO WF2020


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

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

September 30, 2019, 01:20:28 pm #1 Last Edit: September 30, 2019, 01:23:22 pm by 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.

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