Skip to content

abstract struct SF::Event::MouseWheelEvent
inherits SF::Event #

Mouse wheel events parameters (MouseWheelMoved)

DEPRECATED: This event is deprecated and potentially inaccurate. Use MouseWheelScrollEvent instead.

Direct known subclasses

SF::Event::MouseWheelMoved

Class methods#

.new #

View source

Methods#

#delta : Int32 #

Number of ticks the wheel has moved (positive is up, negative is down)

View source

#delta=(delta : Int) #

View source

#dup : MouseWheelEvent #

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

View source

#x : Int32 #

X position of the mouse pointer, relative to the left of the owner window

View source

#x=(x : Int) #

View source

#y : Int32 #

Y position of the mouse pointer, relative to the top of the owner window

View source

#y=(y : Int) #

View source