Keymap.getEntriesForKeycode

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().

class Keymap
bool
getEntriesForKeycode
(,,
out uint[] keyvals
)

Parameters

hardwareKeycode uint

a keycode

keys GdkKeymapKey[]

return location for array of #GdkKeymapKey, or %NULL

keyvals uint[]

return location for array of keyvals, or %NULL

Return Value

Type: bool

%TRUE if there were any entries

Meta