Skip to content

abstract struct SF::Event::MouseButtonEvent
inherits SF::Event #

Mouse buttons events parameters (see MouseButtonPressed, MouseButtonReleased)

Direct known subclasses

SF::Event::MouseButtonPressed SF::Event::MouseButtonReleased

Constructors#

Methods#

#button : Mouse::Button#

Code of the button that has been pressed

View source

#button=(button : Mouse::Button)#

View source

#dup : MouseButtonEvent#

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