A way to detect controls

RPG maker MV controls are not most intuitive ones. While I could possibly guess, that on desktop "ESC" works as menu and back buttons, double-finger-tap on android is not that intuitive. I would like to have a tutorial for my players explaining some basics. But for that - I have to detect what controls players are using.


My first thought was .isMobile() method, but this won't always work as desired; I have for one a Windows 10 laptop/tablet with touchscreen, and it won't register as mobile.


So my question: what would be a best way to detect what kind of controls player is using?
I would think you'd just change the controls tutorial based on which deployment the user downloads and maybe add a little "Playing with a touchscreen" readme.txt that you could mention exists in the beginning of the game. Granted, it's cooler to change your tutorial based on code but sometimes cooler might not be the right answer
You are assuming here that each android has touchscreen and each windows device has keyboard. That is likely, but not always. I both have an android tablet with keyboard and windows 10 based touchscreen-enabled device. Having tutorial in separate file is not an option I'm even considering - that's "gamebreaker" level defect; by which I mean - player that cannot figure basic controls for my game will abandon it.


I suppose I just need to write a plugin for that. Detecting any of mouse, keyboard, touch events and assigning them to variables/switches should be trivial. I just hoped there is established way to do it.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-detect-controls.70905/