struct

SF::Event::MouseButtonEvent

Inherits SF::Event / Struct / Value / Object

Mouse buttons events parameters (see MouseButtonPressed, MouseButtonReleased)

Constructors

Instance methods

button

Code of the button that has been pressed

Source
button=(button : Mouse::Button)
Source
dup

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.

Source
x

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

Source
x=(x : Int)
Source
y

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

Source
y=(y : Int)
Source