Simultaneous Button Input

I'm trying to figure out how many/what simultaneous key presses can be detected. From what I've tested, it seems to not detect key presses after I press one of the directional keys, however if I press the "control" (or "alt" which according to the default code is the same thing) then it seems to detect other key presses on top of that. Has anyone tested the limits on this yet?
I know that Touch input and at least another button can be pressed simultaneously. I have a shooting system where you aim by holding the mouse/touching the screen and fire by pressing shift. And you absolutely have to be pressing them simultaneously or nothing will happen. I've never tested the limits on purpose, but input-wise I've never reached any limits. Thank you, Yanfly ^^


I've also been tinkering with an action 1 on 1 combat system and the directional buttons are also a requirement for the jump input, which is mapped to another button. While those events are processing you can smash from above, meaning in the short 90 frames of execution the maker still accepts more input. However, I have very shoddy results when I use the conditional branch's button drop down menu. I always use


TouchInput.isTriggered()  or .isPressed() or .isLongPressed() 


and 


Input.isTriggered('shift') or Input.isPressed('ok') etc. 


If you put those in the conditional branch's script box, or use them in your own if statements, they work very good. 


The trick is placing them correctly. Trial and Error lol
I'm currently just testing Input.isPressed(x). I'm writing a battle skill input plugin and one of the skill categories requires you to press a certain combination of keys at the same time order to successfully proc the skill. The game will only make use of the four directions and two other keys for input processing. I was hoping to allow combination such as up+left+control simultaneously but I'm not having much luck getting the engine to detect multidirectional, simultaneous presses.
Well I know Yami has an 8d script, so the input can definitely be detected. Apparently the script is part of the DLC, I can't remember if that's how I got it or not, I got my copy of MV from steam. But I remember having a Yami 8d back on Ace, if I'm not mistaken. 


Also, the Yami 8d script is very stripped down and easy to read, so you might be able to pull/build calls from there
Well I know Yami has an 8d script, so the input can definitely be detected. Apparently the script is part of the DLC, I can't remember if that's how I got it or not, I got my copy of MV from steam. But I remember having a Yami 8d back on Ace, if I'm not mistaken. 


Also, the Yami 8d script is very stripped down and easy to read, so you might be able to pull/build calls from there

Ahh, I'll look into this. Thank you!


Ok, after doing a bit more research, it looks like key detection for battle scenes are different for map scenes. Using the exact same code logic, while on a map all simultaneous key presses were detected regardless of which button was pressed first. However while in a battle, when a particular button was pressed and held first, only certain other keys would be detected when they were pressed. I only ran tests using the up, down, left, right, control, and shift keys and they were all tested using the isPressed function.


When left was pressed and held, only the up and down keys were properly detected.


When right was pressed and held, only the down, left, and up keys were properly detected.


When up was pressed and held, no other keys at all were detected.


When down was pressed and held, only up was detected.


When shift was pressed and held, all other keys were detected.


When control was pressed and held, all keys EXCEPT shift were detected.


Anyone know what's going on?
Have you tried Input.isRepeated(x)?


P.S.: Just bear in mind that Input.isRepeated(x) doesn't always return true for every frame a key's pressed:

Spoiler
/**
 * Checks whether a key is just pressed or a key repeat occurred.
 *
 * @static
 * @method isRepeated
 * @param {String} keyName The mapped name of the key
 * @return {Boolean} True if the key is repeated
 */
Input.isRepeated = function(keyName) {
    if (this._isEscapeCompatible(keyName) && this.isRepeated('escape')) {
        return true;
    } else {
        return (this._latestButton === keyName &&
                (this._pressedTime === 0 ||
                 (this._pressedTime >= this.keyRepeatWait &&
                  this._pressedTime % this.keyRepeatInterval === 0)));
    }
};


/**
 * The wait time of the key repeat in frames.
 *
 * @static
 * @property keyRepeatWait
 * @type Number
 */
Input.keyRepeatWait = 24;


/**
 * The interval of the key repeat in frames.
 *
 * @static
 * @property keyRepeatInterval
 * @type Number
 */
Input.keyRepeatInterval = 6;

Original thread: https://forums.rpgmakerweb.com/threads/simultaneous-button-input.60325/