Opal::Input::Gamepad::VirtualCursor
Analog virtual cursor that allows gamepad thumbsticks to navigate and click anywhere across the terminal grid like a mouse cursor.
Constructors
Instance methods
cell_x
Sourcecell_y
Sourcecursor_color
Sourcecursor_color=(cursor_color : Color)
Sourcecursor_glyph
Sourcespeed
Sourceupdate(stick_x : Float64, stick_y : Float64, max_w : Int32, max_h : Int32, dt : Float64 = 0.0166) : Nil
Updates virtual cursor coordinates based on stick deflection (-1.0 to 1.0)
visible?
Source