I can select the Controller (Gamepad for Xbox 360) [Gamestop equivalent XBOX 360 BB-070] and configure the Joystick settings but the #include "JoystickDriver.c" does not seem to support this platform using the Arduino UNO. It errors out during compilation.

Is it even possible to use the Controller (Gamepad for Xbox 360) with an Arduino UNO?

Richard

Sun Sep 08, 2013 12:32 am

Ernest3.14

Professor

Joined: Sat May 18, 2013 1:24 pmPosts: 271Location: Olympia, WA

Re: What driver for XBOX 360 Joystick Controller & Arduino?

I think "JoystickDriver.c" only supports DirectInput. XBox controllers use XInput.

Really? Then what does the little switch in the back of the FTC joysticks do...

In HID devices, every control has an ID called Usage. When a control is being manipulated, the HID device will generate activity reports that specify which Usages the reports are for and what the values are. For example, a real Xbox controller will report a device descriptor with the following info:

In this case, UsagePage=1, Usage=5 means Generic Desktop Page/GamePad. It also reports there are 6 analog values, probably 2 for the left stick axes, 2 for the right stick, and 2 for the two triggers. For example, the Xbox left stick X-axis will generate reports with values for Usage 0x30 (X) and the left stick Y axis will generate values for Usage 0x31 (Y). The left stick is the same for both Xbox and Logitech. But the right stick has different mappings between Xbox and Logitech. I don't have the Logitech with me right now so I can't check its descriptor). The switch on the back is to tell the Logitech gamepad to generate reports that maps the controls similar to the Xbox controllers.

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum