Play Test Controller Issue

Wondering if anyone else dealt with this or knows a fix to it. I searched around here on the forum and on google, but was unable to find much help.

When I playtest my MZ game, the controller I have plugged in does not always work. If I start up MZ and playtest it right away, it works 100% of the time. If I playtest it anytime after, it won't work. If I minimize the playtest window and restore it, the controller works for about 5 - 10 seconds and then stops working. I am using MZ on Steam. Using Windows 10. This problem hasn't happened before and only just started happening when I got back into using MZ this year (it's been a year since I worked on MZ).

I have tried disconnecting the controller, I've played with all the settings I can on Steam for the controller (like 'Enable Steam Input'. The controller works like it should in everything else on Steam. I've verified the integrity of my files in Steam in regards to MZ, I've exited steam and restarted the computer. I've tried using 'Big Picture Mode'. Support for my controller is correct (and as mentioned, works in other games just fine). Batteries or charging of controller isn't the problem, as it is a wired controller. I am using plugins (that I've used before), and even tried disabling them.

If anyone can help or point me in a direction, I'd greatly appreciate it. Sorry if there is a post I missed that covers this already, I did look.

Thanks
I don't remember the test game running through the Steam settings.

Do the following test: deploy the project to Windows, close RPG Maker and Steam, run Game.exe directly and check what happens.
I had tested deploying the game....which works. It's just that if I'm testing a project, having to deploy the game every time is a bit much.

It doesn't really run through steam, but I have it on steam. I'm able to double click my project and open directly without running steam. I did mess with the steam settings for the controller just to exhaust all avenues, since I can initially launch it from Steam.
I had tested deploying the game....which works. It's just that if I'm testing a project, having to deploy the game every time is a bit much.
I didn't say you had to do that; the method is to find out if the problem was with the computer or due to interference from the editor or Steam when switching between active windows (Alt + Tab)

This is another step towards discovering the cause of the problem; from my point of view, the gamepad is prioritizing another window.
Sorry about that, thought you were talking about using that instead.

I think it has to be something with the different windows open like you suggested. Since when I minimize and then restore the test window it works for a little bit. Odd that it wasn't like this last year, but maybe the update knocked something loose in my computer.

Im gonna look at my controller and how the computer is handling things when I get home.
I had found another thread that I think is what I'm going through


I tried what was suggested on here as well...when I made the suggested .js file and ran the game it didn't pop up that it was disconnected, even when the controller stopped working. Once I unplugged the controller then I got the disconnected message, so the script was working, just my controller isn't disconnected when the problem occurs.
Replace "alert(" with "console.log(" on Plugin
The problem is that with alert windows, it increases the issue of which window is currently active.

But I still believe the gamepad keeps getting recognized; it's another piece of software like Steam that's affecting its functionality.
I tried that both ways (at start of MZ when play testing works fine and after running MZ for a bit) and both times when I look into DevTools, I get the same info.....however it doesn't show "Gamepad 0 connected!" when I start up the game (the second way) and use the key board....it is only when I minimize and restore (even after functionality ceases with the controller) that it will shows that its connected.

consolelog.jpg
If the console didn't register any disconnection of gamepad "0", it's because it wasn't actually disconnected.

This proves that the problem lies in RMMZ's interaction with Steam, even if you run it directly from the folder. The editor will always launch Steam for basic operations, such as verifying the license, if the files are not corrupted or outdated.

You will have to check this in RMMZ's properties within Steam.

One last test you could do is to close Steam, which will close RMMZ, then install the RMMZ Trial and open your project through it:

Remember to uninstall it after testing, because it will likely assume that the software opens the project files due to the file association defined during installation.

And for safety, uninstall RMMZ through Steam and reinstall it to ensure that the settings are reset to default.
I think I got it now. I had previously messed with controller settings on steam and also by right clicking MZ itself. Previously it was at "Use Default Settings" and I had changed it to "enable steam input" as I was trying diffent things. I never tried "Disable Steam Input", but once I did that, that fixed it. Strange that I don't recall ever messing with these settings in the past and it worked fine before - the only settings I've changed in the last year was through the Steam tab -> Settings -> controller .... unless that had done something to MZ indirectly.

Thank you for your time and patience in helping me fix this problem.
It's wonderful to see that you were able to resolve it, and we can use this thread as a reference for future users with the same problem.
I had imagined that this could have happened, but RMMZ and other editors don't go to the "Games" category, but rather "Software," so I didn't even remember if this setting was possible in that category, since I'm using Windows 8.1 and haven't been able to install Steam yet.
Spoiler: Off-topic
My temporary notebook couldn't run Windows 10, even though I installed it on devices with inferior processors.

Original thread: https://forums.rpgmakerweb.com/threads/play-test-controller-issue.182977/