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.ControlModeis set toCONTROLMODE_NONE(-1): No variables will be set. - If
Player.ControlModeis set toCONTROLMODE_NORMAL(0):- Sets
Player.Up,Player.Down,Player.Left, andPlayer.Rightto their equivalentKeyDownvalues. - Sets
Player.JumpPresstotrueifKeyPress.ButtonA,KeyPress.ButtonB, orKeyPress.ButtonCare true; otherwise, it's set tofalse. - Sets
Player.JumpHoldtotrueifKeyDown.ButtonA,KeyDown.ButtonB, orKeyDown.ButtonCare true; otherwise, it's set tofalse.
- Sets
- If
Player.ControlModeis set toCONTROLMODE_SIDEKICK(1): SetsPlayer.Up,Player.Down,Player.Left,Player.Right,Player.JumpPress, andPlayer.JumpHoldbased on the sidekick input buffer.