Function InputSingleton.parseInputEvent

Feeds an InputEvent to the game. Can be used to artificially trigger input events from code. Also generates Node.input calls.

void parseInputEvent (
  InputEvent event
) nothrow @nogc;

Example

var a = InputEventAction.new() a.action = "ui_cancel" a.pressed = true Input.parse_input_event(a)