Reading Logitech F710 gamepad on the Teensy 3.6

Status
Not open for further replies.
Hi everyone,

What i want to do is to read buttons and joysticks states of my Logitech F710 gamepad in order to use it as a remote control for a little robot.

I've found that i had to use the USB host port on the T3.6 to connect the gamepad and use the USBHost_t36 library to read the device inputs.
So i connect my gamepad on the Teensy 3.6, i load the example sketch joystick.ino (in USBHost_t36/examples/Serial/Joystick/) and get this output :
Lnz3EH.jpg

Good news is the gamepad is recognized. Bad news is the gamepad is immediately disconnected and i cannot read the buttons/sticks state as it is intended to by the sketch.
So my first simple question is... why ?

I found a similar topic which suggests that this controller can be read successfully : Using Teensy 3.6 as USB Host for F710

Thank you !
 
OK!

I answer to myself.

On the controller there is a slide button that switch from xinput to dinput.

The gamepad must be on dinput to work properly!
 
Status
Not open for further replies.
Back
Top