struct Lime::Modules::Mouse::Event
- Lime::Modules::Mouse::Event
- Struct
- Value
- Object
Overview
A mouse event.
Defined in:
lime/modules.crConstructors
Instance Method Summary
- #clone
- #copy_with(x _x = @x, y _y = @y, type _type = @type)
-
#kind : Symbol
Returns the kind of mouse event based on
#type: -
#type : Symbol
:releaseif a mouse button has been released.
- #x : Int32
- #y : Int32
Constructor Detail
Instance Method Detail
def kind : Symbol
#
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.
def type : Symbol
#
-
: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.