class Eagle::MouseWheelEvent

Overview

The wheel or trackpad scrolled. delta.y is positive when scrolling up.

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(delta : Eagle::Vec2, position : Eagle::Vec2) #

Creates a mouse wheel event.


Instance Method Detail

def delta : Vec2 #

Scroll amount. Positive y scrolls up.


def position : Vec2 #

Mouse position in window coordinates.