About my projects, examples and tutorials
Gnome::Gdk4::PadEvent

Gnome::Gdk4::PadEvent

Description

An event related to a pad-based device.

Class initialization

new

:native-object

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )

Methods

get-axis-value

Extracts the information from a pad strip or ring event.

method get-axis-value ( Array[Int] $index, Num() $value )
  • $index; (transfer ownership: full) Return location for the axis index.

  • $value; (transfer ownership: full) Return location for the axis value.

get-button

Extracts information about the pressed button from a pad event.

method get-button (--> UInt )

Return value; the button of $event.

get-group-mode

Extracts group and mode information from a pad event.

method get-group-mode ( Array[Int] $group, Array[Int] $mode )
  • $group; (transfer ownership: full) return location for the group.

  • $mode; (transfer ownership: full) return location for the mode.