Input

the input object of RPG maker, note: only the added methods and functions will display in this documentation

Methods

static addKeyBind(key, cb, name, scope, wasdDefualt, defaultKey)

Parameters:
Name Type Description
key string

(optional) always bind to this key on boot

cb function

the call back to run

name string

the name of this command

scope int

the scope of this command

wasdDefualt string

the default key in wasd layout

defaultKey string

the default key in defualt layout

static checkScope(scope)

Parameters:
Name Type Description
scope int

-2 = in dev mode
-1 = never
0 = global
1 = on scene_map
2 = on scene_battle
3 = on scene_menu
4 = not on scene_map

static onLongNoInput()

meant to be overridden by other mods. called when no input is held for half a second