Familiar territory. Input keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
The static class that handles input data from the keyboard and gamepads.
function Input()
Quick Reference
Setup & Creation 1
| initialize() | Initializes the input system. |
Checks (True / False) 5
| isPressed() | Checks whether a key is currently pressed down. |
| isTriggered() | Checks whether a key is just pressed. |
| isReleased() | Checks whether a key was released during the latest update. |
| isRepeated() | Checks whether a key is just pressed or a key repeat occurred. |
| isLongPressed() | Checks whether a key is kept depressed. |
Actions 1
| clear() | Clears all the input data. |
Updating & Drawing 1
| update() | Updates the input data. |
Other 1
| virtualClick() | Virtual click. |
Setup & Creation
initialize
static sourceInput.initialize()
Initializes the input system.
Checks (True / False)
isPressed
static sourceInput.isPressed(keyName)
Checks whether a key is currently pressed down.
Details
Checks whether a key is currently pressed down.
isTriggered
static sourceInput.isTriggered(keyName)
Checks whether a key is just pressed.
Details
Checks whether a key is just pressed.
isReleased
static sourceInput.isReleased(keyName)
Checks whether a key was released during the latest update.
Details
Checks whether a key was released during the latest update.
isRepeated
static sourceInput.isRepeated(keyName)
Checks whether a key is just pressed or a key repeat occurred.
Details
Checks whether a key is just pressed or a key repeat occurred.
isLongPressed
static sourceInput.isLongPressed(keyName)
Checks whether a key is kept depressed.
Details
Checks whether a key is kept depressed.
Actions
clear
static sourceInput.clear()
Clears all the input data.
Updating & Drawing
update
static sourceInput.update()
Updates the input data.
Other
virtualClick
static sourceInput.virtualClick(buttonName)
Virtual click. (Same as the RPG Maker MZ method of this name.)