[MV]Gamepads on Linux and Windows D-Input?

Hi there!

I searched around the internet, but couldn't find any info about these matters.

Anyone here have some experience on developing for Linux with MV, the gamepads works naturally, or do I need to take any additional step to make them work?

And about the old D-Input? There's any know way to implement support for it on MV?
Thread bump.

Isn't there anyone here that ported to Linux?
So that people have an easy reference to it, I shall place my message to you about gamepads in Linux here as well.

I tested three different controllers (old Logitech, retrousb adapter for NES/SNES controllers and XBox360 controller) with a title I'm working in Linux Mint 18 and all three worked perfectly. The Logitech has some input lag on the D-Pad, but it's very old, probably over a decade, so I chalk that up more to outdated hardware than I do the software. The other two controllers were very responsive and worked as intended. The NES controller, even with only 4 working inputs plus the D-Pad, worked perfectly. Now, if you needed more for custom things, that would require a separate plugin for that and a controller with more inputs, but that it worked beautifully.

As for D-Input, I can't weigh in on that, only to say that because D-Input is so old and it's primarily DirectX, it probably won't work very well in Linux and even if it does, MV might not support D-Input because of the way its coded. Ace and earlier versions could, but if you can find a way to get D-Input to work through Javascript, then it could work.
Thanks for posting here too @djDarkX !

As for D-Input, I can't weigh in on that, only to say that because D-Input is so old and it's primarily DirectX, it probably won't work very well in Linux and even if it does, MV might not support D-Input because of the way its coded. Ace and earlier versions could, but if you can find a way to get D-Input to work through Javascript, then it could work.

Actually, D-Input is really for Windows only. Linux uses a different library to "recognize" controllers (I think it's related to OpenGL), and if I'm not wrong, it makes no distinction at all from old D-Input and new X-Input joysticks.

I want to get the D-input working for Windows port only, because the majority of controllers sold here on my country are still D-Input type.

I'll try to research for javascript libraries that uses D-Input calls, or maybe, that translates X-Input calls into D-Inputs. Thanks again! 😉
I found this API, link below, that support both X-Input and D-Input:

https://www.smashingmagazine.com/2015/11/gamepad-api-in-web-games/

But I don't have any idea on how to implement this on MV, anyone tried this already?
Pretty sure the gamepad API works in MV... On windows, I can use my old controller with it.
You shouldn't have to implement it.
Pretty sure the gamepad API works in MV... On windows, I can use my old controller with it.
You shouldn't have to implement it.

Your gamepad is X-Input, or D-Input?
D-input, I think. I read an article about the Gamepad API on Mozilla, and it said that even old controllers are supported.
D-input, I think. I read an article about the Gamepad API on Mozilla, and it said that even old controllers are supported.

What's the name of your controller? Can you send a picture of it?

I tried to use two different models of D-Input gamepads on MV, and they didn't worked.

Original thread: https://forums.rpgmakerweb.com/threads/mv-gamepads-on-linux-and-windows-d-input.97803/