struct

GPM::Event

Inherits Struct / Value / Object

Constructors

new(buttons : Buttons, modifiers : Modifiers, vc : UInt16, dx : Int16, dy : Int16, x : Int16, y : Int16, types : Types, clicks : Int32, margins : Margins, wdx : Int16, wdy : Int16)
Source

Instance methods

buttons
clicks
clone
Source
copy_with(buttons _buttons = @buttons, modifiers _modifiers = @modifiers, vc _vc = @vc, dx _dx = @dx, dy _dy = @dy, x _x = @x, y _y = @y, types _types = @types, clicks _clicks = @clicks, margins _margins = @margins, wdx _wdx = @wdx, wdy _wdy = @wdy)
Source
dx
dy
margins
modifiers
types
vc
wdx

wdx/y: displacement of wheels in this event. Absolute values are not required, because wheel movement is typically used for scrolling or selecting fields, not for cursor positioning. The application can determine when the end of file or form is reached, and not go any further. A single mouse will use wdy, "vertical scroll" wheel.

wdy
x
y