I just wondered if it is a reliable way to get information about the vendor (maybe only between the 3 major console vendors) about the connected gamepad via it's ID field.
As far as I read the field is Browser dependend, but in RMMZ it seems to have the same output as in Chrome. The only problem I could see is if it is also operating system dependend.
In my case I could tell, that it is a controller made for a Nintendo console, because it has the name Joy-Con in it.
As far as I could figure out Vendor 057e is "Nintendo" and 054c probably is "Sony" and XBox Controllers might not even contain the Vendor Id, but only the String XInput.
Sadly I can only tests this out with Nintendo controllers.
But the problem that I really want to solve is, that this specific part of Input.gamepadMapper is correct at least for XBox, but wrong for other controllers:
Input.gamepadMapper = {
0: "ok", // A
1: "cancel", // B
2: "shift", // X
3: "menu", // Y
For example as far as I have read on the internet about the standard functionalities of buttons on a Playstation controller it should be:
Input.gamepadMapper = {
0: "cancel", // Cross
1: "ok", // Circle
2: "menu", // Square
3: "shift", // Triangle
and on a Nintendo Controller it should be:
Input.gamepadMapper = {
0: "cancel", // B
1: "ok", // A
2: "shift", // Y
3: "menu", // X
and I really like to remap these as soon as the controller is connected, so that the player does not need to struggle with a wrong configuration until changing it, e.g. in the options menu.
If it is not possible, reliable to do that, than I guess I just have to add some kind of configuration to the options menu.
Does anyone of you have enough experience making RPG Maker Games considering GamePads to know if I can rely on the "id" field of the GamePad object?
Btw: I'm using Standalone RMMZ, not Steam Version, if this makes any difference.
Oh I've got a better idea. If I ever release a game, which with my current motivation propably won't, I should just create a seperate version for each of the 3 controller types I've mentioned above. It is not much effort to change just the input mappings. Why didn't I came up earlier with this idea, then I wouldn't have had to bother you reading all of this.
As far as I read the field is Browser dependend, but in RMMZ it seems to have the same output as in Chrome. The only problem I could see is if it is also operating system dependend.
As far as I could figure out Vendor 057e is "Nintendo" and 054c probably is "Sony" and XBox Controllers might not even contain the Vendor Id, but only the String XInput.
Sadly I can only tests this out with Nintendo controllers.
But the problem that I really want to solve is, that this specific part of Input.gamepadMapper is correct at least for XBox, but wrong for other controllers:
Input.gamepadMapper = {
0: "ok", // A
1: "cancel", // B
2: "shift", // X
3: "menu", // Y
For example as far as I have read on the internet about the standard functionalities of buttons on a Playstation controller it should be:
Input.gamepadMapper = {
0: "cancel", // Cross
1: "ok", // Circle
2: "menu", // Square
3: "shift", // Triangle
and on a Nintendo Controller it should be:
Input.gamepadMapper = {
0: "cancel", // B
1: "ok", // A
2: "shift", // Y
3: "menu", // X
and I really like to remap these as soon as the controller is connected, so that the player does not need to struggle with a wrong configuration until changing it, e.g. in the options menu.
If it is not possible, reliable to do that, than I guess I just have to add some kind of configuration to the options menu.
Does anyone of you have enough experience making RPG Maker Games considering GamePads to know if I can rely on the "id" field of the GamePad object?
Btw: I'm using Standalone RMMZ, not Steam Version, if this makes any difference.
Oh I've got a better idea. If I ever release a game, which with my current motivation propably won't, I should just create a seperate version for each of the 3 controller types I've mentioned above. It is not much effort to change just the input mappings. Why didn't I came up earlier with this idea, then I wouldn't have had to bother you reading all of this.