Method

GdkDeviceget_key

since: 2.20

Declaration [src]

gboolean
gdk_device_get_key (
  GdkDevice* device,
  guint index_,
  guint* keyval,
  GdkModifierType* modifiers
)

Description [src]

If index_ has a valid keyval, this function will return TRUE and fill in keyval and modifiers with the keyval settings.

Available since: 2.20

Parameters

index_

Type: guint

The index of the macro button to get.

keyval

Type: guint*

Return value for the keyval.

The argument will be set by the function.
modifiers

Type: GdkModifierType

Return value for modifiers.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE if keyval is set for index.