class Eagle::MouseMotionEvent

Overview

The mouse moved. #delta is the movement since the last event, which still works when Window.relative_mouse= has locked the cursor.

Defined in:

eagle/core/events.cr

Constructors

Instance Method Summary

Instance methods inherited from class Eagle::Event

handled=(handled : Bool) handled=, handled? : Bool handled?

Constructor Detail

def self.new(position : Eagle::Vec2, delta : Eagle::Vec2) #

Creates a mouse motion event.


Instance Method Detail

def delta : Vec2 #

Movement since the last motion event.


def position : Vec2 #

Mouse position in window coordinates.