Event.getKeycode

Extracts the hardware keycode from an event.

Also see gdk_event_get_scancode().

class Event
bool
getKeycode
(
out ushort keycode
)

Parameters

keycode ushort

location to store the keycode

Return Value

Type: bool

%TRUE if the event delivered a hardware keycode

Meta