DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
249
Reaction score
297
First Language
Russian
Primarily Uses
RMMV
Title: Full Input
Author: DKPlugins
Version: 5.0.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'

Instruction from "Help"
###===========================================================================
## 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)]

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.

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/
 
Last edited:

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
249
Reaction score
297
First Language
Russian
Primarily Uses
RMMV
Plugin is publicly available :)
 

Latest Threads

Latest Posts

Latest Profile Posts

I just watched a trailer for the upcoming 2021 JRPG Fantasian. They demonstrated an interesting mechanic where random encounters can be sent to a stockpile instead of fighting them right away, which can be emptied in a single battle string at the player's choice of timing.
"The pleasure from the senses seems like nectar at first, but it is sour as the toxin in the end." -Kirshna
Just finished my first ever game - Aeon's Destiny! This was a lifelong dream and after hundreds of hours, I've made something I'm very proud of. Please check it out!

Demo project with NPC Scheduler and other OcRam -plugins is now available!

Forum statistics

Threads
109,151
Messages
1,042,566
Members
141,654
Latest member
SDesires
Top