module
Lapis::Test::InputFactory
Defined in:
libgodot/testing.crClass Method Summary
- .action_down(action : String, strength : Float32 = 1.0_f32) : Godot::InputEventAction
-
.action_event(action : String, pressed : Bool = true, strength : Float32 = 1.0_f32) : Godot::InputEventAction
Generates a Godot::InputEventAction
- .action_up(action : String) : Godot::InputEventAction
- .key_down(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
-
.key_event(keycode : Godot::Key | Int64, pressed : Bool = true, echo : Bool = false, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
Generates a Godot::InputEventKey
- .key_up(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
- .mouse_button_down(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
-
.mouse_button_event(button_index : Godot::MouseButton | Int64, pressed : Bool = true, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
Generates a Godot::InputEventMouseButton
- .mouse_button_up(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
-
.mouse_motion_event(position : Godot::Vector2, relative : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseMotion
Generates a Godot::InputEventMouseMotion
Class Method Detail
def self.action_event(action : String, pressed : Bool = true, strength : Float32 = 1.0_f32) : Godot::InputEventAction
#
Generates a Godot::InputEventAction
def self.key_down(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
#
def self.key_event(keycode : Godot::Key | Int64, pressed : Bool = true, echo : Bool = false, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
#
Generates a Godot::InputEventKey
def self.key_up(keycode : Godot::Key | Int64, shift : Bool = false, ctrl : Bool = false, alt : Bool = false) : Godot::InputEventKey
#
def self.mouse_button_down(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
#
def self.mouse_button_event(button_index : Godot::MouseButton | Int64, pressed : Bool = true, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
#
Generates a Godot::InputEventMouseButton
def self.mouse_button_up(button_index : Godot::MouseButton | Int64, position : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseButton
#
def self.mouse_motion_event(position : Godot::Vector2, relative : Godot::Vector2 = Godot::Vector2::ZERO) : Godot::InputEventMouseMotion
#
Generates a Godot::InputEventMouseMotion