diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c index 7f3d182c2..c0844d8e6 100644 --- a/clutter/clutter/clutter-backend.c +++ b/clutter/clutter/clutter-backend.c @@ -1412,3 +1412,17 @@ clutter_backend_set_input_method (ClutterBackend *backend, { g_set_object (&backend->input_method, method); } + +/** + * clutter_backend_get_keymap: + * @backend: the #ClutterBackend + * + * Gets the keymap used by Clutter + * + * Returns: (transfer none): the keymap + **/ +ClutterKeymap * +clutter_backend_get_keymap (ClutterBackend *backend) +{ + return CLUTTER_BACKEND_GET_CLASS (backend)->get_keymap (backend); +} diff --git a/clutter/clutter/clutter-backend.h b/clutter/clutter/clutter-backend.h index 6517381be..93bd72b51 100644 --- a/clutter/clutter/clutter-backend.h +++ b/clutter/clutter/clutter-backend.h @@ -34,6 +34,7 @@ #include #include +#include #include G_BEGIN_DECLS @@ -83,6 +84,9 @@ ClutterInputMethod * clutter_backend_get_input_method (Clutter CLUTTER_EXPORT void clutter_backend_set_input_method (ClutterBackend *backend, ClutterInputMethod *method); +CLUTTER_EXPORT +ClutterKeymap * clutter_backend_get_keymap (ClutterBackend *backend); + G_END_DECLS #endif /* __CLUTTER_BACKEND_H__ */