Keep in mind that FF7 originally had a PC version around launch (that's the version I first played) so it's quite plausible that all versions could have this code if it dates to the original. Don't think it would have made sense to have it on the PS1, though.
Every port of Final Fantasy VII (PS4, Switch, Android, Xbox One, etc) is just the original 1998 PC port EXE running in an emulation layer similar to Wine. The general consensus in the community is that Square has either lost the game's source code or feels that doing things this way is safer than rebuilding the code. In a fairly forward-thinking move, FF7 PC has the ability to use an external DLL as its graphics driver, so the ports use this functionality for new graphics drivers that allow for higher resolutions and more modern APIs than the DirectX 5 support the game shipped with.
Each version has the correct button prompts for its controller. I don’t know enough about FF7 to know how this was accomplished, probably by editing the script files. One thing you might be interested in- there’s evidence that the team responsible for the new FF7 renderer code either hired a modder to write it or used his code as a base. https://blog.julianxhokaxhiu.com/2020-02-19-final-fantasy-vi...
I owned that one. It was a tricky thing to install back then on my pentium 2, 255mhz. Could get the graphics to work without glitches or the sound but not both at the same time. :D