DK

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

cabanas_ds

Veteran
Veteran
Joined
Aug 13, 2020
Messages
100
Reaction score
26
First Language
english
Primarily Uses
RMMV
what am I doing wrong here? in order to call the common event this script doesn't seem to do it

Screen Shot 2021-03-28 at 3.48.12 pm.png

edit: I am having success with the keyboard keys, I can map keys from my keyboard to trigger switches that then trigger common events. However I cannot use my gamepad controller to trigger switches. Only the default buttons work, like they do without the plugin.

Screen Shot 2021-03-29 at 9.36.01 am.png
The 'Button Page Up" works. the script doesn't, no matter what gamepad button I try. Have I written the script wrong?

I have also attempted to do this thru the plugin itself, by activating a switch with no luck.
Screen Shot 2021-03-29 at 9.36.28 am.png

somebody please help!
 
Last edited:

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
967
Reaction score
556
First Language
Javascript
Primarily Uses
RMMZ
what am I doing wrong here? in order to call the common event this script doesn't seem to do it


edit: I am having success with the keyboard keys, I can map keys from my keyboard to trigger switches that then trigger common events. However I cannot use my gamepad controller to trigger switches. Only the default buttons work, like they do without the plugin.

View attachment 184248
The 'Button Page Up" works. the script doesn't, no matter what gamepad button I try. Have I written the script wrong?

I have also attempted to do this thru the plugin itself, by activating a switch with no luck.
View attachment 184256

somebody please help!

...this is what works best for me but only tested this to respond to this post
1617584705698.png
Helpful?
 
Last edited:

jjraymonds

Veteran
Veteran
Joined
Feb 1, 2020
Messages
38
Reaction score
4
First Language
English
Primarily Uses
RMMV
Hi!

I have a question...

When I use conditional branches to check for input from keys that have default RPG Maker uses like Z and Enter, or X and Escape it seems like it'll take input from both? (For example I have conditional branch that reads Input.keyRepeated(88), 88 is the X button, but if I press escape the same conditional branch runs.)

I might be missing something here... but is there any way I can make this plug in look for, and ONLY look for X?
 

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
265
Reaction score
313
First Language
Russian
Primarily Uses
RMMV
Hi!

I have a question...

When I use conditional branches to check for input from keys that have default RPG Maker uses like Z and Enter, or X and Escape it seems like it'll take input from both? (For example I have conditional branch that reads Input.keyRepeated(88), 88 is the X button, but if I press escape the same conditional branch runs.)

I might be missing something here... but is there any way I can make this plug in look for, and ONLY look for X?
Input.isRepeated('x')
it works ?
 

jjraymonds

Veteran
Veteran
Joined
Feb 1, 2020
Messages
38
Reaction score
4
First Language
English
Primarily Uses
RMMV
Input.isRepeated('x')
it works ?
That string doesn't seem to work for me when I put it into the conditional branch, pressing X doesn't get detected.
 

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
265
Reaction score
313
First Language
Russian
Primarily Uses
RMMV
That string doesn't seem to work for me when I put it into the conditional branch, pressing X doesn't get detected.
Do you have any other keyboard plugins installed?
 

jjraymonds

Veteran
Veteran
Joined
Feb 1, 2020
Messages
38
Reaction score
4
First Language
English
Primarily Uses
RMMV
Do you have any other keyboard plugins installed?
Ah you know what, I wasn't thinking about that, I am! I'm using the Yanfly button common event plug in as well. It was silly for me to not think about that, everything worked totally fine once I disabled the Yanfly plug-in.

Unfortunately I need the Yanfly plug in, so I'll work around it.
 

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
265
Reaction score
313
First Language
Russian
Primarily Uses
RMMV
Ah you know what, I wasn't thinking about that, I am! I'm using the Yanfly button common event plug in as well. It was silly for me to not think about that, everything worked totally fine once I disabled the Yanfly plug-in.

Unfortunately I need the Yanfly plug in, so I'll work around it.
You can configure the switching on of switches when a key is pressed in the plugin settings, and in the common event put a trigger on this switch. Perhaps this will solve your problem?
 

jjraymonds

Veteran
Veteran
Joined
Feb 1, 2020
Messages
38
Reaction score
4
First Language
English
Primarily Uses
RMMV
You can configure the switching on of switches when a key is pressed in the plugin settings, and in the common event put a trigger on this switch. Perhaps this will solve your problem?
That very well might, I was primarily just running into this issue when working on a QTE mini game. I'll test it out and see if I can get it to work!

I think I just have one other question now, at first I was shared this plug-in from another user. In the DKTools_Full_Input.js(v3.0), and DKTools.js(v1.1.0) help files it states that it is free to use in non-commercial AND commercial games:

DKTools.js:
### License and terms of use ###



Recent information about the terms of use: https://dk-plugins.ru/terms-of-use



You can:

-Free use the plugin for your commercial and non commercial projects.

-Translate the plugin to other languages (inform if you do this)

-Change code of plugin, but you must specify a link to the original plugin



You can't:

-Delete or change any information about plugin (Title, authorship, contact information, version and release)

DKTools_Full_Input.js:
#### License and terms of use ###



Recent information about the terms of use: https://dk-plugins.ru/terms-of-use



You can:

-Free use the plugin for your commercial and non commercial projects.

-Translate the plugin to other languages (please, inform, if you do this)



You can't:

-Delete or change any information about plugin (Title, authorship, contact information, version and release)

-Change code of plugin out of border "Plugin settings" and "End of plugin settings" (if you found a bug contact me)

I noticed at the top of this thread you posted that it was free to use for non-commercial, but for a commercial license I should check out your website. I tried checking out the website but I always get a timeout error.

I don't know where my friend had gotten the plug-in so I just want to confirm. Are the plug-ins now free for commercial use? Or do I have to pay for a commercial license?
 

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
265
Reaction score
313
First Language
Russian
Primarily Uses
RMMV
That very well might, I was primarily just running into this issue when working on a QTE mini game. I'll test it out and see if I can get it to work!

I think I just have one other question now, at first I was shared this plug-in from another user. In the DKTools_Full_Input.js(v3.0), and DKTools.js(v1.1.0) help files it states that it is free to use in non-commercial AND commercial games:

DKTools.js:


DKTools_Full_Input.js:


I noticed at the top of this thread you posted that it was free to use for non-commercial, but for a commercial license I should check out your website. I tried checking out the website but I always get a timeout error.

I don't know where my friend had gotten the plug-in so I just want to confirm. Are the plug-ins now free for commercial use? Or do I have to pay for a commercial license?
This site won't open? https://dk-plugins.ru/terms-of-use/

The terms of use are indicated in the first post:

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
 

jjraymonds

Veteran
Veteran
Joined
Feb 1, 2020
Messages
38
Reaction score
4
First Language
English
Primarily Uses
RMMV
This site won't open? https://dk-plugins.ru/terms-of-use/

The terms of use are indicated in the first post:

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
The site wouldn't open for me, but I think it is my router/ISP blocking it because I was able to get in on another network.

Thanks for clarifying, for some reason the files I was given say that they are free for commercial use! I'll probably be picking up a license in the next year or so, no where near close to shipping anything yet! :biggrin:
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
23
Reaction score
4
First Language
German
Primarily Uses
RMMV
Hi DK
I have a question.
Is there a conditional branch when the right stick of the gamepad is tilted down or up?

Input.gamepad.axes --axes (Array with 4 float values)?

I'm worried because I don't know how to do it.
 

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
265
Reaction score
313
First Language
Russian
Primarily Uses
RMMV
Hi DK
I have a question.
Is there a conditional branch when the right stick of the gamepad is tilted down or up?

Input.gamepad.axes --axes (Array with 4 float values)?

I'm worried because I don't know how to do it.
Y-axis of right stick is the most recent value in Input.gamepad.axes
As soon as you begin to deflect the stick upward, this value begins to decrease from 0 to -1, where -1 is the total deflection of the stick. When you move the stick down, the value increases from 0 to 1.

You can use the following conditions:

◆If:Script:Input.gamepad.axes[3] === -1
◆Text:None, None, Window, Bottom
: :Right stick up (full)

:Else
◆If:Script:Input.gamepad.axes[3] === 1
◆Text:None, None, Window, Bottom
: :Right stick down (full)

:End

:End
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
23
Reaction score
4
First Language
German
Primarily Uses
RMMV
Thanks!
It reacted as intended!
 
  • Like
Reactions: DK

Latest Threads

Latest Posts

Latest Profile Posts

Make a Game in RMMZ Streams are going to remain in hiatus this week. Too much to do! 4 things will be announced on Monday though! Look forward to that.
Typed a long-ish reply to a post... forgot to actually HIT the post button, and moved to a different page.... finally noticed, don't remember what all I had typed and don't feel like trying to re-type it all.... smh....
Their tactics are evolving. They've learned to call for help when cornered. Never trust a mammal!
Good morning all. I still have a post up on video editing for cinematic trailers. Please make sure to check that out and give me a message as its still active in offers.
Hey everyone! I'm back :D

Snow White? More like Snowhere to be seen amiright? Hahaha I'm so sorry!! :kaocry:

Forum statistics

Threads
112,371
Messages
1,067,841
Members
146,017
Latest member
Anselmo00
Top