ArduinoJoystickLibrary icon indicating copy to clipboard operation
ArduinoJoystickLibrary copied to clipboard

Gamepad connection to games

Open fooff opened this issue 4 years ago • 4 comments

Description of Issue

Hello, i used your library to create a gamepad that correctly works (as windows correctly detect it and shows joystick movement and button press). However, i tried with many different game, and no one is able to recognize arduino as a gamepad yet. Is there any particular process i have to follow in order for games to recognize a custom gamepad? Could the fact that i'm using the Keyboard library be important for this issue?

PS: to be fair, Steam Big-Picture mode let me map each individual input (e.g it asks me to for the X axis signal and i have to move the joystick, it will then save it as "X axis" in its own controller) in this way i can make it works with steam games. So i guess i need something similar for every game (maybe an external software?)

Technical Details

  • Arduino Board: Micro
  • Host OS: Windows 10
  • Arduino IDE Version: 1.8.12

Sketch File that Reproduces Issue

#include <Joystick.h> Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID, JOYSTICK_TYPE_GAMEPAD, 32, 0, true, true, false, false, false, false, false, false, false, false, false);

Sketch file goes here (if applicable)
Dont think it's relevant, i'll upload if necessary

Wiring Details

Not relevant

fooff avatar Apr 30 '20 11:04 fooff

I have the same issue, please post here if you solved the issue.

kingfisher09 avatar May 09 '20 16:05 kingfisher09

sadly not yet, for now i surrendered to use a WASD configuration instead

fooff avatar May 21 '20 18:05 fooff

You just need to use an Xinput wrapper like x360ce for your games. Look up how to use it online and it should work like a charm!

TheUNkilled123 avatar May 28 '20 12:05 TheUNkilled123

it should work with steam

VkTheProgrammer17 avatar Jan 23 '21 17:01 VkTheProgrammer17