constructor
new inputSystem(inputs)
This constructor creates a new input system.
Name | Type | Description |
---|---|---|
inputs | struct |
The inputs in this format {name1: [in1, in2, in3...], name2: [in1, in2, in3...]...} |
struct
The input system
Name | Description |
---|---|
check | Checks for the inputs. Retrurns a struct of each with a down, pressed, and released value. (e.g. right: {down: true, pressed: false, released: true) |
clear | Clears the input struct |
describe | Lists the currents inputs to the output window. Good for debugging purposes. |
load | Loads a saved input file. |
save | Saves the inputs to a file. |
in_sys = new InputSystem({
right: [vk_right, "d", gp_padr, gp_axislr],
left: [vk_left, "a", gp_padl, gp_axisll],
jump: [vk_up, "w", gp_a],
shoot: [vk_space, gp_shoulderrb, gp_x]
});
Copyright © 2021, Milan Varady. Built on June 28, 2021 using GMDoc.