I tried an xbox and ps4 controller and it's the same.
Try adding the game in Steam and enabling Steam input for it. I was able to play both Theia Crimson Eclipse (RM2K3) and the PC Zelda 2 remake (Game Maker) with my DualShock 4.