Method

GdkKeymapget_entries_for_keycode

Declaration [src]

gboolean
gdk_keymap_get_entries_for_keycode (
  GdkKeymap* keymap,
  guint hardware_keycode,
  GdkKeymapKey** keys,
  guint** keyvals,
  gint* n_entries
)

Description [src]

Returns the keyvals bound to hardware_keycode. The Nth GdkKeymapKey in keys is bound to the Nth keyval in keyvals. Free the returned arrays with g_free(). When a keycode is pressed by the user, the keyval from this list of entries is selected by considering the effective keyboard group and level. See gdk_keymap_translate_keyboard_state().

Parameters

hardware_keycode

Type: guint

A keycode.

keys

Type: An array of GdkKeymapKey*

Return location for array of GdkKeymapKey, or NULL.

The argument will be set by the function.
The argument can be NULL.
The length of the array is specified in the n_entries argument.
The instance takes ownership of the data, and is responsible for freeing it.
keyvals

Type: An array of guint*

Return location for array of keyvals, or NULL.

The argument will be set by the function.
The argument can be NULL.
The length of the array is specified in the n_entries argument.
The instance takes ownership of the data, and is responsible for freeing it.
n_entries

Type: gint*

Length of keys and keyvals.

The argument will be set by the function.

Return value

Type: gboolean

TRUE if there were any entries.