documentation

This commit is contained in:
Yoshman29
2022-10-10 12:21:24 +02:00
parent 9009916ce6
commit 8091f5463a
96 changed files with 224711 additions and 35 deletions
@@ -0,0 +1,28 @@
package funkin.scripting.events;
class InputSystemEvent extends CancellableEvent {
/**
* Array containing whenever a specific control is pressed or not.
* For example, `pressed[0]` will return whenever the left strum was pressed.
*/
public var pressed:Array<Bool>;
/**
* Array containing whenever a specific control was pressed (not hold) this frame or not.
* For example, `justPressed[0]` will return whenever the left strum was just pressed.
*/
public var justPressed:Array<Bool>;
/**
* Array containing whenever a specific control was released this frame or not.
* For example, `justReleased[0]` will return whenever the left strum was just released.
*/
public var justReleased:Array<Bool>;
public function new(pressed:Array<Bool>, justPressed:Array<Bool>, justReleased:Array<Bool>) {
super();
this.pressed = pressed;
this.justPressed = justPressed;
this.justReleased = justReleased;
}
}