Method

GdkEventget_keycode

since: 3.2

Declaration [src]

gboolean
gdk_event_get_keycode (
  const GdkEvent* event,
  guint16* keycode
)

Description [src]

Extracts the hardware keycode from an event.

Also see gdk_event_get_scancode().

Available since: 3.2

Parameters

keycode

Type: guint16*

Location to store the keycode.

The argument will be set by the function.

Return value

Type: gboolean

TRUE if the event delivered a hardware keycode.