class Lapis::Test::InputSender

Defined in:

libgodot/testing.cr

Instance Method Summary

Instance Method Detail

def action_down(action : String, strength : Float32 = 1.0_f32) : self #

def action_up(action : String) : self #

def key_down(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : self #

def key_up(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : self #

def mouse_down(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : self #

def mouse_up(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : self #

def send : Void #

def wait_frames(frames : Int32 = 1) : self #