Full Input - All keys of the keyboard and gamepad

Version 4.0.0 is publicly available

What's new:
  • New keystroke tracking system. Now the time of pressing is counted for each key separately
  • Added new functions
  • Help updated
  • Removed unused functions
First post updated!

P.S. Version 5.0.0 (with RPG Maker MZ support) is already available for my subscribers.
I really like the idea of this plugin but it'd be great to have some demos of how to use it. I'm so lost. I can get the keys on the keyboard to trigger switches that trigger common events.

but I cannot get any of the buttons on my game controller to trigger anything. although all the defaults work properly, which is cool.

also, is there a way to switch the buttons around?

currently my 'ok' button is set to B on my controller (X on PS controller). I would like to switch that to A(O on PS controller)

is this possible?
Version 5.2.0
Hello!

I seem to have a problem with trying to read out any of the gamepad inputs, where if I tried to get something like the input.gamepad.rt value it would tell me that that property was undefined. Same goes for the axes. I'm using MV 1.5.0. What am I doing wrong?

Using the controller to just walk and open menu and stuff works fine though!

Thanks in advance!

1.jpg
2.jpg


EDIT:
I got it to work. Just had to update MV and deactivate the QInput Plugin which I completely forgot was turned on as well
Title: Full Input
Author: DKPlugins
Version: 5.2.0
Description:
All keys of the keyboard and gamepad.

Features:
  • Checking the press of any key on the keyboard or gamepad
  • Support for gamepad sticks and triggers
  • Enabling switches when you press a key

Compatibility:
  • RPG Maker MV: 1.5+
  • RPG Maker MZ: 1.0+

Warning from "Help"

Default RPG Maker MV/MZ values for Alt, Space, Insert, Q, W, X, Z
Alt: 'control'
Space: 'ok'
Insert: 'escape'
Q: 'pageup'
W: 'pagedown'
X: 'escape'
Z: 'ok'

The values of this plugin for Alt, Space, Insert, Q, W, X, Z
Alt: 'alt'
Space: 'space'
Insert: 'insert'
Q: 'q'
W: 'w'
X: 'x'
Z: 'z'

Tested gamepads:
Xbox One (wired and wireless) - 100%
PS5 DualSense - 100% (experimental support)

Instruction from "Help"
Spoiler
###===========================================================================
## Added functions
###===========================================================================
Added tracking of gamepad triggers pressing and axis tilts
Tested on Xbox One Wireless Gamepad
Use to get values:
Input.gamepad.lt - left trigger (float value of the force of pressing in the range from 0 to 1)
Input.gamepad.rt - right trigger (float value of the force of pressing in the range from 0 to 1)
Input.gamepad.axes - axes (Array with 4 float values)
The axes have the following structure:
[X-axis (left stick), Y-axis (left stick), X-axis (right stick), Y-axis (right stick)]

X-axis (any stick) is -1 when you tilt the stick to the left
X-axis (any stick) is 1 when you tilt the stick to the right
Y-axis (any stick) is -1 when you tilt the stick up
Y-axis (any stick) is 1 when you tilt the stick down

Input.preferGamepad () - Returns true if the player is playing a gamepad

Input.isAnyPressed(keys) - Returns true if at least one key is pressed (keys not specified).
Returns true if at least one key from the keys array is pressed (keys is an array of keys).

Input.isAnyTriggered(keys) - Returns true if at least one key is pressed and released (keys not specified).
Returns true if at least one key from the keys array is pressed and released (keys is an array of keys).

Input.isAnyRepeated(keys) - Returns true if pressing at least one key is repeated (keys not specified).
Returns true if pressing at least one key from the keys array is repeated (keys is an array of keys).

Input.isAnyLongPressed(keys) - Returns true if at least one key is pressed for a long time (keys not specified).
Returns true if at least one key from the keys array is pressed for a long time (keys is an array of keys).

Input.getPressedTime (keyName) - Returns the time the keyName was pressed in frames.

Input.virtualClick(keyName) - Emulation of pressing the keyName button.

Input.resetKeyboardButtons() - Resets the keyboard buttons

Input.resetGamepadButtons() - Resets the gamepad buttons

If you create a plugin based on this:
Before using any function, make sure that the user has installed the plugin:
if (Imported.DK_Full_Input) {}

Get plugin version:
var version = Imported.DK_Full_Input;

"Help" languages: English, Russian

Terms of use
You can:
-To use the plugin for your non-commercial projects
-Change code of the plugin

You cannot:
-Delete or change any information about the plugin
-Distribute the plugin and its modifications

Details on obtaining a commercial license on my website

Plugin page:
https://dk-plugins.ru/full-input/

Link to the plugin page doesn't work :/ Anybody could share with this plugin?
@tenac666 the link does work on my end, same as the download.
as we cannot just blindly share, you can check inside another browser.
Version 5.3.0:
  • Added script call Input.getRepeats(keyName) which returns the number of repeats the keyName button was pressed.
Hello, thanks so much for the plugin. It works for what I want to do (unrelated to what I'm about to say), but there is a small problem x')
I only need the basic functions (ok, cancel, menu, shift, etc.) and since the gamepad has buttons to spare I thought I could include F4 and F3 functions (fullscreen and 100% size) in the LB and RB buttons, but nothing I do seems to work.

I tried downloading DK Tools too, and nothing changed with it (?).
I tried writing both "f4" and "F4".
Perhaps I'm doing something wrong?

aaa.png


I also changed the start button to "menu" and that one worked.

If this isn't possible I will give up, it's not a huge inconvenience. But I would like to make it work if possible 🙂
I'm having a hard time using this in MV3D for camera controls. I can change the pitch (up and down) with the right stick, but I can't get the right stick to turn the camera left and right. Anyone else having this issue? Or maybe figured out why this is happens?
This plugin has worked great for adding gamepad support to my game, although i haven't been able to get a response from using the q or e key.

Example below
(The script is the same for the e key as well, its just a basic test to see if it functions)
This plugin has worked great for adding gamepad support to my game, although i haven't been able to get a response from using the q or e key.
From the first post, the name for the Q key is 'q'. Unless the code performs an extra step to change the case, 'Q' and 'q' are two different things.
From the first post, the name for the Q key is 'q'. Unless the code performs an extra step to change the case, 'Q' and 'q' are two different things.
oh sorry, i actually tried lowercase q first, i did Q after to see if that would fix it and forgot to change it back for the screenshot.
@Heavensglaivedev It works perfectly in my new test project.

1730962219108.png


1730962202038.png


Are you sure you haven't changed that letter's name in the plugin parameters? The switch to run your parallel event is turned on?
@ATT_Turan Yeah, i even tried removing the switch as well along with dbl checking the letter's name.
It's weird, going to test in a fresh project to see if it's my project causing the issue.
Yeah, i even tried removing the switch as well along with dbl checking the letter's name.
It's weird, going to test in a fresh project to see if it's my project causing the issue.
Yeah just tried in a fresh project and it works completely fine, i haven't touched any of the
keyboard parameters before now, not entirely sure what the issue is.
@Heavensglaivedev You should turn off all other plugins, save your project, start a new game - see if you have something else that's overwriting that keybinding.
@Heavensglaivedev You should turn off all other plugins, save your project, start a new game - see if you have something else that's overwriting that keybinding.
Just tried it, that worked, going to try and slowly turn em back on until i find the thing causing it.
@Heavensglaivedev You should turn off all other plugins, save your project, start a new game - see if you have something else that's overwriting that keybinding.
It looks like it was Yanfly's Keyboard Config Option causing the issue HAHA.
After turning it off, i can't use WASD in the menu, so i'm going to rebind the direction inputs to wasd in the keyboard param.

Thanks for the help!

Original thread: https://forums.rpgmakerweb.com/threads/full-input-all-keys-of-the-keyboard-and-gamepad.59640/