Module handling Input inside of the Castagne Engine. Works closely together with CastagneInput.gd. Please read the Intermediate Guide/Castagne Input page for more details.
Holds the input layout and default bindings.
InputLayout | [{ControllerInputs:[[[14]], [[15]], [[13]], [[12]]], GameInputNames:[Left, Right, Down, Up, Back, Forward, Portside, Starboard, NeutralH, NeutralV], KeyboardInputs:[[[65, 81, 16777231]], [[68, 16777233]], [[83, 16777234]], [[90, 87, 32, 16777232]]], Name:Movement, Type:3}, {ControllerInputs:[[[2]]], KeyboardInputs:[[[72, 16777354]]], Name:L, Type:1}, {ControllerInputs:[[[3]]], KeyboardInputs:[[[74, 16777355]]], Name:M, Type:1}, {ControllerInputs:[[[1]]], KeyboardInputs:[[[75, 16777356]]], Name:H, Type:1}, {ControllerInputs:[[[0]]], KeyboardInputs:[[[78, 16777350]]], Name:S, Type:1}, {ControllerInputs:[[[5]]], KeyboardInputs:[[[76, 16777349]]], Name:E, Type:1}, {Combination:[[1, 0], [2, 0]], ControllerInputs:[[[4]]], KeyboardInputs:[[[16777237]]], Name:Throw, Type:4}, {Combination:[[0, 3]], ControllerInputs:[[]], KeyboardInputs:[[]], Name:Jump, Type:5}, {Combination:[[1, 0], [2, 0], [3, 0]], ControllerInputs:[[]], KeyboardInputs:[[]], Name:Tech, Type:5}, {ControllerInputs:[[[11]]], KeyboardInputs:[[[16777221, 16777217]]], Name:Pause, Type:1}, {ControllerInputs:[[[10]]], KeyboardInputs:[[[16777280]]], Name:Reset, Type:1}, {ControllerInputs:[[[8]]], KeyboardInputs:[[[]]], Name:TrainingButton1, Type:1}, {ControllerInputs:[[[9]]], KeyboardInputs:[[[]]], Name:TrainingButton2, Type:1}] | [Hidden] | ||
---|---|---|---|---|
The complete InputLayout to use. | ||||
InputLayoutMenu | [{ControllerInputs:[[[12]]], KeyboardInputs:[[[90, 87, 32, 16777232]]], Name:MenuUp, Type:1}, {ControllerInputs:[[[13]]], KeyboardInputs:[[[83, 16777234]]], Name:MenuDown, Type:1}, {ControllerInputs:[[[14]]], KeyboardInputs:[[[65, 81, 16777231]]], Name:MenuLeft, Type:1}, {ControllerInputs:[[[15]]], KeyboardInputs:[[[68, 16777233]]], Name:MenuRight, Type:1}, {ControllerInputs:[[[0]]], KeyboardInputs:[[[78, 16777350]]], Name:MenuConfirm, Type:1}, {ControllerInputs:[[[1]]], KeyboardInputs:[[[75, 16777356]]], Name:MenuBack, Type:1}, {ControllerInputs:[[[4]]], KeyboardInputs:[[[89, 16777351]]], Name:MenuPrevious, Type:1}, {ControllerInputs:[[[5]]], KeyboardInputs:[[[85, 16777352]]], Name:MenuNext, Type:1}] | [Hidden] | ||
The complete input layout for menus. | ||||
NumberOfKeyboardPlayers | 2 | [] | ||
Number of keyboard devices to setup. | ||||
NumberOfKeyboardLayouts | 2 | [] | ||
Number of keyboard default bindings to make available. | ||||
NumberOfControllerPlayers | 4 | [] | ||
Number of controller devices to setup. | ||||
NumberOfControllerLayouts | 2 | [] | ||
Number of controller default bindings to make available. | ||||
InputBufferSizePress | 3 | [Advanced] | Advanced | |
Number of frames an input press/release event will be active. |
_InputsRaw | [] | [] | |
---|---|---|---|
Hold the raw inputs themselves, set by the engine. | |||
_InputsProcessed | [] | [] | |
Holds the input data for each player. | |||
_InputsProcessedPrevious | [] | [] | |
Holds the previous values of _InputsProcessed | |||
_Inputs | {} | [] | |
Holds the input data of the entity. | |||
_InputsPrevious | [] | [] | |
Holds the previous values of _Inputs |
Functions to simulate fake pressed during the AI phase. Untested.
InputPress | [1] | [AI, Init, Action, Manual, Subentity] | Intermediate |
---|---|---|---|
Makes a fake input press. Untested.
| |||
InputRelease | [1] | [AI, Init, Action, Manual, Subentity] | Intermediate |
Makes a fake input unpress. Untested.
|
Functions relating to the Input Transition system, which allows a user to setup transitions when a certain input is pressed.
InputTransitionDefaultPriority | 1000 | [] | ||
---|---|---|---|---|
The default Transition priority for InputTransition. |
InputTransition | [1, 2, 3] | [Action, Manual, Subentity] | Intermediate |
---|---|---|---|
Sets up an input transition, which will do a transition when the input given is pressed.
| |||
InputFlag | [1, 2, 3] | [Action, Manual, Subentity] | Intermediate |
Sets up an input flag, which will raise a flag when the input given is pressed.
| |||
InputFlagNext | [1, 2, 3] | [Action, Manual, Subentity] | Intermediate |
Sets up an input flag, which will raise a flag next frame when the input given is pressed.
| |||
InputTransitionFlag | [1, 2, 3, 4] | [Action, Manual, Subentity] | Intermediate |
Sets up an input transition and an input flag, which will do a transition and raise a flag when the input given is pressed.
| |||
InputTransitionFlagNext | [1, 2, 3, 4] | [Action, Manual, Subentity] | Intermediate |
Sets up an input transition and an input flag, which will do a transition and raise a flag when the input given is pressed.
|
_InputTransitionList | [] | [ResetEachFrame] | |
---|---|---|---|
List of the input transitions to watch for. | |||
_FrozenInputTransition | Null | {Description:Holds the input transition data during the freeze phase.} | |
System for detecting when motion input has been performed by a player.
EnableMotionInputs | True | [Basic] | Basic | |
---|---|---|---|---|
Toggle to disable motion inputs engine-wide. | ||||
DirectionalInputBuffer | 60 | [Advanced] | Advanced | |
Number of frames the module retains the directional inputs from. This value should be greater than the longest motion input times the individual input interval for that motion. | ||||
ShortMotionInterval | 12 | [Advanced] | Advanced | |
Maximum number of frames between inputs for a motion to remain valid. This value is for motions with three directions or less. | ||||
LongMotionInterval | 8 | [Advanced] | Advanced | |
Maximum number of frames between inputs for a motion to remain valid. This value is for motions with more than three directions. | ||||
ButtonInterval | 8 | [Advanced] | Advanced | |
Maximum number of frames between motion input and pressing the button for a motion to remain valid. | ||||
MinChargeTime | 30 | [Advanced] | Advanced | |
Minimum number of frames for a direction to be held for a valid charge input. | ||||
StrictDiagonalCharge | False | [Advanced] | Advanced | |
If enabled, holding a diagonal direction will not count as charing the two diagional inputs. | ||||
MotionAliases | [{Aliases:2684, 6842, 8426, 4268, Name:360}, {Aliases:4126, 4236, Name:41236}, {Aliases:6324, 6214, Name:63214}] | [Hidden] | ||
List of motion input aliases. |
_DirectionalInputLog | [] | [] | |
---|---|---|---|
Array containing just the raw directional inputs for a player on each frame. Inputs are held for a number of frames equal to the buffer config variable. |