Problem using xinput with IDE 2.0.4

DeanS

Member
Hi, i'm new to the teensy 4.0 and the IDE. I am trying to make the teensy 4.0 to emulate a xbox controller. I have the arduino 2.0.4 IDE with teensyduino 1.58. I installed the xinput from the library manager and the teensy boards from the boards manager. I can see all the usb types for the board listed but nothing for the xinput. I've tried with include xinput.h with the different types but still cannot get it to register as a controller.
I have done a couple programs as a keyboard and as a keyboard,mouse,joystick and all worked.
Can someone please give me some help or sugestions on setting up an xbox controller on IDE 2.0.4?
Thanks for any assistance.
 
I have followed the instructions over and over. Installed older 1.x versions and again nothing.
 
You should be able to see it, if you copy the boards.txt out of this project into the correct folder to the replace the current one.
For example it would on my machine for 1.8.19 install go into: C:\arduino-1.8.19\hardware\teensy\avr

Note: With Arduino 2.x, there was an issue that the updated boards.txt stuff may not show up. There is/was a workaround to fix it. I put some notes about it in the first post of the thread: https://forum.pjrc.com/threads/53548-Arduino-CLI-And-IDE-now-Released-Teensy-Supported!

But again I have never tried this stuff out.
 
Just installed the Xinput library according to the instructions here: [url]https://github.com/dmadison/ArduinoXInput_Teensy[/URL].
The other step that must be done is emptying the arduino-ide folder that has been described here.
Then you will see USB type: Xinput listed at the bottom:

Arduino 2.0.4 plus Xinput.jpg

Hope this helps,
Paul
 
Back
Top