class

Opal::Input::Gamepad::MockDSL

Inherits Reference < Object

Declarative mock/dummy gamepad input builder for automated testing and recorded sessions

Constructors

new(driver : Driver = Driver.new)
Source

Instance methods

button_chord(btns : Array(Button | Symbol)) : self
Source
click(btn : Button | Symbol) : self
Source
dpad(direction : Symbol) : self
Source
driver
Source
left_stick(x : Float64, y : Float64) : self
Source
press(btn : Button | Symbol) : self
Source
release(btn : Button | Symbol) : self
Source
right_stick(x : Float64, y : Float64) : self
Source
trigger(side : Trigger | Symbol, value : Float64) : self
Source
wait_frames(n : Int32) : self
Source