MZ VisuStella OptionsCore - Controller mapping

Good day, everyone!

(Using RPG Maker MZ, on Mac OS Sonoma.)

So recently I updated VisuStella OptionsCore to the latest version. (1.26), so that I can use that plugin to map controller buttons.

I removed all mapping from CoreEngine as I didn't want any potential conflicts, so Core Engine no longer has any user-done mapping stuff in it. Options Core has it all now.

I made three sets of controller button icons to use in the icon file.
I then put three entries into the plugin for each: Xbox, PS, Switch Pro.
Each controller "works" in-game and shows the appropriate icons.

What's bugging me:
  • Dash button doesn't work for any controller.
  • In game test, it's as though the button you would use on keyboard to ignore terrain restrictions is permanently 'on' when using any controller, so I can walk through walls, water, etc.
  • Cancel button for SwitchPro is also confirm. Confirm is also cancel.
  • D-pad for Xbox Series controller doesn't function at all, only the analog stick is recognised.

To cut the long story short, I'm experiencing a slew of problems with the controllers, and wondered if anyone else has used this plugin for this function yet, and if they have experienced similar and did they figure out the niggles?

Thanks, Atra


EDIT:
So. I recently re-installed RPGMaker MZ. And found a fix for the problem above.

Play tests kept crashing, so I did some investigating. Turns out the packaged version of NW.js isn't silicon friendly, it's quite an old build. (2021!?) memory issues, problems with Metal vs OpenGL in latest macOs, etc, etc.

So I updated it in my RPGMaker install folder from the NW.js site. (so now play test, and deployment will ship with the updated nw.js)

Xbox controller now works flawlessly. No mis-mapping shenanigans going on. So whatever the issue was, it was with the older version of NW.js.

If anyone else comes across this, this was the fix for me. Hope it helps you 🙂
I haven't used this specific plugin, but I think an important part of troubleshooting this is to establish which things are the plugin's "fault."

That is, if you make a new project without any plugins in it, which (if any) of these issues do you have with MZ's default gamepad mapping?

If you can narrow it all down to being caused by the plugin, that's quite a lot of stuff and might need to be a full bug report to VisuStella.
Controller mapping is a very recent addition (July, I think?) So there is potential for there to be plugin-side niggles, but I'd expect that to be 'this isn't implemented' rather than 'this is broken'.

Considering how robust the plugins tend to be normally, I am suspecting it's very likely something I've done, or not done.

I've managed to identify that Steam is possibly causing the issue with the Switch Pro controller. There's the button swap feature in there, but toggling it on/off isn't helping things. As I am on Mac OS, I have to have steam running to use RPG Maker MZ, and I've yet to figure out how to get steam to just ignore the controllers on this OS. Might have to dig out an old windows PC to explore that further where I can use RMMZ without Steam running.

Xbox d-pad is a firm 'happens in new project, sample project and main project' issue. So I can't rule out OS/Steam currently. Will replicate on windows when I can and see what the results are.

I've managed to fix dash and override. That was foolery on my part. *hangs head in shame*

I'll keep testing to work out the rest, of course. Thank you once more, Turan. 🙂
Someone else might know better about the mechanics of this and correct me, but I don't see why Steam would have anything to do with it.

Just having Steam running on your computer shouldn't change anything about how other applications receive and process the inputs sent from your gamepads. I have Steam running all the time, and I play other games where I can use my gamepad and remap its controls and they've always worked as expected.

Also
As I am on Mac OS, I have to have steam running to use RPG Maker MZ
you could deploy the game.
Someone else might know better about the mechanics of this and correct me, but I don't see why Steam would have anything to do with it.

Just having Steam running on your computer shouldn't change anything about how other applications receive and process the inputs sent from your gamepads. I have Steam running all the time, and I play other games where I can use my gamepad and remap its controls and they've always worked as expected.

Also

you could deploy the game.
It was the only thing I could think of as to why the A and B buttons were doing two things at once. A suspicion that perhaps steam is emulating the controller (in the past, it was the only way to get a PS4 controller to work in games outside of xpadder back in the day - I recall input duplication issues back then) and the game is therefore receiving double the input. (one direct from hardware, the other from steam software) I'm very likely wrong. I'm hoping it's something I've done in the plugin, or something I need to configure in the plugin.

And yes, I could deploy. I was obviously hoping to avoid that time sink - but it is on the agenda now.

I'm not ruling out plugin settings, either. I'm still filtering through all that. I was hoping someone else may have run into similar issues and may have been able to point me in a direction.
out of curiosity, how old is your controller and is it like an 8bitdo?
out of curiosity, how old is your controller and is it like an 8bitdo?
The three I have for testing are:

Xbox Controller: Xbox Series S - came with Series S console. (I have four of these, all produced same result with d-pad)
Playstation: DualShock 4 - came with a PS4 Pro.
Switch Pro Controller - bought with a switch.

Can't say definitively how old any of the controllers are, but thought these might be the most commonly used, and were what I had?

As a note on the headway I'm making, connecting the switch controller without steam running is flawless. As soon as steam fires up and the blue ring on the switch controller home button comes on, that's when the A/B shenanigans starts. Testing hasn't been exhaustive as yet, so I'm only 'probably certain' this is the problem. It could be a combination of factors.

I need to figure out how to isolate the input via the plugin by using a non-generic identifier for the controllers each, and I believe that should cure what I think is happening. But I'll do some research and see what I can do myself there first. 🙂

Curiosity right back, are 8bitdo controllers popular? 🙂 While I'm sifting through all this, I did wonder if there were other controllers to consider adding in. 🙂
As a note on the headway I'm making, connecting the switch controller without steam running is flawless. As soon as steam fires up and the blue ring on the switch controller home button comes on, that's when the A/B shenanigans starts.
maybe its an issue with Steam Input and its settings?
back when i used it, i remember a night where my regular xbox controller died and i tried using my switch pro controller, but the inputs were beyond scrambled.

Ive stopped using Steam Input entirely since then. Very rarely it turns back on and it makes my controllers start acting differently as long as steam is running both during and outside of games. Stuff like the right stick moving the mouse, left stick controlling volume and playing/pausing music and videos, RT left clicking, LT right clicking, etc.
Curiosity right back, are 8bitdo controllers popular? 🙂 While I'm sifting through all this, I did wonder if there were other controllers to consider adding in. 🙂
I mean, they are to me because I like retro inspired controllers - but I asked because they can't be used properly on modern systems without an adapter and wondered if you were having that issue, but you can use them just fine without Steam so that wasn't the issue
Any luck finding a solution to this one? I'm having a similar issue as you.
I'm necro-ing my own thread here, sorry mods. But there's a chance this could help someone else.

I've made quite a chunk of headway.

What happens: If you're using Steam (as most do when playing games, even if it's a non-steam game) Steam will grab any controllers connected and 'do stuff'.

For a switch controller, it - for some reason - duplicates it. So there's always two. This causes issues with A/B X/Y and button ghosting. Steam can filter it out for steam stuff. But for anything else... it's messy.

For the switch controller, I had to write some JS into my own plugin to ignore duplicate switch controllers (Note: this is a 'get it working' snippet. It's not a cure-all)
Spoiler: Code snippet here
JavaScript:
Input._pollGamepads = function() {
    const pads = navigator.getGamepads ? navigator.getGamepads() : [];
    let seenSwitchPro = false;
    for (let i = 0; i < pads.length; i++) {
        const pad = pads[i];
        if (!pad || !pad.connected) continue;
        const id = pad.id.toLowerCase();
        if (id.includes("pro controller")) {
            if (seenSwitchPro) {
                continue;
            } else {
                seenSwitchPro = true;
                this._updateGamepadState(pad);
            }
        } else {
            this._updateGamepadState(pad);
        }
    }
};

Playstation controller: just works. Match:str = "wireless controller"

XBox controller: is a nightmare. An absolute nightmare. We can recognise it and display pretty xbox buttons, but...

XBox uses several axis (analog sticks use two each, triggers use one each, d-pad is a hat-switch, likely two axis.)
I've not pinpointed what API is emulating button presses from inputs but it's messy - the d-pad is merged into one axis, and the triggers aren't giving a definitive 1 or 0 for a typical button press so are being ignored, and somewhere along the way, the X and Y button mapping is haywire.

"use gamepad tester" is not at all helping. The inputs it shows there is not what nwjs is getting.

I've written code to console log every possible input from the xbox pad, but I think by the time the nwjs grabs input, it's already been junked. Every 'fix' messes something else up for another controller.

If I ever fix xbox input - I'll update again (but it's likely this will get locked because it's an old post.)
Interesting find

If I ever fix xbox input - I'll update again (but it's likely this will get locked because it's an old post.)
The thread can be left open if you'd like, or it can be closed and if/when you need it reopened in the future you can report it to have it opened.
I'm necro-ing my own thread here, sorry mods
Thread owners are allowed to do a lil necromancin' so long as it's their own thread 😛
Thread owners are allowed to do a lil necromancin' so long as it's their own thread 😛
beat me to it!
Can I ask how exactly did you do the controller sets? In the gamepad reminding I am trying to change the glyphs from "button 0" to "A" for example but I can't find how.
Sorry I missed the reply! I've been out of action for ill health, catching up all over.

I use icons for the buttons. (added to my IconSet file - mine is... very big. approx 3000ish icons)
The tiny clip below should show I have xbox, switch, playstation and generic controller buttons:

Screenshot 2025-09-21 at 15.52.14.png


I also use icons for all keyboard keys, too (and had to write a plugin to 'upgrade' visustella's option for this, as theirs didn't cover all keys - but that's another tale.)


So in the plugin I just use icon escape codes for the button text:
The button number corresponds to what you see when using gamepad tester in any browser, so matching them up is a little work, but worth it.

Spoiler: Plugin Screenshot
Screenshot 2025-09-21 at 15.55.28.png

depending on detected input, the game should swap all help text contents to use the right icons.


And to update on-topic, I am still struggling with getting xbox controllers to behave. I've still not pin-pointed what is messing up the mapping between system and in-game, but I'm working on it.
👋 I see you've added a fix that worked for you to the first post.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-optionscore-controller-mapping.172881/