Full Input - All keys of the keyboard and gamepad

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
187
Reaction score
235
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
187
Reaction score
235
First Language
Russian
Primarily Uses
RMMV
Plugin is publicly available :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I think in the pursuit of making the game look and sound custom, we never really start making a game. Finish the game first using all necessary plugins (with placeholder assets), then replace it with the real ones.

I haven't finished a game, but I try this method. Progress seems to be faster. :D
Every now and then I think about all the things I need in my project, and get overwhelmed. Just focus on your tilesets, me. You can't build your maps without 'em!
If a picture speaks 1000 words, how many pictures does a video speak??
I don't really get the "Pass Interference" Flag in (American) Football. Aren't you SUPPOSED to interfere with passes in Defense?? What exactly is the threshold that warrants a Flag?
TS Zeta.. blow your ass east... I cant take a round 3.

Forum statistics

Threads
104,431
Messages
1,006,311
Members
135,955
Latest member
Zhainong
Top