Re: keycode handling
- From: Havoc Pennington <hp redhat com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: keycode handling
- Date: 03 Dec 2000 12:52:41 -0500
Owen Taylor <otaylor redhat com> writes:
> GdkKeymap *gdk_get_keymap ();
> gboolean gdk_keymap_keyval_to_keys (GdkKeymap *keymap,
> guint keyval,
> GdkKeyInfo **infos,
> gint *n_infos);
> guint gdk_keymap_info_to_keyval (GdkKeymap *keymap,
> const GdkKeyInfo *info);
> gboolean gdk_keymap_translate_keycode (GdkKeymap *keymap,
> guint hardware_keycode,
> GdkModifierType state,
> gint group,
> guint *keyval,
> gint *effective_group,
> gint *level,
> GdkModifierType *unused_modifiers);
> void gdk_keymap_keycode_to_keys (GdkKeymap *keymap,
> guint hardware_keycode,
> GdkKeyInfo **infos,
> guint **keyvals,
> gint *n_entries);
>
> And then, as a convenience to C programmers, allow all the functions
> to take NULL for the keymap to mean "default keymap".
>
Sure, trivial to do. Makes the function names nicer too.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]