View source
class PreciseInputManager
package funkin.input
extends FlxKeyManager
Available on all platforms
A precise input manager that: - Records the exact timestamp of when a key was pressed or released - Only records key presses for keys bound to game inputs (up/down/left/right)
Static variables
Static methods
staticgetButtonsForDirection(controls:Controls, noteDirection:NoteDirection):Array<FlxGamepadInputID>
staticgetCurrentTimestamp():Int64
Returns a precise timestamp, measured in nanoseconds. Timestamp is only useful for comparing against other timestamps.
Returns:
Int64
Constructor
Variables
Methods
getTimeSincePressed(noteDirection:NoteDirection):Int64
Get the time, in nanoseconds, since the given note direction was last pressed.
Parameters:
noteDirection | The note direction to check. |
|---|
Returns:
An Int64 representing the time since the given note direction was last pressed.
getTimeSinceReleased(noteDirection:NoteDirection):Int64
Get the time, in nanoseconds, since the given note direction was last released.
Parameters:
noteDirection | The note direction to check. |
|---|
Returns:
An Int64 representing the time since the given note direction was last released.