ProcessPlayerControl¶
Description¶
Handles player input variables and sidekick input buffering.
Note
Despite RSDKv5U adding multiple controllers, this function only reads the inputs for Controller 1.
Parameters¶
None.
Return Value¶
- If
Player.ControlMode
is set toCONTROLMODE_NONE
(-1
): No variables will be set. - If
Player.ControlMode
is set toCONTROLMODE_NORMAL
(0
):- Sets
Player.Up
,Player.Down
,Player.Left
, andPlayer.Right
to their equivalentKeyDown
values. - Sets
Player.JumpPress
totrue
ifKeyPress.ButtonA
,KeyPress.ButtonB
, orKeyPress.ButtonC
are true; otherwise, it's set tofalse
. - Sets
Player.JumpHold
totrue
ifKeyDown.ButtonA
,KeyDown.ButtonB
, orKeyDown.ButtonC
are true; otherwise, it's set tofalse
.
- Sets
- If
Player.ControlMode
is set toCONTROLMODE_SIDEKICK
(1
): SetsPlayer.Up
,Player.Down
,Player.Left
,Player.Right
,Player.JumpPress
, andPlayer.JumpHold
based on the sidekick input buffer.