Lime::Modules::Mouse::Event
Inherits Struct < Value < Object
A mouse event.
Constructors
new(x : Int32, y : Int32, type : Symbol)
SourceInstance methods
clone
Sourcecopy_with(x _x = @x, y _y = @y, type _type = @type)
Sourcekind
Returns the kind of mouse event based on type:
:releaseif a mouse button has been released.:clickif a mouse button has been pressed.:wheelif the wheel has been scrolled.:dragifmodeisMode::DragorMode::Alland a mouse button has been pressed and the mouse has been moved.:moveifmodeisMode::Alland the mouse has been moved.
type
Returns the type of mouse event:
-
:releaseif a mouse button has been released. -
:leftif the left mouse button has been pressed. -
:wheelif the mouse wheel button has been pressed. -
:rightif the right mouse button has been pressed. -
:wheel_upif the mouse wheel has been scrolled up. -
:wheel_downif the mouse wheel has been scrolled down.
Only if mode is Mode::Drag or Mode::All:
:left_dragif the left mouse button has been pressed and the mouse has been moved.:wheel_dragif the mouse wheel button has been pressed and the mouse has been moved.:right_dragif the right mouse button has been pressed and the mouse has been moved.
Only if mode is Mode::All:
:moveif the mouse has been moved.
x
y