Keymap.getEntriesForKeycode

bool getEntriesForKeycode(uint hardwareKeycode, out gdk.types.KeymapKey[] keys, out uint[] keyvals)

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 [glib.global.gfree]. 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.Keymap.translateKeyboardState].

Parameters

hardwareKeycodea keycode
keysreturn location for array of #GdkKeymapKey, or null
keyvalsreturn location for array of keyvals, or null

Returns

true if there were any entries