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]], [[68]], [[83]], [[90, 87, 32]]], Name:Movement, Type:3}, {ControllerInputs:[[[2]]], KeyboardInputs:[[[72, 16777354]]], Name:A, Type:1}, {ControllerInputs:[[[3]]], KeyboardInputs:[[[74, 16777355]]], Name:B, Type:1}, {ControllerInputs:[[[1]]], KeyboardInputs:[[[75, 16777356]]], Name:C, Type:1}, {ControllerInputs:[[[0]]], KeyboardInputs:[[[76, 16777350]]], Name:D, Type:1}, {Combination:[[1, 0], [2, 0]], ControllerInputs:[[[4]]], KeyboardInputs:[[[16777349]]], Name:Throw, Type:4}] | [Hidden] | |
---|---|---|---|
The complete InputLayout to use. | |||
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] | |
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] |
---|---|---|
Unspecified. | ||
InputRelease | [1] | [AI, Init, Action, Manual] |
Unspecified. |
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] |
---|---|---|
Sets up an input transition, which will do a transition when the input given is pressed.
|
_InputTransitionList | [] | [ResetEachFrame] |
---|---|---|
List of the input transitions to watch for. |