struct GPM::Event

Defined in:

gpm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]

Instance Method Detail

def buttons : Buttons #

def clicks : Int32 #

def clone #

[View source]
def 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) #

[View source]
def ctrl? : Bool #

[View source]
def dx : Int16 #

def dy : Int16 #

def left? : Bool #

Which physical button the event pertains to.


[View source]
def margins : Margins #

def meta? : Bool #

[View source]
def middle? : Bool #

[View source]
def modifiers : Modifiers #

def moved? : Bool #

Pointer motion (a bare move, or a drag with a button held).


[View source]
def pressed? : Bool #

Action classification, derived from the Types flags.


[View source]
def released? : Bool #

[View source]
def right? : Bool #

[View source]
def shift? : Bool #

Modifier keys held during the event.


[View source]
def types : Types #

def vc : UInt16 #

def wdy : Int16 #

def wheel? : Bool #

[View source]
def wheel_down? : Bool #

[View source]
def wheel_up? : Bool #

Scroll-wheel motion (GPM reports it through the UP/DOWN button bits).


[View source]
def x : Int16 #

def y : Int16 #