Class: Gdk::PadEvent

Inherits:
Event
  • Object
show all
Defined in:
(unknown)

Overview

An event related to a pad-based device.

Instance Method Summary collapse

Methods inherited from Event

#_get_angle, #_get_center, #_get_distance, #device, #device_tool, #display, #event_sequence, #event_type, #get_axes, #get_axis, #get_history, #get_position, #modifier_state, #pointer_emulated, #ref, #seat, #surface, #time, #triggers_context_menu, #unref

Instance Method Details

#buttonInteger

Extracts information about the pressed button from a pad event.

Returns:

  • (Integer)

    the button of event

#get_axis_value(index, value) ⇒ nil

Extracts the information from a pad strip or ring event.

Parameters:

  • index (Integer)

    Return location for the axis index

  • value (Float)

    Return location for the axis value

Returns:

  • (nil)

#get_group_mode(group, mode) ⇒ nil

Extracts group and mode information from a pad event.

Parameters:

  • group (Integer)

    return location for the group

  • mode (Integer)

    return location for the mode

Returns:

  • (nil)